1
kerkyra
debaser hack - javascript inside php with echo - openwithselfmain
  • 2007/10/12 17:46

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hi i'm trying to make an image link to open in a popup window using javascript but the script is not working! anybody knows whats wrong with the following code??

Quote:


this code is part of a file i made for debaser called radio.php and is responsible for showing a list with the stations added in the module (see demo at
http://www.mykerkyra.gr/modules/debaser/radio.php)

the code is the following

Quote:

include '../../mainfile.php';
include XOOPS_ROOT_PATH.'/modules/debaser/include/functions.php';
include XOOPS_ROOT_PATH.'/header.php';
include_once XOOPS_ROOT_PATH.'/modules/debaser/class/debasertree.php';
global $xoopsDB;
global $admin, $radioid;

echo "



";
$count = 0;
$idnum = 1;

$sql = "SELECT radio_id, radio_name, radio_picture, radio_url
FROM ".$xoopsDB->prefix('debaserradio')."
ORDER BY radio_name ASC";

$result = $xoopsDB->query($sql);
while (list($radio_id, $radio_name, $radio_picture,$radio_url) = $xoopsDB->fetchRow($result)) {

if ($radio_id != "") {
if ($count == 0) {$count = 1;}
echo "



";
$idnum = $idnum + 1;
}
}echo "

"._AM_DEBASERRAD_PROG."
$radio_name $radio_name
-----> this part of the code is the one not working at all

//
----> this works but not as a pop up window

Listen


Home Page
";

include_once XOOPS_ROOT_PATH.'/footer.php';
?>
whttp://www.guidemap.gr - Beta is out...

Login

Who's Online

238 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits