hamster01 Posted May 18, 2007 Posted May 18, 2007 Re: No Database Selected hmm.. Goto mysql databases. You will see a connection script there. change the first var to $c. It should work then Quote
CraigF Posted May 18, 2007 Author Posted May 18, 2007 Re: No Database Selected yeah well the register page says it has no errors but i believe it is not working anyway lol. :) Deathstar, what do you mean, if i go to "MySql Databases" in my cPanel i dont see any connection script Quote
hamster01 Posted May 18, 2007 Posted May 18, 2007 Re: No Database Selected There will be: Current Databases: fallen DELETE CHECK REPAIR Under that: Look for: "Connection Strings" The php one Quote
CraigF Posted May 18, 2007 Author Posted May 18, 2007 Re: No Database Selected lol: MySQL Account Maintenance Add User to Database Add Database Add User Add Access Host PHP MyAdmin Databases: fallen_fallen DELETE CHECK REPAIR THEN UNDER IT IS: Add User to Database (STUFF) Add Database: (STUFF) Add User (STUFF) Add Access Host (STUFF) PhP My admin Quote
hamster01 Posted May 18, 2007 Posted May 18, 2007 Re: No Database Selected :| try: <?php $c = mysql_connect('localhost','fallen','password'); mysql_select_db('fallen_fallen',$c); ?> Quote
CraigF Posted May 18, 2007 Author Posted May 18, 2007 Re: No Database Selected it is just the same Quote
hamster01 Posted May 18, 2007 Posted May 18, 2007 Re: No Database Selected hmm... Maybe your hos tis doing maintenance? Quote
CraigF Posted May 18, 2007 Author Posted May 18, 2007 Re: No Database Selected i dont think so, my host is oxidati0n is it a problem with my sql? can you send me v1 sql? as mine must be weird as i have added a few things ¬¬ Quote
hamster01 Posted May 18, 2007 Posted May 18, 2007 Re: No Database Selected try the one i just posted :s Quote
CraigF Posted May 18, 2007 Author Posted May 18, 2007 Re: No Database Selected what? the mysql.php? i said i tried it lol and its just the same Quote
CraigF Posted May 19, 2007 Author Posted May 19, 2007 Re: No Database Selected no lol, i have it working but with lite sql :x i need new v1 sql! mine is a bit errored as i added some and i forgot to save it and it is broken! Quote
hamster01 Posted May 19, 2007 Posted May 19, 2007 Re: No Database Selected Lostone, Normally that cpanel user name and the username is the same ;) Its like as offen as the mysql's password isnt the same as phpmyadmin, mysql's values is in phpmyadmin :lol: Quote
oxidati0n Posted May 19, 2007 Posted May 19, 2007 Re: No Database Selected it should be tht should work. mysql_select_db("fallen_DBNAME",$c); Quote
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.