Jump to content

[SOLVED] question


jakebur01

Recommended Posts

What will it do if "SELECT * FROM prog_item WHERE `item` = $partnumber" does not return anything? Would it just skip that section?

 

  if($distributorcheck==$dealercheck)
   { $c11="$dealercheck"; $c12="$dealercheck"; $c13="$dealercheck"; $c14="$dealercheck"; $c15="$dealercheck"; $c16="$dealercheck"; }
   
   else
   {
                            
$result2 = mysql_query("SELECT * FROM prog_item WHERE `item` = $partnumber");
while ($row2 = mysql_fetch_assoc($result2)) {
   																if($row2["type"]=="NGK")
															{ $c17="100"; $c18="$level6";}


															elseif
															($row2["type"]=="OTHER")
                 												{ $c11="$level6"; $c12="$level6"; $c13="$level6"; $c14="$level6"; $c15="$level6"; $c16="$level6"; }
   
										}
   
   
   }

 

 

Link to comment
https://forums.phpfreaks.com/topic/146946-solved-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.