juicemousezero
09-09-2005, 10:58 AM
I was wondering how I could take the data from my dataset and store the different rows and columns in variables so that I could put them where I want on my ASP.NET page. I did it in PHP using this syntax:
$i = 0;
while ($i < $rows)
{
$id = mysql_result($result, $i, "id");
$bandname = mysql_result($result, $i, "bandname");
$cdtitle = mysql_result($result, $i, "cdtitle");
$yearmade = mysql_result($result, $i, "yearmade");
$cdreview = mysql_result($result, $i, "cdreview");
echo "$id<br>$bandname<br>$cdtitle<br>$yearmade<br>$cdreview<br><br>";
$i = $i +1;
}
That way I can toss, say, the CD review variable anywhere I need to on the page and not even use the other data if I don't see fit. I'm trying to figure out that same thing except in VB.NET syntax and I'm not sure how to go about it... thanks guys.
$i = 0;
while ($i < $rows)
{
$id = mysql_result($result, $i, "id");
$bandname = mysql_result($result, $i, "bandname");
$cdtitle = mysql_result($result, $i, "cdtitle");
$yearmade = mysql_result($result, $i, "yearmade");
$cdreview = mysql_result($result, $i, "cdreview");
echo "$id<br>$bandname<br>$cdtitle<br>$yearmade<br>$cdreview<br><br>";
$i = $i +1;
}
That way I can toss, say, the CD review variable anywhere I need to on the page and not even use the other data if I don't see fit. I'm trying to figure out that same thing except in VB.NET syntax and I'm not sure how to go about it... thanks guys.