Is there anything wrong with this query
mysql_query("insert into shops (owner, name, location, desc, shopkeeper) values('$stat[id]','$name','$location','$desc','$sk')") or die("Could not create shop.");
Thanks
Why don't you execute it and find out?
Originally posted by LordShryku Why don't you execute it and find out?
Ive done it lots and lots of times over the past couple of hours. Redid the script, made sure everyhing is matched up, but its not working.
Any sort of errors coming out?
just the Cannot add shop.
Ive checked all the variables and they are all fine
Originally posted by Duskwalker Is there anything wrong with this query mysql_query("insert into shops (owner, name, location, desc, shopkeeper) values('$stat[id]','$name','$location','$desc','$sk')") or die("Could not create shop."); Thanks [/B]
Originally posted by Duskwalker Is there anything wrong with this query
Thanks [/B]
Try this:
mysql_query("insert into shops (owner, name, location, desc, shopkeeper) values('$stat[id]','$name','$location','$desc','$sk')") or die("Error: " . mysql_error());