le007 Posted October 16, 2007 Share Posted October 16, 2007 HERE; if ($type == "true" { echo ""; } else { echo "<td align='left'> <font size=2 face='arial' color='#230045'><b>Number</b></font> </td> <td align='left'> <select name="number">"; include("sel/num.inc.php"); echo "</select></td>"; ECHO <<<HERE Not working? Have I written this code correctly? Thanks, Leo Link to comment https://forums.phpfreaks.com/topic/73535-solved-confused/ Share on other sites More sharing options...
pocobueno1388 Posted October 16, 2007 Share Posted October 16, 2007 if ($type == "true" { To if ($type == "true") { You need to tell us what the script should do and whats not working, and give us any error messages you may be getting. Link to comment https://forums.phpfreaks.com/topic/73535-solved-confused/#findComment-371009 Share on other sites More sharing options...
le007 Posted October 16, 2007 Author Share Posted October 16, 2007 I changed what you said and now have: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in Link to comment https://forums.phpfreaks.com/topic/73535-solved-confused/#findComment-371012 Share on other sites More sharing options...
pocobueno1388 Posted October 16, 2007 Share Posted October 16, 2007 Change this line: <select name="number">"; To <select name='number'>"; Link to comment https://forums.phpfreaks.com/topic/73535-solved-confused/#findComment-371016 Share on other sites More sharing options...
le007 Posted October 16, 2007 Author Share Posted October 16, 2007 Tried that... then I tried this (entire script) HERE; if ($type == "true" || $type == "yes"){ echo ""; } else { echo "<td align='left'>"; echo "<font size=2 face='arial' color='#230045'><b>Number</b></font>"; echo "</td>"; echo "<td align='left'>"; echo "<select name='number'>"; include("sel/num.inc.php"); echo "</select></td>"; ECHO <<<HERE Link to comment https://forums.phpfreaks.com/topic/73535-solved-confused/#findComment-371019 Share on other sites More sharing options...
le007 Posted October 16, 2007 Author Share Posted October 16, 2007 Everyone thanks for your help! I solved it - forgot the closing } Thanks, Leo Link to comment https://forums.phpfreaks.com/topic/73535-solved-confused/#findComment-371024 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.