Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 03:44 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
12
12
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
10
24
Quote
Anonymous
Anonymous
thank you
8
7
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();
?>
10
9
Quote
All times are EST. The time is now 03:44 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