I am getting this error for some strange reason. I am using the same code on some of my other sites, and not getting any errors. I am even using the same code on the same application, and not getting this error:
Warning: 1 is not a MySQL link index in functions.php3 on line 16
This is the code:
function AddPic($pic_name, $pic_cat, $location, $url)
{
include("conn.php3");
$sql1 = "INSERT INTO pictures ";
$sql1 .= "(";
$sql1 .= "pic_name,";
$sql1 .= "pic_category,";
$sql1 .= "pic_location,";
$sql1 .= "pic_url) ";
$sql1 .= "VALUES ";
$sql1 .= "(";
$sql1 .= "'$pic_name',";
$sql1 .= "'$pic_cat',";
$sql1 .= "'$location',";
$sql1 .= "'$url'";
$sql1 .= ")";
mysql_query($sql1, $db);
}
Inside conn.php3 is my connection string for all my applications. Any ideas would be gret. Thanks.