Log in

View Full Version : MY Sql Database Help



Save
08-11-2007, 05:44 PM
I bought this ACP of ebay ( http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&ssPageName=STRK:MEBTOX:IT&item=270182610447&_trksid=p3984.cTODAY.m238.lVI ) for my games website. But im having trouble when adding games it says

[quote]
Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163

Warning: mysql_insert_id() [function.mysql-insert-id (http://www.sameoldshit.co.uk/admincp/function.mysql-insert-id)]: A link to the server could not be established in /home/sameolds/public_html/admincp/admin.class.php on line 163
[quote]

Any idea what im doing wrong?

+Rep to help

iTechnical
08-11-2007, 05:50 PM
Hmm, best bet would to ask
Oli
Caleb
Redtom
or other v. good phpers.

Save
08-11-2007, 06:20 PM
Ta. Ill pay some one £70 odd p to sort it out all i have left in paypal sorry LOL!

iTechnical
08-11-2007, 06:39 PM
I'll have a check around in what I know.

i'll edit here.

I think it's a PHP error,
either one of these
- The Database doesnt exist, there's no direct link with the DB

- Or, you've put wrong info in..

I may be wrong

whats on line 163?

Jahova
08-11-2007, 06:48 PM
Post line 163 or even the whole file and we can get cooking.

- Tom

iTechnical
08-11-2007, 06:49 PM
Post line 163 or even the whole file and we can get cooking.

- Tom

Pretty much yup.
[Btw which part of Cardiff you from?]

Blob
08-11-2007, 07:12 PM
PM me.

MrCraig
08-11-2007, 09:32 PM
You havent connected to database properly

ie

<?
mysql_connect("localhost","dbUser","dbPw");
mysql_select_db("DataBase Name");
?>


Might be wrong?

iTechnical
08-11-2007, 09:36 PM
You havent connected to database properly

ie

<?
mysql_connect("localhost","dbUser","dbPw");
mysql_select_db("DataBase Name");
?>


Might be wrong?

Said first without example :O!

xD

QuickScriptz
08-11-2007, 09:40 PM
I'll have a check around in what I know.

i'll edit here.

I think it's a PHP error,
either one of these
- The Database doesnt exist, there's no direct link with the DB

- Or, you've put wrong info in..

I may be wrong

whats on line 163?



You havent connected to database properly

ie

<?
mysql_connect("localhost","dbUser","dbPw");
mysql_select_db("DataBase Name");
?>


Might be wrong?

What they both said is very correct. You will receive that kind of error when the script cannot connect to the database because:

a) It doesn't exist
b) Your connection details are wrong
c) The script hasn't connect to the db

I'm sure if you post the rest of your code someone here will be able to help you out :)

Jae.
09-11-2007, 07:40 AM
The MySQL databases' IP is incorrect.

MrCraig
09-11-2007, 04:12 PM
Said first without example :O!

xD

Yeah, but examples rock ;]

And yh, it looks to me that the mysql_connect hasnt been included in the script at all or it would pop up with
Acces denied for user *username* on *database name* using password: NO


So like, check to see if the script includes mysql_connect or mysql_pconnect at all.

iTechnical
09-11-2007, 04:14 PM
Yeah, but examples rock ;]




Too true.. Oh so true.

Want to hide these adverts? Register an account for free!