I think i know where the problem is now!<br><br>there should not have any space BEFORE "QEW;"<br>>_<<br><br>i just want it looks better<br><br>Qiuli<br><br><div><span class="gmail_quote">On 12/22/06, <b class="gmail_sendername">
Qiuli Han</b> <<a href="mailto:ivyharry@gmail.com">ivyharry@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks John<br>Actually I just did what u said before I get your reply<br>the reason why did that was because i thought it is easier to debug<br>and on the other hand i used to work with Perl which i used print qq~ everywhere to print about a website
<br>so i assumed that it will work the same way as =<<<<br><br>I guess i cant really do it in php then<br>Thanks!<br><span class="sg"><br>Qiuli</span><div><span class="e" id="q_10fad3a96f0e46a1_2"><br><br><div><span class="gmail_quote">
On 12/22/06, <b class="gmail_sendername">John Dangler
</b> <<a href="mailto:jdangler@atlantic.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jdangler@atlantic.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It appears as if those marks indicate a transaction block of some sort,
<br>although I can't find any reference to it anywhere on <a href="http://php.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">php.net</a><br>And, never having seen them used in php before, I would say that the
<br>error is truly a "syntax error" ...<br>
<br>but why not something like this -<br>if ($del == "Yes")<br>{<br>  ?><br>    <p> User <? echo $fname . ' ' . $lname ?> with user name $uname has<br>        been deleted</p><br>    <br>
<br>    <br><br>    <a href="./userlist.php">Back to User List</a><br>  <?<br>  echo $yes;<br>}<br><br>On Fri, 2006-12-22 at 21:13 -0500, Qiuli Han wrote:<br>> Hi php, sorry, ubuntu:<br>
> i know this is not right place to ask, but i am running LAMP on an
<br>> ubuntu 6.01<br>> so i have some code here in php gives me problem:<br>><br>> Parse error: syntax error, unexpected $end<br>> in /srv/www/htdocs/php/store/userdelGO.php on line 68<br>><br>> well
<br>
> from experience i know it must be =<<< caused the problem<br>> since if i comment out those 2 =<<< in my if statements it wont have<br>> any problem<br>><br>> then i try to fix that =<<< problem
<br>> but no matter what i do it just.....u know....same error<br>><br>> here is my stupid code<br>> open.php is the file i use to open the mysql connection<br>><br>> please help<br>><br>> thanks<br>

><br>> <?php<br>><br>> $id=$_REQUEST['id'];<br>> $del=$_REQUEST['del'];<br>> echo $id;<br>> include "open.php";<br>><br>> $query="select user_name, fname, lname from user where id=$id";
<br>><br>> $run=mysql_query($query) or die (mysql_error());<br>><br>> $row = mysql_fetch_array($run,MYSQL_ASSOC);<br>><br>> $uname=$row['user_name'];<br>> $fname=$row['fname'];<br>> $lname=$row['lname'];
<br>><br>><br>><br>><br>> if ($del == "Yes") {<br>> //echo "yes";<br>>     //mysql_query(delete from user where id=$id);<br>><br>> $yes=<<<QEW<br>>         <html>
<br>>         <title>Confirmation</title><br>>         <body><br>>         <p> User $fname $lname with user name $uname has been<br>> deleted</p><br>>         <br><br>>         <br>
<br>>         <a href="./userlist.php">Back to User List</a><br>>         </body><br>>         </html><br>>     QEW;<br>><br>><br>>     echo $yes;<br>><br>> }<br>

><br>><br>><br>> if ($del == "No") {<br>> echo "no";<br>> /*<br>>     $no=<<<EOD<br>>                 <html><br>>                 <title>Confirmation</title>
<br>>                 <body><br>>                 <p> You cancelled deleting user $fname $lname with<br>> User name $uname</p><br>>                 <br><br>>         <p> User $fname stays in the database</p>
<br>>                 <br><br>>                 <a href="./userlist.php">Back to User List</a><br>>                 </body><br>>                 </html><br>>         EOD;
<br>>         echo $no;<br>> */<br>> }<br>><br>> mysql_close();<br>><br>> ?><br><br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ubuntu-users@lists.ubuntu.com
</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
</a><br></blockquote></div><br>

</span></div></blockquote></div><br>