Hello All,
I have this troublesome php command line script. It seems like it will login to the database but will just not update anything.
Here is my code.
#!/usr/local/bin/php
<?
$last = "site1";
$card = "site2";
$sql = "insert into testdata (last, card) values ('$last', '$card')";
$connection = mysql_connect("localhost", "XXXX", "XXXXXXX") or Die ("couldn't Connect to server");
$db = mysql_select_db("testinput", $connection) or die ("bozo counldn't select database");
//echo "$sql";
$sql_result = mysql_query($sql ,$connection) or die ("counldn't execute guery.");
?>
Here is the Error i get everytime. counldn't execute guery
:rolleyes: