这里有两个文件
control.php 和diaplay.php
control.php
请帮助我的大学项目停止-------if(isset($_REQUEST['submit']))
{
$a=$_REQUEST['txt_email'];
$b=$_REQUEST['txt_name'];
$c=$_REQUEST['txt_password'];
$d=$_REQUEST['txt_phno'];
$e=$_REQUEST['r1'];
$f=$_REQUEST['sel_business'];
$g=$_REQUEST['txt_company_name'];
$h=$_REQUEST['txt_address'];
$results=$ob1->insert($a,$b,$c,$d,$e,$f,$g,$h);
==============================================
=== however inside print_r($results);=========
===============================================
}
34 line here----------->>>>>>>>>> print_r($results);
包括( 'control.php');
答案 0 :(得分:0)
你包含了control.php,它再次检查你的情况下错误的isset条件。你可以检查一下 -
if(isset($_REQUEST['submit']))
{
$a=$_REQUEST['txt_email'];
$b=$_REQUEST['txt_name'];
$c=$_REQUEST['txt_password'];
$d=$_REQUEST['txt_phno'];
$e=$_REQUEST['r1'];
$f=$_REQUEST['sel_business'];
$g=$_REQUEST['txt_company_name'];
$h=$_REQUEST['txt_address'];
$results=$ob1->insert($a,$b,$c,$d,$e,$f,$g,$h);
}
else
{
$result = "this is else condition";
}
print_r($results);
答案 1 :(得分:0)
$results = ""; //If it's returning STRING
$results = array(); //If it's returning ARRAY
if(isset($_REQUEST['submit']))
{
//YOUR CODE
}
你没有得到它,因为只有当你的IF
条件成立时才会声明