Forum Moderators: coopster
Could you help me, please.
i created a table
create table test(content varchar(1000),
id smallint auto_increment,
primary key(id))
my code:
<?php $con=mysql_connect("localhost", "#*$!", "#*$!x") or die(mysql_error());
mysql_select_db("#*$!", $con);
$mysql="INSERT INTO test (content) VALUES (\"hkhk\")";
$result=mysql_query($mysql, $con);
if(!$result)
die('Error: ' . mysql_error());
else
echo "data inserted";
?>