Welcome to Geeklog, Anonymous Wednesday, June 18 2025 @ 01:51 pm EDT
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
17
15
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
14
29
Quote
Anonymous
Anonymous
thank you
13
12
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();
?>


14
13
Quote
All times are EDT. The time is now 01:51 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