Jump to content

Simple database problem


Arkwell

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/149684-simple-database-problem/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.