|
-
Dec 12th, 2009, 10:22 PM
#1
[RESOLVED] Flash site on server not comminicating with database
Hi,
I'm not sure where this belongs! However, my problem is that a flash website that I created earlier this year doesn't won't to communicate with the database on the webhost. I know the connection to the webhost is working because I am using the exact same connection code as the html version of the website which works.
PHP Code:
<?php //connect to db $conn = mysql_connect("mysql11.**********.com", "user", "password"); if (!$conn) { die("Connection failed: " .mysql_error()); } // Database connection variables $dbDatabase = "a2834022_bazaarc"; ?>
However, when I attempt to send the information to the database I get:
Transfering data from error.**********.com
whereas the html website retrieves and sends information to the database as expected. The strange thing is that the flash website works when it is on my local machine using "localhost".
I have tried replacing:
var dataurl:String = "http://localhost/Bazaar Ceramics/";
with
var dataurl:String = "http://astafeweb.net16.net/Bazaar Ceramics/";
with the server name as it appears in the browser's address bar but it doesn't work. The only other thing I can think of is that I can't have two websites connecting to the same database or that connections are getting mixed up somehow.
Edit:
I have even tried changing the dataurl:
var url:String = "http://mysql11.**********.com/Bazaar Ceramics/";
Although, while I no longer receive the above error the script seems to stop working after about 30 seconds and still doesn't send/receive information to the database.
Thanks,
Nightwalker
Last edited by Nightwalker83; Dec 13th, 2009 at 12:54 AM.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|