Welcome to Geeklog Friday, September 25 2020 @ 10:42 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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany

That's simple:

PHP 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

 Quote

Anonymous

Anonymous
thank you
 Quote

Anonymous

Anonymous
it does diaply header and left blocks but footer anf right blocks dont work Frown..any solution? here is my script: <? require ('../lib-common.php'); $display = COM_siteHeader(); $display .= COM_startBlock(); include("music_functions.php"Wink; 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(); ?>
 Quote

All times are EDT. The time is now 10:42 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