SirChick Posted October 17, 2007 Share Posted October 17, 2007 I decided to load some of my form via php as it was needed to generate a combo box with infomation from a query.. this is what i have yet it doesn't load up on my browser.... <div id="bv_" style="position:absolute;left:46px;top:279px;width:874px;height:345px;z-index:4" align="left"> <form name="" method="POST" action="businesslondonstage2.php" enctype="text/plain" id="Form1"> <?php $CountNames = ("SELECT *, count(BusinessType) as C FROM `businesses` GROUP BY BusinessType HAVING C < 3"); $findbusinessresult = @mysql_query($CountNames) or die(mysql_error()); echo '</br></br><center><select name="businesslist" size=10>"></center>'; Echo'<option value =""><b><u>Business Types</b></u></option>'; while($row = mysql_fetch_array($findbusinessresult)) { echo "<option value=\"{$row['BusinessType']}\">{$row['BusinessType']}</option>"; } echo '</select>'; ?> <input type="submit" id="Button1" name="Button1" value="Submit" style="position:absolute;left:358px;top:215px;width:75px;height:45px;z-index:1"> <input type="checkbox" id="Checkbox1" name="Checkbox1" value="" style="position:absolute;left:466px;top:232px;z-index:2"> </form> </div> What is causing it not to show on the page.. the page source also shows nothing. Link to comment https://forums.phpfreaks.com/topic/73724-solved-form-doesnt-show-due-to-php-conflict-i-think/ Share on other sites More sharing options...
kenrbnsn Posted October 18, 2007 Share Posted October 18, 2007 You have a syntax error in you mysql query, replace "HAVING" with "WHERE": <?php $CountNames = ("SELECT *, count(BusinessType) as C FROM `businesses` GROUP BY BusinessType WHERE C < 3"); ?> This would have shown if you didn't have the "@" before the mysql_query() function. This symbol suppresses error messages and should not be used when developing & debugging scripts. Ken Link to comment https://forums.phpfreaks.com/topic/73724-solved-form-doesnt-show-due-to-php-conflict-i-think/#findComment-371999 Share on other sites More sharing options...
SirChick Posted October 18, 2007 Author Share Posted October 18, 2007 Ok, i have changed it, although the form still does not show. =/ Link to comment https://forums.phpfreaks.com/topic/73724-solved-form-doesnt-show-due-to-php-conflict-i-think/#findComment-372302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.