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!!

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 ;)

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.