monkeypaw201 Posted February 20, 2008 Share Posted February 20, 2008 Ok, im getting mad at this piece of code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <meta name="author" content="www.gorotron.com" /> <title>VA Software Solutions :: Airlines</title> <link rel="stylesheet" type="text/css" href="css/site.css"/> </head> <body> <div id="wrapper"> <div id="content"> <div id="masthead"> <h1>Vitual Airline Software Solutions</h1> </div> <div id="nav"> <ul> <li><a href="index.php">Home</a></li> <li><a href="signup.php">Sign up</a></li> <li><a href="airlines.php">Airlines</a></li> <li><a href="software.php">Software</a></li> <li><a href="contact.php" class="noBorder">Contact</a></li> </ul> </div> <div id="main"> <p>Airlines <?php $hostname_conn_abrv = "localhost"; $database_conn_abrv = "database"; $username_conn_abrv = "user"; $password_conn_abrv = "pass"; $conn_abrv = mysql_pconnect($hostname_conn_abrv, $username_conn_abrv, $password_conn_abrv) or trigger_error(mysql_error(),E_USER_ERROR); mysql_select_db($database_conn_abrv, $conn_abrv); $query_pilots = "SELECT * FROM virtual_airlines"; $pilots = mysql_query($query_pilots, $conn_abrv) or die(mysql_error()); $row_pilots = mysql_fetch_assoc($pilots); $totalRows_pilots = mysql_num_rows($pilots); ?><br /> <br /> <table width="600" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="169">Airline Name</td> <td width="217">Airline CEO</td> <td width="217">Airline Website</td> </tr> <?php do { ?><tr> <td><?php echo $row_pilots['va_name']; ?></td> <td><?php echo $row_pilots['first_name']; ?> <?php echo $row_pilots['last_name']; ?></td> <td><?php echo $row_pilots['va_url']; ?></td> </tr><?php } while ($row_pilots = mysql_fetch_assoc($pilots)); ?> </table></p> </div> </div> </div> <div id="footer"> <p>© 2008 Virtual Airline Software Solutions. All Rights Reserved.... Our Recomeneded VA <a href="http://www.globalskyairlines.com">Global Sky Airlines</a></p> </div> </body> </html> It just gives me a blank page.. Link to comment https://forums.phpfreaks.com/topic/92003-blank-page/ Share on other sites More sharing options...
duclet Posted February 20, 2008 Share Posted February 20, 2008 Try removing all the PHP code and see if the page is showing something. If it is, then there is an error somewhere in your PHP code. If it is just a white page, then chances are your server is currently set to log the errors instead of outputting in. Check your error logs to see what the errors are. Link to comment https://forums.phpfreaks.com/topic/92003-blank-page/#findComment-471222 Share on other sites More sharing options...
monkeypaw201 Posted February 20, 2008 Author Share Posted February 20, 2008 without the code, it comes up fine.. Link to comment https://forums.phpfreaks.com/topic/92003-blank-page/#findComment-471223 Share on other sites More sharing options...
Drewser33 Posted February 20, 2008 Share Posted February 20, 2008 I copied your code into a page on mine and it seemed to work fine, it is not a blank page?? Link to comment https://forums.phpfreaks.com/topic/92003-blank-page/#findComment-471228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.