trillion Posted September 16, 2006 Share Posted September 16, 2006 I am able to connect to the database then later in the scriptI have this code:define('SQL_PREFIX', $_POST['username']);$calsql4 = "CREATE TABLE `".SQL_PREFIX."_uid` (`id` int(11) NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;";$query4 = mysql_query($calsql4, $link);$result = mysql_query($query4) or die('Query failed: ' . mysql_error());and when I run the script I get this error:Query failed: Query was emptyThe strange thing is that i works on my local server but not on my remote server.There is a difference in versions:local = 4.1.13aremote = 4.0.18Both PHP versions are the same. Why will this code work on my local server and not remotely? What is making the query read as empty? Link to comment Share on other sites More sharing options...
wildteen88 Posted September 16, 2006 Share Posted September 16, 2006 Thread close. Please do not post multiple instances of threads around the forum. Link to comment Share on other sites More sharing options...
Recommended Posts