Welcome to Geeklog, Anonymous Friday, February 13 2026 @ 02:20 pm EST
Geeklog Forums
PHP Script Integration...
Anonymous
Anonymous
Hello,
I have a simple PHP script..displays info from MySQL DB. Well what I want to do is to integrate it to GeekLog so it has all of the blocks in it, header, footer..pretty much like static pages..
Please help..thanks
19
19
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That's simple:
Text Formatted Code
require_once('lib-common.php');$display = COM_siteHeader('menu');
$display .= COM_startBlock("Some title");
$display .= YourFunctionHere();
$display .= COM_endBlock();
$display .= COM_siteFooter();
echo $display
bye, Dirk
15
31
Quote
Anonymous
Anonymous
thank you
17
13
Quote
Anonymous
Anonymous
it does diaply header and left blocks but footer anf right blocks dont work
..any solution?
here is my script:
<?
require ('../lib-common.php');
$display = COM_siteHeader();
$display .= COM_startBlock();
include("music_functions.php"
;
switch($view)
{
case songs:
get_songs();
break;
case albums:
get_albums();
break;
case bands:
get_bands();
break;
default:
$abc="A";
get_bands($abc);
break;
}
$display .= COM_endBlock();
$display .= COM_siteFooter();
?>
17
16
Quote
All times are EST. The time is now 02:20 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content