MySQL Forums
Forum List  »  Newbie

Re: Won't select all the rows...
Posted by: Claude Martin
Date: March 16, 2005 04:32PM

$query = "SELECT name FROM books_list WHERE author = '" . $_POST['selection'] . "'";
$list = mysql_query($query);

//get all rows:
while($foo = mysql_fetch_array($list)) {

//do this for every row:
print('<p><b>' . $_POST['selection'] . '</b></p>');
for ($i=0; $i < count($foo)-1; $i++) {
print($foo[$i] . '<br />');

}
}

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
March 16, 2005 03:54PM
Re: Won't select all the rows...
March 16, 2005 04:32PM
March 16, 2005 04:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.