Jump to content


Photo

need help


  • Please log in to reply
21 replies to this topic

#21 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 13 July 2006 - 03:28 PM

Change this line:
<?php
$query = mysql_query("INSERT INTO `news` (title, by, on, message) VALUES('$title','$by','$time','$message')");
?>
to
<?php
$q ="INSERT INTO `news` (`title`, `by`, `on`, `message`) VALUES('$title','$by','$time','$message')"
$query = mysql_query($q) or die("Problem with the query: $q<br>" . mysql_error());
?>

Ken

#22 BillyBoB

BillyBoB
  • Members
  • PipPipPip
  • Advanced Member
  • 630 posts

Posted 13 July 2006 - 03:46 PM

dude i fixed it all i did was change the fields names




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users