RE: Connection to database

QuestionsRE: Connection to database
Anthony Southwood asked 12 years ago

Hi,

New to PHPGridControl.

Your code to setup DB uses variable $conn I am already making use of this variable in many of my scripts so there is now a clash! What do I need to edit to replace your use of $conn with a different variable, such as $gConn, so I can remove this clash?

Rgds
Tony

3 Answers
Anthony Southwood answered 12 years ago

Nevermind, solved this one – Just rename variable! (now why didn't I think of that sooner?)

Rgds

Fabiana answered 11 years ago

Tony do you rename your variable or jqphp variable?

Rgds

Fabi

Abu Ghufran answered 11 years ago

In phpgrid sample code,

$conn = mysql_connect("localhost", "root", "");

You can remove $conn, as it not used in code.

Your Answer

5 + 8 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?