I am very new to PHP and not exactly a programmer but I get by.
I have downloaded a template and I'm making a site for a friend of mine, I have created an admin area which writes the text into a db, I want to read that text into a page and as much as I try it won't do it!!
I have copied the same code out onto a blank html page and it works but won't work within the template so as far as I can see it must be something with the template that I am not seeing!
The string I am using is
<?php
$result = mysql_query("SELECT * FROM edittext WHERE txtname = 'clienttxt'");
while($newrow = mysql_fetch_array($result))
{
echo $newrow[1];
}
?>
The 2 tests are at:
www.jaycom.co.uk/test.php
www.jaycom.co.uk/test2.html
Can someone tell me the obvious please as its driving me mad and its far too hot for it today lol
Jayce