What will happen if this code is wrong? The first is true. The second type is incorrect. if there is no bean number between fields, what will happen if we follow the second method? First: {& nbsp; $ r$ empire-& gt; fetch1 (& quot; selectid, ddd, aaa, bbbfrom {$ dbtbpre} ecms _ & quot ;. $ class_r [$ classid] [what will happen if the code tbname is wrong?
The first is true. The second type is incorrect, and the fields do not contain the bean number.
What will happen if we follow the second approach?
First:
{
$ R = $ empire-> fettings ("select id, ddd, aaa, bbb from {$ dbtbpre} ecms _". $ class_r [$ classid] [tbname]. "where id = '$ ID' and classid =' $ classid 'limit 5 ");
If ($ r [id])
{
?>
Document. write (' ',' ',' ');
}
}
Else
{
?>
Document. write ('View after login ');
}
Db_close ();
$ Empire = null;
?>
Second:
{
$ R = $ empire-> fettings ("select id, ddd aaa bbb from {$ dbtbpre} ecms _". $ class_r [$ classid] [tbname]. "where id = '$ ID' and classid =' $ classid 'limit 5 ");
If ($ r [id])
{
?>
Document. write (' ',' ',' ');
}
}
Else
{
?>
Document. write ('View after login ');
}
Db_close ();
$ Empire = null;
?>
Where ddd aaa bbb is the controlled field
------ Solution --------------------
It does not matter!
Depends on different databases
------ Solution --------------------
Nothing. an error may occur. May be viewed as an alias
------ Solution --------------------
Discussion
It does not matter!
Depends on different databases
------ Solution --------------------
Select id, ddd aaa bbb.
Select id, ddd aaa will regard aaa as the alias of ddd