Coba anda hitung jumlah "}", pasti tidak sama dgn
jumlah "{"
kesalahan :
<?php } ?> ---baris ini dihilangkan saja---
<body></html>
--- efn tono <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> Saya baru mencoba Install PHP triad di PC saya, dan
> mencoba mengkoneksikan PHP dan Mysqlnya,
> saya coba script seperti ini ;
>
> <html>
> <head><title>Test MySQL</title></head>
> <body>
> <!-- mysql_up.php -->
> <?php
> $host="localhost";
> $user="test";
> $password="admin";
>
> mysql_connect($host,$user,$password);
> $sql="show status";
> $result = mysql_query($sql);
> if ($result == 0)
> echo "<b>Error " . mysql_errno() . ": "
> . mysql_error() . "</b>";
> else
> {
> ?>
> <!-- Table that displays the results -->
> <table border="1">
> <tr><td><b>Variable_name</b></td><td><b>Value</b>
> </td></tr>
> <?php
> for ($i = 0; $i < mysql_num_rows($result); $i++) {
> echo "<TR>";
> $row_array = mysql_fetch_row($result);
> for ($j = 0; $j < mysql_num_fields($result); $j++)
> {
> echo "<TD>" . $row_array[$j] . "</td>";
> }
> echo "</tr>";
> }
> ?>
> </table>
> <?php } ?>
> </body></html>
>
>
> Waktu saya coba pake browser
> http://localhost/mysql_up.php dia bilang
> Parse error: parse error in
> c:\apache\htdocs\mysql_up.php on line 36
>
> line 36 adalah line terakhir yaitu " </body></html>"
> apanya ya yang salah ?
>
> Thx
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
--
www.ITCENTER.or.id - Komunitas Teknologi Informasi Indonesia
Info, Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
::: Hapus bagian yang tidak perlu (footer, dst) saat reply! :::
## Forum: ITCENTER.or.id/forum ## Jobs: ITCENTER.or.id/jobs ##
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ITCENTER/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/