View Single Post
Old 01-13-2008, 05:27 PM   #3 (permalink)
Gareth
The Acquainted
 
Gareth's Avatar
 
Join Date: Jan 2008
Posts: 136
Thanks: 4
Gareth is on a distinguished road
Default

Aha!

It comes up with:

Quote:
ou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( title, desc, cat, category ) VALUES ( Public, n/a, 1, 0 ) WHERE id='7'' at line 1
EDIT: It now says

Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc='n/a' , cat='1' , category='0' ' at line 5
for

PHP Code:
 $update_forum mysql_query("
                                
                                                            UPDATE 
                                                                sbb_forums 
                                                            SET 
                                                                title='
$title' ,
                                                                desc='
$desc' ,
                                                                cat='
$cat' ,
                                                                category='
$category'                                                        
                                                            WHERE
                                                                id='
$id'"
                                                                
                                        or die(
mysql_error());            
                         
                            if (
$update_forum) {
                                echo 
'<div class="sub_cat_content">';
                                echo 
'Forum Updated';
                                echo 
'</div>';
                            } else {
                                echo 
'<div class="sub_cat_content">';
                                echo 
'Forum <b>CANNOT BE</b> Updated';
                                echo 
'</div>';
                                } 
Gareth is offline  
Reply With Quote