rooot
Новичок
Передача переменных из скрипта в скрипт
Есть 2 скрипта 1.php и 2.php.
1.php
-----------------------
$tab7 = $_POST['tab7'];
$tab25 = $_POST['tab2'];
$otd = "otd1";
................................................
$msquery = "select tab25,tab1,tab2,tab3,tab4,tab5,tab6,tab7,tab25 from $otd where tab25='$tab25'";
$msresults= mssql_query($msquery);
................................................
2.php
------------------------
function action1() {
}
function action2() {
$msquery = "delete from $otd where tab25='$tab25'";
$msresults= mssql_query($msquery);
mssql_close($msconnect);
}
Warning: mssql_query(): message: Incorrect syntax near the keyword 'where'. (severity 15) in c:\inetpub\wwwroot\save.php on line 12
Помогите
Есть 2 скрипта 1.php и 2.php.
1.php
-----------------------
$tab7 = $_POST['tab7'];
$tab25 = $_POST['tab2'];
$otd = "otd1";
................................................
$msquery = "select tab25,tab1,tab2,tab3,tab4,tab5,tab6,tab7,tab25 from $otd where tab25='$tab25'";
$msresults= mssql_query($msquery);
................................................
2.php
------------------------
function action1() {
}
function action2() {
$msquery = "delete from $otd where tab25='$tab25'";
$msresults= mssql_query($msquery);
mssql_close($msconnect);
}
Warning: mssql_query(): message: Incorrect syntax near the keyword 'where'. (severity 15) in c:\inetpub\wwwroot\save.php on line 12
Помогите