Re: fetch then put record?

From: Date: Tue, 10 Jun 2003 00:36:00 +0000
Subject: Re: fetch then put record?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150832@lists.php.net to get a copy of this message
Steve B. wrote:
Hello, In ASP you can set records fields then call a dbupdate function.
There is no such function in PHP.
It appears mysql only supports update with the UPDATE query?
Huh ... MySQL is a database. It understands SQL. dbupdate() is an ASP function ... don't blame MySQL if it doesn't understand ASP ;) The only way to update data in MySQL is to use SQL, and in SQL to update data you use UPDATE queries :)
Here is my code: $dbrec=getrec($result);
This is not PHP code. There is no function called getrec(). If you want to access a MySQL database using PHP you will also need to learn SQL. You need to learn how to write SQL update queries ... I suggest that you read the PHP online manual and learn all about the MySQL functions. Read this section and then try again: http://jp.php.net/manual/en/ref.mysql.php Jean-Christian

« previous php.general (#150832) next »