Bit new to PHP but I'm currently trying to pull PHP from my MySQL table.
My table looks like this
page | <?php echo "hello world"; ?>
unfortunately when i run the following code on the page, all i get is the php shown on my page in plain text
- Code: Select all
$query = mysql_query( "SELECT * FROM table", $connect );
while( $row = mysql_fetch_array( $query ) )
extract( $row )
can someone let me know if this is possible, or am i showing the data incorrectly.