HTML into PHP

First off thanks for letting me post a new thread
I taught myself php the hard way 4 years ago and always spend time first searching the web for discussions and answers, I tried using echo and other methods to add this clickable map to php, it sometimes worked , but created mutiple headers with the map below my sites normal page
Thanks for your help.

I want to add this map code --------------

Map

Map

Into my php file----------------

require_once(“include/site.php”);
dbconn();
needlogin();
sitehead();

mysql_query(“UPDATE users SET life = life_max WHERE id = “. sqlesc($id) .””);

sitefoot();
?>

After making the post above as a guest I decide to Join the forums
Thanks for your help

All you need to do is exit out of php with a closing ?> and then enter back in <?php where you need more php code on the page.
[php]

<?php require_once("include/site.php"); dbconn(); needlogin(); sitehead(); mysql_query("UPDATE users SET life = life_max WHERE id = ". sqlesc($id) .""); ?>

Map

<?php sitefoot(); ?> [/php]

Thanks very much for your time
ill insert this later today :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service