here is my code
<?php
include_once 'nur_MySQL_connect.php';
if ($_POST)
{
print_r($_POST);
$table = ($_POST['table']);
$host = ($_POST['host']);
$user = ($_POST['user']);
$pass = ($_POST['pass']);
$database = ($_POST['db']);
$action= ($_POST['act']);
}
$mysqli = nur_MySQL_connect($host,$user,$pass,$database);
if ($action == "add2table")
{
$line= ($_POST['newLine']);
$quer = "INSERT INTO $table VALUES $line";
// $quer = $mysqli->real_escape_string($quer);
// i tried using the escape sctring... but then the query doesnt work
$mysqli->query($quer) or die ("$quer");
echo $mysqli->affected_rows;
}
?>
basicly it prints 1 (which is for the $mysqli->affected_rows) but it doesnt update the table...
thank you very much
LCD


Sign In
Create Account

Back to top









