[PHP-DB] Need help replacing one record

2004-01-09 Thread Jeroen Wasteels
Is there a way to change the information in one record of a database, for
example the password, without having to open the entire row, delete it, and
then add it with $row_data[name] and all and the $newpass as changed
password?

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



[PHP-DB] Re: Need help retreiving one record

2004-01-08 Thread Jeroen Wasteels
Thanks a lot, I'll give it a try
Bossek [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 $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 [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  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



[PHP-DB] Re: Need help retreiving one record

2004-01-07 Thread Jeroen Wasteels
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