MyBB Community Forums

Full Version: My site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Its an error in your query.

$query = mysql_query("SELECT * FROM index WHERE id='$id'");

Change that to

$query = mysql_query("SELECT * FROM index WHERE id='$id'") or die(mysql_error());
ok, changed and new problem

http://www.linuxbox.co.nz/~kieran/Problem/
Once again, its a syntax error.

if (!mysql_query("UPDATE index SET date='$date', news='$news' id='$id'")) {

Should probably be

if (!mysql_query("UPDATE index SET date='$date', news='$news' WHERE id='$id'")) {
ok, changed again. And thanks to another friend, the MsgPlus boards, and your help, its all fixed.

Other things I had to do:
I added a hidden input field,
put a code to request the id on the edit.php page
changed index to 'index' cause it was a reserved word.
Along with more syntax errors.

I have also fixed other parts of my site with a friend. Its all fixed now. So thanks for everyones help.
Pages: 1 2 3 4