Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Values not showing up.


Message #1 by Empier4552@a... on Tue, 29 Oct 2002 23:21:50
Well just for the heck of it, I believe it's better  to use:

$sql = "SELECT * FROM $table_name WHERE cid='$ucid' AND pin 
'$upin' ";

THAN

$sql = "SELECT * FROM $table_name WHERE cid=\"$ucid\" AND pin 
\"$upin\" ";

I have heard that it takes more time to parse through double quotes.

And also, in your IF statements, the reason it may be being looked over is
because you have integers nested in double quotes, which is unneccessary.

Instead of this for instance:
if ($barge == "1") {
blablabla...
}

Try:

if($barge == 1){
blablabla...
}

I also noticed that in a couple of your IF's you only have a singular '=', I
believe you should use == in most cases.

Hope this does something:)
-Kyle.



  Return to Index