Arkwell Posted March 16, 2009 Share Posted March 16, 2009 Im trying to simply create a database in php and have flash read whatever is in the database, and have flash also write to the database. Here is where I think lies my problem. When you have to put $DBhost or user or name or w/e in the php script to log onto the host, on my web hosting site in myadmin it says this; » MySQL Database: a8840811_arky » MySQL User: a8840811_arkwell Now, do I have to put that number in aswell, like this? $DBhost = "localhost"; // Database Server $DBuser = "a8840811_arkwell"; // Database User $DBpass = "----------"; // Database Pass $DBName = "a8840811_arky"; Or just put arkwell and arky? Or would I put it after localhost maybe? It says this when I am inside the database in myadmin; Server: localhost - Database: a8840811_arky - Table: ---- Im just confused as to why it doesnt work. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 16, 2009 Share Posted March 16, 2009 you do need the numbers...just as your try. if that isn't working, you should probably call up your hosting service's tech support Quote Link to comment Share on other sites More sharing options...
Arkwell Posted March 16, 2009 Author Share Posted March 16, 2009 Ive heard that you cant send more than 8 characters to flash from php for those variables..is this true? If so, then this is why..because even with the numbers it still isnt working.. Is there any way I can somehow do this; http://mywebsite.com/script.php/READ VARIABLE(display in browser) So I can check if it isnt just my flash thats broken Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 16, 2009 Share Posted March 16, 2009 wait, you are putting your DB name/password in flash? and it's passing them to a PHP file? I don't understand. if you want to test your username/password, just use example #1 on this page: http://us.php.net/mysql_connect Quote Link to comment Share on other sites More sharing options...
Arkwell Posted March 16, 2009 Author Share Posted March 16, 2009 OK it worked Just missed a notice that said dont use localhost..apparently I have to use something else..but it works Quote Link to comment 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.