Welcome to Geeklog, Anonymous Wednesday, August 19 2026 @ 04:36 am 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
23
24
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
19
35
Quote
Anonymous
Anonymous
thank you
20
16
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();
?>
21
21
Quote
All times are EDT. The time is now 04:36 am.
- 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