jam
2007-10-06 08:03:08 UTC
I get the above error in the following code, the line with the error seems to be:
$test-> sql = "SELECT body FROM test.articles";
full code:
phpinfo();
include("C:\Inetpub\wwwroot\my_pagina_class.php");
$_SERVER['DOCUMENT_ROOT'] = "C:\Inetpub\wwwroot\";
$test = new MyPagina;
$test-> sql = "SELECT body FROM test.articles";
$result = $test->get_page_result();
$num_rows = $test->get_page_num_rows();
$nav_links = $test->navigation(" | ", "currentStyle");
$nav_info = $test->page_info("to");
$simple_nav_links = $test->back_forward_link();
$total_recs = $test->get_total_rows();
?>
when i refresh the example.php page i get the following error:
Error in my_thread_global_end(): 1 threads didn't exit PHP Parse error: syntax error, unexpected T_STRING in C:\Inetpub\wwwroot\example.php on line 8
global variables parameter in php.ini is on, so i dont understand why it doesnt work.
I am a php newbie,
Thanks in advance
kind regards
Tovia Singer