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

What's wrong with my code?

$
0
0

I try to use this code to update a table, what am I doing wrong, cuz it ain't working? (guessing the problem lays on the last two rows..)

$inputquery  = "UPDATE content_about "; 
$inputquery .= "(about_description, about_content01_tittle, about_content01, about_content02_tittle, about_content02, about_content03_tittle, about_content03, about_content04_tittle, about_content04, about_content05_tittle, about_content05, about_content06_tittle, about_content06, about_content07_tittle, about_content07, about_content08_tittle, about_content08, about_content09_tittle, about_content09, about_content10_tittle, about_content10, about_content11_tittle, about_content11, about_content12_tittle, about_content12, date) "; 
$inputquery .= " VALUES "; 
$inputquery .= "('$about_description', '$about_content01_tittle', '$about_content01', '$about_content02_tittle', '$about_content02', '$about_content03_tittle', '$about_content03', '$about_content04_tittle', '$about_content04', '$about_content05_tittle', '$about_content05', '$about_content06_tittle', '$about_content06', '$about_content07_tittle', '$about_content07', '$about_content08_tittle', '$about_content08', '$about_content09_tittle', '$about_content09', '$about_content10_tittle', '$about_content10', '$about_content11_tittle', '$about_content11', '$about_content12_tittle', '$about_content12', '$date') "; 
$inputquery .= " WHERE ";
$inputquery .= "(about_id = '$content_id')";

Thanks!


Viewing all articles
Browse latest Browse all 13200

Trending Articles