I must be gettting tired as I can't see the problem here.
The following code successfully inserts the data into the table but also returns the following error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/intern/public_html/dev/actions/dd-createuser.php on line 977
$query = "INSERT into tblusers SET
accountno ='$accountno',
firstname = '$firstname',
surname = '$surname',
title = '$title',
email = '$email',
telh = '$telh',
telw = '$telw',
telm = '$telm',
telf = '$telf',
address1 = '$address1',
address2 = '$address2',
suburb = '$suburb',
city = '$city',
code = '$code',
country = '$country'";
$result = mysql_query($query) or die('Query failed. ' . mysql_error());
If the insert takes place, why do I get the error and how come the $query variable is not valid?