$mysqli = new mysqli("locahost", "guest", "guest","mymathhelper");
if (mysqli_connect_errno()){
echo "<br><font color=red> Connection to
database failed. Click <a href=new_client.php> here</a>
to return to main menu.</font >" ;
}else{
echo "<br>good connection";
$name = trim($_POST['login']);
$sql = "call usp_add_client('" . $name . "')";
if($mysqli->query($sql)) {
echo "<br><font color=blue>" . $_POST['login']." was successfully added as your login. Click <a href=new_client.php> here</a> to return to main menu.</font >" ;
}else{
echo "<br>procedure error " . mysqli_error($mysqli);
}
}
Main Topics
Browse All Topics





by: babuno5Posted on 2007-08-03 at 22:37:34ID: 19630050
put this line above your script and check if any errors are there
error_reporting(1);