home about solutions purchasing support news contact
Support
Software
Hardware
Networking
Training
Medusa Support Administration
Username
Password 
NOTE: Only Medusa Business Solutions staff are authorised to access the Administration area.
Support area search  
The Medusa Business Solutions Support section will provide you with answers to any questions associated with our products and their implementation and maintenance.
Select an area from the menu to the left or enter a search option above.
logOut();"; } if(isset($_POST['addclient'])) { $nid = getNextId(); echo ""; } function getNextId() { $nid = 0; $con = mysql_connect("localhost","w0315","a20o23g16"); if (!$con) die('Could not connect: ' . mysql_error()); else { mysql_select_db("medusabs_com_Clients", $con); $result = mysql_query("SELECT * FROM Clients"); $cnt = 0; while($row = mysql_fetch_array($result)) { $nid = $row['ID']; $cnt++; } mysql_close($con); if ($cnt > 0) $nid++; else { $nid = 1; } } return $nid; } function checkUser($uname, $pword) { $con = mysql_connect("localhost","w0315","a20o23g16"); if (!$con) die('Could not connect: ' . mysql_error()); else { mysql_select_db("medusabs_com_Clients", $con); $result = mysql_query("SELECT * FROM Users WHERE mbs_uname = '" . $uname . "' AND mbs_pword = '" . $pword . "'"); $cnt = 0; $full_name = ''; while($row = mysql_fetch_array($result)) { $full_name = $row['mbs_fname'] . " " . $row['mbs_sname']; $cnt++; } mysql_close($con); if ($cnt > 0) { echo ""; } else { echo ""; } } } function writeDetails($fname, $sname) { $con = mysql_connect("localhost","w0315","a20o23g16"); if (!$con) die('Could not connect: ' . mysql_error()); else { mysql_select_db("medusabs_com_Clients", $con); $sqlstr = "INSERT INTO Clients (ID, first_name, last_name) VALUES (" . getNextId() . ", '" . $fname . "', '" . $sname . "')"; mysql_query($sqlstr); mysql_close($con); } } ?>