Hypersource Posted October 12, 2013 Share Posted October 12, 2013 Here is my complete code: <center> <h2>SecretSearcher</h2> </center> <?php include 'c.php'; echo "Showing results for '"; echo $_POST['keyword']; echo "':"; $sql = "SELECT * FROM searchterms WHERE title = "%$_POST['keyword']%"; $res = mysqli_query($con,$sql); while($row = mysqli_fetch_array($res)) { echo $row['title'] echo $row['description']; echo "<br>"; } ?> <center> <br> Thankyou for searching! </center> [e] I put my code in the syntzx higlighter thing here and It showed me my extra ". Thanks so much phpfreaks! Link to comment https://forums.phpfreaks.com/topic/282918-unexpected-t_encapsed_and_whitespace/ Share on other sites More sharing options...
Ch0cu3r Posted October 12, 2013 Share Posted October 12, 2013 [e] I put my code in the syntzx higlighter thing here and It showed me my extra ". Thanks so much phpfreaks! So this is solved? If that is the case make sure you're using an editor with syntax highlighting. Link to comment https://forums.phpfreaks.com/topic/282918-unexpected-t_encapsed_and_whitespace/#findComment-1453680 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.