Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SQL]insert into table error

Experienced Elementalist
Joined
Apr 15, 2008
Messages
256
Reaction score
0
PHP:
<?php include("includes/header.php");?>
<?php 
if(isset($_REQUEST['submit'])){
$query=mysql_query("INSERT INTO `a4794514_guru`.`news` ('user', 'title',' page_body') VALUES ('$user', '$title', '$page_body')") or die("error");
$title=$_REQUEST['title'];
$user=$_REQUEST['user'];
$page_body=$_REQUEST['page_body'];

}

?>

               
<br />
<form name="submit" action="">	
<input type="text" name="title" value="" />
<br /><input type="text" name="user" value="" />
<br /><input type="text" name="page_body" value="" />
<br />
                        <input type="submit" name="submit" value="Submit Query" /> <input type="reset" value="Reset" />
</form>
<?php include("includes/footer.php");?>
No matter what i do i always get a error =/
 
duck you, I'm a dragon
Loyal Member
Joined
Apr 29, 2005
Messages
6,407
Reaction score
130
PHP:
$query=mysql_query("INSERT INTO `a4794514_guru`,`news` ('user', 'title',' page_body') VALUES ('$user', '$title', '$page_body')") or die("error");
$title=$_REQUEST['title'];

After `a4794514_guru` you had a period (.) instead of a comma.
 
Back
Top