Re: Update problems
| From: | Brinzoi Constantin Aurelian | Date: | Wed, 13 Dec 2000 08:34:36 +0000 |
| Subject: | Re: Update problems | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5202@lists.php.net to get a copy of this message | ||
Hi Jon !
Constantin Brinzoi
Dept. Sondaje
IRECSON
On Tue, 12 Dec 2000, Jon McFarling wrote:
> I am having problems updateing in MySQL
> I run this script
> $Final_grade=87.8;
>
> $Final="update student set finalGrade='$Final_grade' where
> userId='Uname';";
Maybe you want to replace 'Uname' with '$Uname' ?
> $succes=mysql_query($Final,$link);
> echo mysql_error()."<br>";
> echo "<p align=\"center\"><font size=\"4\">Final Grade:
> $Final_grade</font></p>";
>
> and nothing happens in the data base. I have changed the user's permissons
> to allow him to update but when I check the database nothing has changed
> Jon
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>