Re: Need help retreiving one record

From: Date: Thu, 08 Jan 2004 16:36:59 +0000
Subject: Re: Need help retreiving one record
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-32331@lists.php.net to get a copy of this message
Thanks a lot, I'll give it a try "Bossek" <bossek@muha.cc> wrote in message news:20040108141005.57779.qmail@pb1.pair.com... > $sql = "SELECT * FROM users WHERE user = 'foo'"; > $data = mysql_query($sql,$povezava) or die(mysql_error() ); > while ($row_data = mysql_fetch_assoc($data) ) > { > print "$row_data['nick']"; > print "$row_data['text']"; > } > > "Jeroen Wasteels" <jeroenwasteels@yahoo.Com> wrote in message > news:20040108021334.28417.qmail@pb1.pair.com... > > I still can't see what exactly I'm supposed to do... could someone please > > write me a little piece of code that enters colomn soandso row soandso and > > then stores what's there in a variable that's ready to print or so? I > copied > > the example from php.net, changing of course names of databases and > tables, > > but I got nothing.

« previous php.db (#32331) next »