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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.