] 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
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,
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