byronwells Posted January 22, 2010 Share Posted January 22, 2010 Alright Guys I really need your help.. I have got this php file that I have created that I wish to use for this page layout http://www.digitalresellersvault.com/contact.php This is what I would like it to look like http://www.digitalresellersvault.com.../contactus.php This is the code for contact.php page <?php include_once ("header.php"); // get contact page info from database $q = "select * from ".$prefix."site_settings"; $v = $db->get_a_line($q); $contact_page = $v['contact']; $contact_page = stripslashes($contact_page); // display contact page $returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $contact_page); $returncontent = preg_replace("/[$]/","$",$returncontent); echo $returncontent; include_once ("footer.php"); ?> My first question is as follows: How do I tell the content page to read that file.. Every time I do it using the include_once and then link to that file it displays it incorrectly.. My second question is: I need help in moving the contents code to the contactus.php page... I explain more when I get the first question done Link to comment https://forums.phpfreaks.com/topic/189387-how-do-i-include-this-file-please/ Share on other sites More sharing options...
rajeevbharti Posted January 22, 2010 Share Posted January 22, 2010 your code looks good but i cannot understand what actually you want . what is the error ... Link to comment https://forums.phpfreaks.com/topic/189387-how-do-i-include-this-file-please/#findComment-999788 Share on other sites More sharing options...
byronwells Posted January 22, 2010 Author Share Posted January 22, 2010 Well if you have a look at both pages.. Then you can tell they are not the same... I am trying to make the contact.php look the same as the marketplace.php Link to comment https://forums.phpfreaks.com/topic/189387-how-do-i-include-this-file-please/#findComment-999892 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.