cahamilton Posted April 19, 2009 Share Posted April 19, 2009 I cant seem to get the correct syntax to include the other_results.php. Can anyone see where I'm going wrong with this one? I imagine its going to be a damn semicolon or quotation marks somewhere lol <?php echo " <div id='other_results_small' style='display: block'> <a href=\"javascript:void(0)\" onclick=\"Show('other_results_large'); Hide('other_results_small')\" class='alternative_artist'>Did you mean:</a>\" include('other_results.php') \" </div> Link to comment https://forums.phpfreaks.com/topic/154754-solved-syntax-question/ Share on other sites More sharing options...
Michdd Posted April 19, 2009 Share Posted April 19, 2009 Is that the whole echo? Because it doesn't look like you ended it. Also an include shouldn't be in the echo, and neither should the ';' for Show('other_results_large') Link to comment https://forums.phpfreaks.com/topic/154754-solved-syntax-question/#findComment-813804 Share on other sites More sharing options...
DarkSuperHero Posted April 19, 2009 Share Posted April 19, 2009 <?php echo " <div id='other_results_small' style='display: block'> <a href=\"javascript:void(0)\" onclick=\"Show('other_results_large'); Hide('other_results_small')\" class='alternative_artist'>Did you mean:</a>\" "; include('other_results.php'); echo "</div>"; try that... Link to comment https://forums.phpfreaks.com/topic/154754-solved-syntax-question/#findComment-813806 Share on other sites More sharing options...
cahamilton Posted April 19, 2009 Author Share Posted April 19, 2009 Hey, yeh sorry that wasn't the whole echo. I just took the snippet I was working on. Although, thanks to DarkSuperHero for that, code worked a charm. Would have never crossed my mind about doing that lol. Thanks again! Link to comment https://forums.phpfreaks.com/topic/154754-solved-syntax-question/#findComment-813813 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.