What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » MySQL

MySQL
Author: Message:
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: MySQL
Make the following changes

mysql_connect("localhost","username","password");
mysql_select_db("database");

becomes

@mysql_connect(...) or die("Unable to connect to database.");
@mysql_select_db(...) or die("Unable to select correct database.");

Edit: where (...) is your parameters above.

Do this for all the queries as well, but you could leave out the @ on them. If you're using it on a local server you may also wish to do . mysql_error()); which prints out a nice error telling you the exact problem.

Of course, this might not be where the problem is. What doesn't work?

This post was edited on 06-20-2008 at 07:41 AM by andrewdodd13.
[Image: AndrewsStyle.png]
06-20-2008 07:40 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
MySQL - by Eddie on 06-20-2008 at 06:44 AM
RE: MySQL - by andrewdodd13 on 06-20-2008 at 07:40 AM
RE: MySQL - by Eddie on 06-20-2008 at 07:44 AM
RE: MySQL - by NanaFreak on 06-20-2008 at 08:01 AM
RE: MySQL - by andrewdodd13 on 06-20-2008 at 03:29 PM
RE: MySQL - by Volv on 06-20-2008 at 03:34 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On