">" problem in PHP code
-
Hi, I try to execute a php code that stop when find a ">" char. I new in web developing and i think that my feel experiencie is the real problem. some one can help me ? The messege i received on top of the page in preview is setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if > (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?> The code i wish to execute is: <?php require 'class.eyemysqladap.inc.php'; require 'class.eyedatagrid.inc.php'; // Load the database adapter $db = new EyeMySQLAdap('localhost', 'root', '', 'codes'); // Load the datagrid class $x = new EyeDataGrid($db); // Set the query $x->setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?><HTML><HEAD><TITLE>EyeDataGrid Example 1</TITLE><LINK href="table.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.6002.18130" name=GENERATOR></HEAD><BODY> <H1>Basic Datagrid</H1> <P>This is a basic example of the datagrid</P> <?php$x->printTable(); ?> </BODY></HTML>
-
Hi, I try to execute a php code that stop when find a ">" char. I new in web developing and i think that my feel experiencie is the real problem. some one can help me ? The messege i received on top of the page in preview is setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if > (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?> The code i wish to execute is: <?php require 'class.eyemysqladap.inc.php'; require 'class.eyedatagrid.inc.php'; // Load the database adapter $db = new EyeMySQLAdap('localhost', 'root', '', 'codes'); // Load the datagrid class $x = new EyeDataGrid($db); // Set the query $x->setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?><HTML><HEAD><TITLE>EyeDataGrid Example 1</TITLE><LINK href="table.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.6002.18130" name=GENERATOR></HEAD><BODY> <H1>Basic Datagrid</H1> <P>This is a basic example of the datagrid</P> <?php$x->printTable(); ?> </BODY></HTML>
Can you please post the error message with error line number? Also please check is there any whitespace before <?php , if there is any then try removing it. :) http://www.halalit.net
-
Hi, I try to execute a php code that stop when find a ">" char. I new in web developing and i think that my feel experiencie is the real problem. some one can help me ? The messege i received on top of the page in preview is setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if > (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?> The code i wish to execute is: <?php require 'class.eyemysqladap.inc.php'; require 'class.eyedatagrid.inc.php'; // Load the database adapter $db = new EyeMySQLAdap('localhost', 'root', '', 'codes'); // Load the datagrid class $x = new EyeDataGrid($db); // Set the query $x->setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?><HTML><HEAD><TITLE>EyeDataGrid Example 1</TITLE><LINK href="table.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.6002.18130" name=GENERATOR></HEAD><BODY> <H1>Basic Datagrid</H1> <P>This is a basic example of the datagrid</P> <?php$x->printTable(); ?> </BODY></HTML>
-
just a basic look at the code it seams that you are missing a space in this part of the code. <?php$x->printTable(); try <?php $x->printTable();