Hi guys,
I'm using version 4.2.3 both on the laptop and on the server. The only difference is that I'm running Apache on the laptop and IIS on the server.
I tried changing HTTP_GET_VARS to GET, but that still didn't work. The only thing that seems to work is using isset() or empty() and validate all variables. The below code works, but its a real pain to implement throughout the page:
if (!empty($HTTP_GET_VARS["mod"])) {
$mod = $HTTP_GET_VARS["mod"];
} else {
$mod = "";
}
switch ($mod) {
Any ideas on how to avoid this approach, it seems like I'm doing something wrong?
Even a statement as simple as this isn't working:
$rowset = $dbclass->database_sql("SELECT * FROM lit_library WHERE id = '$id'");
while ($rows = mssql_fetch_array($rowset)) {
$lit_id = $rows[id];
$lit_title = $rows[title];
$lit_category = $rows[category];
$lit_subcategory = $rows[subcategory];
$lit_date = $rows[date_entered];
$lit_description = $rows[description];
$lit_state = $rows[state_province];
$lit_website = $rows[website];
$lit_document = $rows[document];
$lit_archive = $rows[archive];
}
It says "Use of undefined constant" for all the $row variables?
Please Help!
Thanks