Re: [PHP-DB] UPDATE doesn't work

2003-02-05 Thread Le Hoang
] UPDATE doesn't work On Wednesday 05 February 2003 12:50, Le Hoang wrote: // Add 1 view to the view column $v = $row[view]; $vplus = $v+1; $view = mysql_query(update photoshop_tutorial where id=$id set view=$vplus); // Problem here! You should ALWAYS check

[PHP-DB] UPDATE doesn't work

2003-02-04 Thread Le Hoang
Hello all, I'm a graphic designer making a site for giving tutorials, but since i'm just a newbie in coding, tons of problems have fallen on me. This is my photoshop_tutorial table structure id int not null auto_increment, title varchar(255) not null, author varchar(55) not null,

Re: [PHP-DB] UPDATE doesn't work

2003-02-04 Thread Jason Wong
On Wednesday 05 February 2003 12:50, Le Hoang wrote: // Add 1 view to the view column $v = $row[view]; $vplus = $v+1; $view = mysql_query(update photoshop_tutorial where id=$id set view=$vplus); // Problem here! You should ALWAYS check the result of a call to mysql_query(): if ($view