jakebur01 Posted February 25, 2009 Share Posted February 25, 2009 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 More sharing options...
samshel Posted February 25, 2009 Share Posted February 25, 2009 yes it will. Link to comment https://forums.phpfreaks.com/topic/146946-solved-question/#findComment-771446 Share on other sites More sharing options...
jakebur01 Posted February 25, 2009 Author Share Posted February 25, 2009 That's good. Thank you. Link to comment https://forums.phpfreaks.com/topic/146946-solved-question/#findComment-771450 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.