This topic is locked

Problem with generated code

2/12/2006 8:53:38 PM
PHPRunner General questions
A
ashok1976@hotmail.com author

On the user_list page that is generated, When I add in a new query to be executed, it is executing some old automatic query.
If I comment out the line with db_connect,

// $dbConnection=db_connect();

$strSQL="select * from papa where EmailId = '".$_SESSION["UserID"]."'";

LogInfo($strSQL);

$setuprs=db_query($strSQL,$dbConnection);
The Browser displays a different SQL query ("select 'FirstName' LastName' 'Email ID' 'AltEmail ID' from 'user' where 'AltEmail ID' = '123@123.com') with the now undefined (commented out) variable $dbConnection.
Can somebody help me?
Thanks

-ashok

admin 2/13/2006

Ashok,
please try using echoinstead of LogInfo to display the query string.