I can´t work with main index examples

QuestionsI can´t work with main index examples
fausto herrera asked 7 years ago

I connect other database table before the main file index.php from pay versión but the tables for this demo can´t. This is the error

Couldn't execute query. Access denied for user ''@'localhost' (using password: NO) – SELECT * FROM clients WHERE 1=1 LIMIT 1 OFFSET 0

why, if I can connect to other table?

my url is

http://www.wao.mx/aplica/grid/index.php

my datasource

/home/samuel/public_html/aplica/grid/index.php

thanks

1 Answers
Abu Ghufran answered 7 years ago

For grid code, try connecting with 4th param to true. It will force new connection.

$conn = mysql_connect("localhost", "root", "", true);
mysql_select_db("griddemo");

This is recommended practice if you are connecting to multiple databases in an script.
Let me know for further help. Also send some source-code part for reference with new queries.

Your Answer

10 + 14 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!