if (!mysql_query($sql, $bonushsystemconnect))
die('Error: ' . mysql_error());
echo "1 record added";
For some reason the if statement to stop it going on an adding the new row or copying the image, it seems to ether not be checking the DB or there is something wrong with placing if statements in side else statements?
Last edited by codefreek : 08-05-2009 at 01:25 PM.
Reason: PHP tags added - please read http://www.talkphp.com/lounge/4563-prettifying-pasted-code-talkphp.html