Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

SQL Unknown column 'title' in 'field list'

$
0
0

Hi guys, I'm kinda new to PHP, and I started with developing a site. Now I've a piece of code (check below), it is suppost to edit a page in the database, but the output is "Error updating database1: Unknown column 'title' in 'field list'". But, the column exist!

 

All variables are set, and I don't know what I'm doing wrong, and I hope you guys can help me.

 

Code:

 

$query_update = "UPDATE `pagina` SET `title` = '".addslashes($title)."', `korting`='".$korting."', `volg`='".$volg."', `product` = '".$product."',`product_id`='".$product_id."', `visible` = '".$visible."', `metadescription` = '".addslashes($metadescription)."', `url` = '".$url."', `content` = '".addslashes($content)."', `headerpicture`='".addslashes($headerpicture)."',`picture`='".addslashes($picture)."', form_id = '".$form_id."',`related`='".$related_string."', `datum` = NOW() WHERE `id` = '".$id."'";

mysql_query($query_update)or die('Error updating database1: '.mysql_error());
 
Column:
 
z9op0amhh.png
 
Greetzz iRoot121.

Viewing all articles
Browse latest Browse all 13200

Trending Articles