RE: [PHP] guestbook

From: Date: Mon, 04 Dec 2000 23:40:54 +0000
Subject: RE: [PHP] guestbook
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28668@lists.php.net to get a copy of this message
on MySQL that is. for example PostgreSQL requires a loop and a row identifier... lacks some of the ease of use that PHP has built in for MySQL. Not sure about other db support. only mentioning because he didn't specify the db type he had... and can picture someone banging their head on the computer at 3am trying to figure out why it didn't work on his version of MyBasementHackSQL :) Dave -----Original Message----- From: Joe Stump [mailto:joe@earth.care2.com] Sent: Monday, December 04, 2000 6:20 PM To: Brandon Feldhahn Cc: php-general@lists.php.net Subject: Re: [PHP] guestbook No, each time through the loop $row will be one record from you SELECT query. --Joe On Mon, Dec 04, 2000 at 02:47:33PM -0800, Brandon Feldhahn wrote: > but will that only show one of the entrys? > > Joe Stump wrote: > > > Well then I suppose you would show it from the DB like any other info... > > > > $sql = "SELECT * FROM guestbook"; > > $result = mysql_query($sql); > > > > while($row = mysql_query($result)) > > { > > // echo guestbook > > } > > > > --Joe > > > > On Sun, Dec 03, 2000 at 10:06:25PM -0800, Brandon Feldhahn wrote: > > > i ahve a db > > > > > > Joe Stump wrote: > > > > > > > If you don't have a DB then I would highly suggest using XML to do your guest > > > > book with. If you can't do that either then I would suggest using some form of > > > > deliminator in a text file. It won't scale like a DB, but it would work well > > > > for small sites with no DB access. > > > > > > > > --Joe > > > > > > > > On Sun, Dec 03, 2000 at 09:07:55PM -0800, Brandon Feldhahn wrote: > > > > > hi im making a guestbook and im dont with the database, know how do i > > > > > show every one's querrys on the site? > > > > > > > > > > > > > > > -- > > > > > PHP General Mailing List (http://www.php.net/) > > > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > > > For additional commands, e-mail: php-general-help@lists.php.net > > > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > >

« previous php.general (#28668) next »