Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support mysql error
1 2
Plysiu
Posted on 17 Jul 2009, 18:21:31

Access: Member
Total Posts: 6
Joined: 2009-07-17

Hello i have got this error and i dont know what to do help me
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\news\index.php on line 17

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\news\index.php on line 17

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\news\index.php on line 18

Fatal error: Call to undefined function getresult() in C:\xampp\htdocs\news\index.php on line 21


Sorry for my bad english
#645
Chris
Posted on 17 Jul 2009, 18:45:06

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Hi Plysiu,

Did you run the install.php script?
#646
Plysiu
Posted on 17 Jul 2009, 18:50:42

Access: Member
Total Posts: 6
Joined: 2009-07-17

Yes of course
#647
Chris
Posted on 17 Jul 2009, 18:56:52

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Check the db.php file to see if the database connection info has been written to it. It should look like this

Code:
<?php
/*------- Database connection info & settings ------*/
$cfg['hostname'] = "localhost";
$cfg['user'] = "username";
$cfg['pass'] = "password";
$cfg['database'] = "databasename";
?>
#648
Plysiu
Posted on 17 Jul 2009, 19:23:40

Access: Member
Total Posts: 6
Joined: 2009-07-17

I have it
#649
Chris
Posted on 17 Jul 2009, 19:31:01

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Has it written your own database connection info to the file?
#650
Plysiu
Posted on 17 Jul 2009, 19:33:22

Access: Member
Total Posts: 6
Joined: 2009-07-17

yes

btw when i going directly to localhost/news/
i see my news
#651
Last edited by Plysiu at 2009-07-17 19:34:52 Reason:
Chris
Posted on 17 Jul 2009, 20:06:00

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

If you're seeing the news that means it's been installed correctly.

Where did you see the error messages and what were you doing when it happend?
#652
Plysiu
Posted on 17 Jul 2009, 20:40:10

Access: Member
Total Posts: 6
Joined: 2009-07-17

I see it when i'm on http://localhost/

i add your news system to my site by this
include 'news/index.php';

i just find that its give me error when im working on xampp but when i install it on vertrigo its working properly
#653
Chris
Posted on 17 Jul 2009, 21:20:06

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

If it works fine on vertrigo and not your local server then it may just be a problem with how your local server is setup.

I'm not sure what that problem would be or how to fix it unforunately.
#654
1 2
Network-13.com © 2013