Jump to content

unexpected T_ENCAPSED_AND_WHITESPACE


Hypersource

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.