<?
echo “<Center><h1>คณะวิทยาศาสตร์</h1></center><p>”;
echo “<table border=1>
<tr>
<td><center>สาขาวิชา</center><td>
<td><center>เว็บไซต์</center><td>
</tr>
<tr>
<td><ul><li><font color=red>เคมี</font></li></ul></td>
<td><a href=http://chem.ubu.ac.th>http://chem.ubu.ac.th</a></td>
</tr>
<tr>
<td><ul><li><font color=blue>ฟิสิกส์</font></li></ul></td>
<td><a href=http://phy.ubu.ac.th>http://phy.ubu.ac.th</a></td>
</tr>
<tr>
<td><ul><li><font color=pink>วิทยาการคอมพิวเตอร์</font></li></ul></td>
<td><a href=http://com.ubu.ac.th>http://com.ubu.ac.th</a></td>
</tr>
<tr>
<td><ul><li><font color=yellow>เทคโนโลยีสารสนเทศ</font></li></ul></td>
<td><a href=http://inf.ubu.ac.th>http://inf.ubu.ac.th</a></td>
</tr>
</table>”;
?>
-----------------------------------------------------------------------------------------
จาก code ใช้ appserve 2.5.10 ฟ้องว่า
Parse error: syntax error, unexpected '>' in C:\AppServ\www\test2.php on line 2
แก้ตรงไหนดีค่ะ ...
ลองเปลี่ยน เป็น
<?php
echo "<Center><h1>คณะวิทยาศาสตร์</h1></center><p>";
?>
ก็ยังไม่ได้ค่ะ
งงกับ code .. แก้ error นี้ยังไงดีค่ะ
Moderators: mindphp, ผู้ดูแลกระดาน
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ช่วยดู code php ตรงนี้หน่อยครับ มันเกิด errror Parse error: syntax error, unexpe
by ShizzK » 08/03/2012 11:38 am » in Programming - PHP - 1 Replies
- 1462 Views
-
Last post by mindphp
09/03/2012 1:12 am
-
-
- 0 Replies
- 880 Views
-
Last post by offing
10/10/2014 10:26 am
-
-
ช่วยด้วยค่ะ มัน code error ดึงจากฐานข้อมูลไม่ได้ช่วยทีค่ะ
by ronna » 17/09/2012 9:12 am » in Programming - PHP - 3 Replies
- 2451 Views
-
Last post by ronna
18/09/2012 9:02 am
-
-
-
Error Code: InvalidKeyOrUnauthorizedURLMapError ในตอนใช้งาน API MAP
by thatsawan » 22/01/2016 4:28 pm » in JavaScript & Jquery Ajax - 1 Replies
- 905 Views
-
Last post by M030
22/01/2016 4:41 pm
-
-
-
ความหมายของ Error Code บน Browser แบบที่เจอกันบ่อยๆ
by nuattawoot » 16/08/2017 2:20 pm » in HTML CSS - 1 Replies
- 4415 Views
-
Last post by ภัชรพล
19/04/2019 4:20 pm
-
Who is online
Users browsing this forum: No registered users and 12 guests