Jump to content

HELP!!11 SCRIPT IS ACTING UP.1!1...


newb

Recommended Posts

[code]<?php
// Begin Default Module Code

if ( $_GET['name'] == NULL )
{
$sql1 = mysql_query("SELECT * FROM p16_modules WHERE default_module = 1 LIMIT 1", $connection); 
$row = mysql_fetch_array( $sql1 );

$mod_active = $row['active_module'];
$modtitle = $row['title'];
$modpath .= "modules/".$modtitle."/".$file.".php";

if ( mysql_num_rows( $sql1 ) < 1 )
{
echo "<font face='Tahoma' size='1'><b>Oh my god! No default module!!</b></font>";
} else if ( mysql_num_rows ($sql1 ) == 1 & mod_active == 1 & file_exists($modpath)) {
include($modpath);
} else {
include($deactive);
}
}
}
// End Module Code
?>
[/code]

The module is active and the file exists, yet it includes $deactive. any idea why?? please help!
Link to comment
https://forums.phpfreaks.com/topic/16762-help11-script-is-acting-up11/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.