hi Yahoo, 2 weeks ago i started program my own php&mysql forum ,the forum works great on my local server , but when i tried to upload it to some web server (witch has Ftp , Cpanel ,,etc) i dont get the topic and the detail posted in the database, i guess the error belong to (add_topic.php)


<?php
$host="localhost";
$username=" ";
$password=" ";
$db_name=" ";
$tbl_name="";


mysql_connect("$host", "$username", "$password")or die("coludnt connect");
mysql_select_db("$db_name")or die("coludnt connect");

$datetime=date("d/m/y h:i:s"); // the date of the posted topic
$sql="INSERT INTO $tbl_name(topic, detail, name, email, datetime)VALUES('$topic', '$detail', '$name', '$email', '$datetime')";
$result=mysql_query($sql);

if($result){
echo " saved<BR>";

}
else {
echo "Error";
}
mysql_close();
?>

***********************
if you can solve this problem i will be very grateful to you!!