Re: Need help retreiving one record
| From: | Bossek | Date: | Thu, 08 Jan 2004 14:10:11 +0000 |
| Subject: | Re: Need help retreiving one record | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32330@lists.php.net to get a copy of this message | ||
$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.