Hello,
I am having some problems INSERTING records into MySQL with PHP4. I have used this code with PHP3 just fine. Here it is:
$sql = "INSERT INTO server (";
$sql .= "'$IP1', ";
$sql .= "'$IP2', ";
$sql .= "'$IP3', ";
$sql .= "'$IP4')";
$sql .= " VALUES";
$sql .= "(";
$sql .= "IP1, ";
$sql .= "IP2, ";
$sql .= "IP3, ";
$sql .= "IP4);";
mysql_connect($db_server, $db_user, $db_password);
mysql_db_query("server",$sql);
Is this right? If not, what is a more effiecient way of doing this?