Jump to content

I cant find the unexpected t-string error


Mukesh Mandal

Recommended Posts

<html>
<head>
<title>My Movie Site</title>
</head>
<body>
<?php
define(?FAVMOVIE?, ?The Life of Brian?);
echo ?My favorite movie is ?;
echo FAVMOVIE;
echo ?<br>?;
$movierate = 5;
echo ?My movie rating for this movie is: ?;
echo $movierate;
?>
</body>
</html>

 

I cant find the unexpected t-string error...i am new..plzz help!!

Link to comment
Share on other sites

Don't use a rich text editor to code PHP.

 

See how our forum has converted all of your styled quotes to question marks?

 

Either that, or don't copy and paste from sites that use stylized quotes for code. In fact, if you see a site that uses stylized quotes in their code, don't bother using that site at all ;)

Link to comment
Share on other sites

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.