HarleyJ Posted June 11, 2007 Share Posted June 11, 2007 Im completly new to Mysql, and am having trouble while trying to run my website. I purchased a Game script. Which Display's flash games for people to play. However when trying to use some of the functions within this script I get this funky error message: Warning: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in /home/flashmor/public_html/admincp/admin.class.php on line 163 Ive checked the admin.class.php file line 163 nothing seems odd. If you want me to upload the file that would be fine I just need this fixed so I can start getting my site up and running. Greatest Regards, Harley. Quote Link to comment https://forums.phpfreaks.com/topic/55044-mysqltarded/ Share on other sites More sharing options...
btherl Posted June 11, 2007 Share Posted June 11, 2007 It sounds like a problem with your mysql configuration. Did you set a hostname, username and password for mysql in the game script? Quote Link to comment https://forums.phpfreaks.com/topic/55044-mysqltarded/#findComment-272107 Share on other sites More sharing options...
HarleyJ Posted June 11, 2007 Author Share Posted June 11, 2007 I dont beleive I did, The only instructions it came with was. 1. Install the tables from "allgamesbackup.sql" 2. Ensure /swf and /images (or whatever directorys you set) are writable (CHMOD 0777) 3. Ensure you have completed the required information in db.cnf.php 5. Alter footer.inc.php and add any information you want. Actually i did, Step 3 I had to add a username password and Hsotname. But Im not sure what my hostname would be, I think i might be my Domain name probably not. But Im not sure of my hostname. www.flashmoron.com would that be it? Quote Link to comment https://forums.phpfreaks.com/topic/55044-mysqltarded/#findComment-272108 Share on other sites More sharing options...
AndyB Posted June 11, 2007 Share Posted June 11, 2007 hostname is probably localhost - ask your web hosting provider if in doubt Quote Link to comment https://forums.phpfreaks.com/topic/55044-mysqltarded/#findComment-272114 Share on other sites More sharing options...
HarleyJ Posted June 11, 2007 Author Share Posted June 11, 2007 It still hasnt helped my error in the slightest. Quote Link to comment https://forums.phpfreaks.com/topic/55044-mysqltarded/#findComment-272119 Share on other sites More sharing options...
AndyB Posted June 11, 2007 Share Posted June 11, 2007 Then I guess either the script is intrinsically defective or you have provided the wrong information for the db.cnf.php script. Quote Link to comment https://forums.phpfreaks.com/topic/55044-mysqltarded/#findComment-272134 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.