This topic is locked
[SOLVED]

 dbconnection error

3/30/2011 7:24:17 AM
PHPRunner General questions
E
epanc author

Hi, use PHPRunner 5.2. After adding a report to a project, I receive an error message:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /opt/lampp/htdocs/test/flecto/include/dbconnection.php on line 34
Fatal error: in /opt/lampp/htdocs/test/flecto/include/dbconnection.php on line 36
dbconnection.php this code:
28 function db_query($qstring,$conn)

29{

30 global $strLastSQL,$dDebug;

31 if ($dDebug===true)

32 echo $qstring."
";

33 $strLastSQL=$qstring;

34 if(!($ret=mysql_query($qstring,$conn)))

35 {

36 trigger_error(mysql_error(), E_USER_ERROR);

37 }

38 return $ret;
I can not make the project work. Thanks.

Sergey Kornilov admin 3/30/2011

Usually this message means an issue with connection parameters i.e. MySQL server address, username or password.
I recommend to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

Sergey Kornilov admin 3/31/2011

Update: this was caused by some unnecessary code added to AfterApplicationInitialized event. Once removed project works as expected.