Re: Need help retreiving one record

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$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@xxxxxxxxx> wrote in message
news:20040108021334.28417.qmail@xxxxxxxxxxxxxxx
> 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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux