Jump to content

unexpected T_ENCAPSED_AND_WHITESPACE


Go to solution Solved by Ch0cu3r,

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!

Edited by Hypersource
Link to comment
https://forums.phpfreaks.com/topic/282918-unexpected-t_encapsed_and_whitespace/
Share on other sites

  • Solution

 

 

[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.

Edited by Ch0cu3r
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.