View Single Post
  #4 (permalink)  
Old 10-10-03, 04:04 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
it doesn't work because you didn't send the query to database ???
you need to use mysql_query(); to send your query ..
in your post you only defined the query but didn't send it ..
it should be something like this :
PHP Code:

if ($Submit == "count03"
{
$sql "UPDATE DB3 SET VAR1 = VAR1+1 Where User = 'User01";
$update=mysql_query($sql)or Die(mysql_error());
$check=mysql_affetced_rows();

if ( 
$check == ) {
echo
'Database was updated succesfully ..';
} else {
echo
'database wasn\'t updated !! please try again later ..';
} else { 
try it and see
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]

Last edited by NeverMind; 10-10-03 at 04:08 AM.
Reply With Quote