Ok.. i cant seem to figure out why some of my sql info isnt inserting.. heres the code i have for opening my db:
$server = mysql_connect($host,$user,$pass);
mysql_select_db($db,$server);
$result=mysql_query("SELECT * FROM photos",$server);
$urlresult = mysql_query("SELECT * FROM urls",$server); /*//#//*/
$res=mysql_num_rows($result);
$urres = mysql_num_rows($urlresult); /*//#//*/
$picid=$res+1;
$urlid = $urres + 1; /*//#//*/
mysql_query("INSERT INTO photos(albumid, picid, url, title, description) VALUES ('$album', '$picid', '$img1_name', '$title', '$description');",$server);
mysql_query("INSERT INTO urls(id, urlid, ahref1, ebaylink, ahref2, ebaydesc, ahref3) VALUES ( 'null', '$urlid' '$ahref1', '$ebaylink', '$ahref2', '$ebaydesc', '$ahref3' );",$server); /*//#//*/
Now this part is the only part that wont insert:
mysql_query("INSERT INTO urls(id, urlid, ahref1, ebaylink, ahref2, ebaydesc, ahref3) VALUES ( 'null', '$urlid' '$ahref1', '$ebaylink', '$ahref2', '$ebaydesc', '$ahref3' );",$server); /*//#//*/
The rest works fine but that bit wont insert... I dont get any errors or anything.. it acts normally as if all went OK but when i check my db i find nothing was added.
wit