Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- call php from web page


rocknbil - 4:55 pm on Nov 14, 2011 (gmt 0)


Some minified code would be helpful.

Can you include the second script in the first one?

<?php
// Script that connects with DB
// Pass a variable for "full page" if not an include
if (isset($_GET['full_page'])) {
// output header
}
//output database stuff
if (isset($_GET['full_page'])) {
// output footer
}
?>

Then in index.php,

include('db-get-script.php');


Thread source:: http://www.webmasterworld.com/php/4386261.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com