Current Page: 1 of 1
Results 1 - 3 of 3
17 years ago
IanS
Thks for the detailed responses. Unfortunately, i dont believe the exit statement is the problem. I dont get any details that the connect failed. As i said, if i put the same code inline in a single php file, it all works. Also, i have put in an echo "hello world"; in the failure code - and i get nothing. In fact, if i reset the $statment variable just before the eventual mysql_fetc
Forum: WampServer English
17 years ago
IanS
Sorry, The code i provided doesnt show the entire code - just what i thought were the relavent bits. ** php.ini ** display_errors = On error_reporting = E_ALL $ ~E_NOTICE 2. more Code ** test.php ** <?PHP include ("./sqlfunctions.php" // contains user function called sql, for mysql functions $selected_id='1'; $statment = "select * from debtors where Ourref=$selected_id&quo
Forum: WampServer English
17 years ago
IanS
I am running Wamp5 V1.4.4 Im relativley new to PHP/MySQL etc. I am getting what i consider wierd issues with variables being cleared. ***** Test.php *** include ("./sqlfunctions.php" // have code that sets up a variable called $statment. $statment = "select * from debtors" $res = sql($statment) // user function call **** sqlfunctions.php **** function sql($statment,$asso
Forum: WampServer English
Current Page: 1 of 1