  
PHP ver gevorderde |
|
Hey,
Normaal lukt het me altijd maar deze keer niet.
Wat is hier fout?
<?php
$query = mysql_query("UPDATE fields SET text='".$text."', name='".$name.", size=".$size.", maxlength=".$maxlength.", type='".$type."', rows=".$rows.", cols=".$cols." WHERE id=".$id.""); // Updaten van de database
<?php $query = mysql_query("UPDATE fields SET text='".$text."', name='".$name.", size=".$size.", maxlength=".$maxlength.", type='".$type."', rows=".$rows.", cols=".$cols." WHERE id=".$id.""); // Updaten van de database
size, maxlength, rows, cols en id zijn integers 
~Ikki
EDIT: Oja de melding is ook wel handig:
Error in database: 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 'textarea', rows=10, cols=10 WHERE id=15' at line 1
Type is niet een gereserveerd woord dus daar ligt het ook niet aan.
|