I am new on php and i am trying to add this code
Im finding this error please any one who can solve this for me
<?php
$myName = ‘Guest’;
$myVar = “Welcome back $myName”;
echo $myVar;
?>
This is my html
<p><?php echo $myVar; ?></p>
Thanks
I am new on php and i am trying to add this code
Im finding this error please any one who can solve this for me
<?php
$myName = ‘Guest’;
$myVar = “Welcome back $myName”;
echo $myVar;
?>
This is my html
<p><?php echo $myVar; ?></p>
Thanks
Looks like you are using funny quotes rather than the straight ' and " types.
<?php
$myName = 'Guest';
$myVar = "Welcome back $myName";
echo $myVar;
?>