Mysql Connect Help
- CONNORW
-
CONNORW
- Member since: Dec. 5, 2006
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
Hello Everyone, I am VERY VERY VERY new to mysql. Ive read a few tutorials on it but thats about it. Ive set up my database and stuff but my only problem is ....I cant connect to it.
Ive gotten this info from my host.
Host Name mysql209.secureserver.net
Database Name 10201758
User Name 10201758
password ******
Ive blanked out the password because Id rather not have the immature users connect and hack it. But otherwise, how would you use this info to connect. Ive been trying for days but nothing works. Could someone give me the php script using that info to connect to my database! PLEASE! ='(
Thanks,
James,
- CONNORW
-
CONNORW
- Member since: Dec. 5, 2006
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
- Engalde
-
Engalde
- Member since: May. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 07
- Blank Slate
Are you trying to install a forum or a Cms of some kind and How are trying to connect the database? (Phpmyadmin?)
Secondly who names there DB's random numbers. Thats not very decriptive at all But I suppose its up to your own tastes...
Unblock Newgrounds at school or work.
- CONNORW
-
CONNORW
- Member since: Dec. 5, 2006
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
Thanks but I figured it out. Ive set up the database and it works. Just one more question though. Im getting this error sometimes
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
what does it mean?
- henke37
-
henke37
- Member since: Sep. 10, 2004
- Offline.
-
- Forum Stats
- Member
- Level 30
- Blank Slate
that means the result resource you passed to the function was invalid.
Most likely the query failed, but you didn't check the return value of mysql_query.
Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.

