demiurgen
04-30-2006, 09:29 AM
<?php
$connection = mysql_connect("localhost", "root", "********");
mysql_select_db("DB");
$result = mysql_query("SELECT text, price FROM product");
while ($row = mysql_fetch_array($result) ) {
$text01 = $row['text'];
}
echo "$text01";
?>
how do get the rest of the array out???
the table called product has 16 rows of content divided into 2 columns called text and price.
how can i get out the content of the text on row 7??
the code above only outputs the last entry in the db...
$connection = mysql_connect("localhost", "root", "********");
mysql_select_db("DB");
$result = mysql_query("SELECT text, price FROM product");
while ($row = mysql_fetch_array($result) ) {
$text01 = $row['text'];
}
echo "$text01";
?>
how do get the rest of the array out???
the table called product has 16 rows of content divided into 2 columns called text and price.
how can i get out the content of the text on row 7??
the code above only outputs the last entry in the db...