Ответов: 4 Просмотров: 276
|
ответьте нубу
почему не раб
стр 1.php
CODE ( text):
скопировать код в буфер обмена
<? $linput = @$_POST['input']; $l2input = @$_POST['2input']; include 'include/database.php'; mysql_connect ($dbServer, $dbUser, $dbPassword); @mysql_select_db ("$dbName"); "INSERT INTO $tableTest (input, 2input) VALUES ('$linput', '$l2input')"; ?> ....... <form action="1.php" method="post" enctype="multipart/form-data" id="form1"> <label> <input name="input" type="text" /> </label> <label> <input name="2input" type="text" /> </label> <label> <input type="submit" name="Submit" value="Добавить в БД" /> </label> ....
(Добавление)
+ табл - id , input, 2input
(Добавление)
всё разобрался |