returns assoc array //c -> just returns num of rows $ary = array(); $dbconnect = new mysqli('localhost', 'ecoszzqh_webadm', '3xFu5naX-[3.', 'ecoszzqh_webadm'); $res = $dbconnect->query($sql); if (!$res){ echo '

Error with following sql: $sql

'; return $ary; } $modif = (preg_match("~^\s*(UPDATE|INSERT|DELETE)\b~",$sql)); if ($modif) return array(1); while ($row = $res->fetch_assoc()) { if ($f == "a"){ $ary[] = $row; } else { $ary[] = array_values($row); } } if ($f == "c"){ return count($ary); } else { return $ary; } } $dnum = date(Ymd)*4; $from = $_GET['fr']; if($from == ""){ $from = $_POST['fr']; } if($from != $dnum){ echo("

<<<<Restricted Area>>>>" . "
Sorry, you must Log In to view this Page

"); exit(); } $usrn = $_GET['usrn']; if($usrn == ""){ $usrn = $_POST['usrn']; } if($usrn == ""){ echo("

<<<<Restricted Area>>>>" . "
Problem with your username. Please Log In again.

"); exit(); } $ID = $_POST['ID']; //$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1'); //mysql_select_db('ecosmar_website', $dbcnx); ?>
BACK

ecosmartinc.com

Eco-$mart On-line Administration

Edit Eco-$mart Downloads

Successful Deletion From Download List

"); }else{ echo ("

Error Deleting Download from Data Base!
". '

'); } ?>
Eco-$mart Public Calendar
©2005 - Data Base Interface - Custom Built at: kwgrubbs.com