ZappyLawns Posted April 14, 2014 Share Posted April 14, 2014 (edited) I created a db named zappylaw_system I used this: Name the table "dbUsers." It will need 4 fields: Name Type Additionid int(10) Primary Key, AUTO_INCREMENTusername varchar(16) Uniquepassword char(16)email varchar(25) <? // Replace the variable values below // with your specific database information. $host = "rob2"; $user = "zappylaw_rob"; $pass = "haha12"; $db = "zappylaw_system"; // This part sets up the connection to the // database (so you don't need to reopen the connection // again on the same page). $ms = mysql_pconnect($host, $user, $pass); if ( !$ms ) { echo "Error connecting to database.\n"; } // Then you need to make sure the database you want // is selected. mysql_select_db($db); ?> I think my problem is here: $host = "rob2"; $user = "zappylaw_rob"; $pass = "haha12"; $db = "zappylaw_system"; i added a user named zappylaw_rob password was haha12 and mysql host is rob2 waht am i doing wrong? If you want to help me more go here: [removed] Edited April 14, 2014 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/287760-x10hosting-mysql-help/ Share on other sites More sharing options...
Barand Posted April 14, 2014 Share Posted April 14, 2014 Have you considered looking at the output from mysql_error() and letting that tell you what's wrong? Quote Link to comment https://forums.phpfreaks.com/topic/287760-x10hosting-mysql-help/#findComment-1476091 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.