Thanks for the tip...
I echo'd the sql statement and all looked OK...
I broke it up into 2 statements ...
Still no use...
I keep getting the 'Insert didn't work' error I put in...
I also added an 'or die' statement to the DB call...
if ($submit)
{
// Access DB
include ("final_code/dbConnect.php") or die("Bad DB");
// Check other users
$check_result = mysql_query ("Select * From owners Where OwnerUser = '$ownerusername'");
$check_num = mysql_num_rows($check_result);
if ($check_num > 0)
{
$url = "http://www.apartment-scout.com/owner_register.php?error=1";
$delay = "0";
echo '<meta http-equiv="refresh" content="'.$delay.';url='.$url.'">';
}
else
{
// Input information into owners table
echo $ownername;
echo "<br>";
echo $owneraddress;
echo "<br>";
echo $ownercity;
echo "<br>";
echo $ownerzip;
echo "<br>";
echo $ownerphone;
echo "<br>";
echo $ownerwebsite;
echo "<br>";
echo $owneruser;
echo "<br>";
echo $ownerpass;
echo "<br>";
echo $ownerstate;
echo "<br>";
echo $ownercontact;
echo "<br>";
$babaloo = "Insert Into owners (OwnerName, OwnerAddress, OwnerCity, OwnerZip, OwnerPhone, OwnerWebsite, OwnerUser, OwnerPass, OwnerState, OwnerContact)
Values ('$ownername','$owneraddress','$ownercity','$ownerzip','$ownerphone','$ownerwebsite','$owneruser','$ownerpass','$ownerstate','$ownercontact')";
echo $babaloo;
echo "<br>";
$lucy = mysql_query($babaloo) or die ("Query Didn't Work");
I just can't understand what's wrong when there is a page that is nearly the same, and it works fine...
Stressing...!
What a wonderful world....!
Oh no ! I'm losing it...!