trancefuzion
1-20-04, 06:43 PM
Hi,
I am a new user on powweb forums. I try to fill my mySQL database with php script and nothing is working...! Can somebody help me?
I use this script to connect me at my database and write into it:
$liendb = mysql_connect("http://servername.powweb.com", "login", "password");
mysql_select_db("Database_name");
$sql = "INSERT INTO table_name (filed1, field2,field3) VALUES ('$field1','$field2','$field3')";
mysql_query ($sql);
mysql_close($liendb);
Thanks!
Trancefuzion
I am a new user on powweb forums. I try to fill my mySQL database with php script and nothing is working...! Can somebody help me?
I use this script to connect me at my database and write into it:
$liendb = mysql_connect("http://servername.powweb.com", "login", "password");
mysql_select_db("Database_name");
$sql = "INSERT INTO table_name (filed1, field2,field3) VALUES ('$field1','$field2','$field3')";
mysql_query ($sql);
mysql_close($liendb);
Thanks!
Trancefuzion