hi, im running my site off a MySQL database and everything is done on a index.php page - e.g index.php?p=home
my code selects the pageinfo out of the database where the pagename = the current page and prints it on the screen using echo();
::code::
this works fine with normal text and html, but if in the database i put echo("Testing"
; when that got displayed on the page it came out as echo("Testing"
; not Testing. how would i make the code put out Testing not echo("Testing"
;??
URL for what im trying to do:
you can create pages if you want to try it out.
thanx
Martin
Computing help and info:
my code selects the pageinfo out of the database where the pagename = the current page and prints it on the screen using echo();
::code::
Code:
$page = $_GET['p'];
$pageInfo = mysql_query("SELECT * FROM wrV2pages WHERE pagename = '$page'");
$pageFound = mysql_num_rows($pageInfo);
if($pageFound > 0){
while ($lp = mysql_fetch_array($pageInfo)){
$pnme = $lp["pagename"];
$pntitle = $lp["title"];
$pbdy = $lp["pageinfo"];
echo($pbdy);
}
}
if($pageFound == 0){
echo("page not found");
}
}
this works fine with normal text and html, but if in the database i put echo("Testing"



URL for what im trying to do:
you can create pages if you want to try it out.
thanx
Martin
Computing help and info: