Dear Rob,
after I add these codes, the webpage only displays white page only with the html code as follows
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5"></HEAD>
<BODY></BODY>
although connect to the server, why?
Please give me help thanks
Simon
Rob wrote:
Add the code around your connect statement to send the page that you want to see. Something like:
<?php
$db = @connect($host, $user, $pass);
if (!$db) {
// display black page with refresh tag
exit();
}
// display normal page
?>
The @ supresses the error that your connect is going to cause you can display the error if you want it may be helpful.