Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My site
#31
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());
Reply
#32
ok, changed and new problem

http://www.linuxbox.co.nz/~kieran/Problem/
Reply
#33
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'")) {
Reply
#34
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)