Hi!
I´m trying to execute a query, but I receive an error ("error in
executing"). The strange thing is that the $link sentence has no
errors, so the connection is fine.
$server="localh ost";
$database="myda tabase";
$dbpass="mypass ";
$dbuser="myuser ";
$link=mysql_con nect($server,$d buser,$dbpass)
or die ("couldn´t connect");
mysql_query('up date articulos set rank=rank + 1 where id=$id', $link)
or die ("error in executing");
Any suggestion?
Thanks!
Ezequiel
I´m trying to execute a query, but I receive an error ("error in
executing"). The strange thing is that the $link sentence has no
errors, so the connection is fine.
$server="localh ost";
$database="myda tabase";
$dbpass="mypass ";
$dbuser="myuser ";
$link=mysql_con nect($server,$d buser,$dbpass)
or die ("couldn´t connect");
mysql_query('up date articulos set rank=rank + 1 where id=$id', $link)
or die ("error in executing");
Any suggestion?
Thanks!
Ezequiel
Comment