Hey everyone

Just got this book "Build Your Own Database Driven Website Using PHP &
MySQL" May 2005 Version. I'm getting throught it slowly. I just got to page
74, and ran the jokelist.php(
http://localhost/Book_code/chapter4/jokelist.php) and everytime i run it, i
get a blank white screen.

I go to view the source and i get this coding blow the dashes:
---------------------------------------------------
<!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>
<title>Our List of Jokes</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
----------------------------------------------------
It stops there and no more furthur, i've tried many things, like using past
examples and growing off from those but still nothing. Is there something
wrong with this coding:
----------------------------------------------------
<?php

// Connect to the database server
$dbcnx = @mysql_connect('localhost', 'root', 'mypasswd');
if (!$dbcnx) {
  exit('<p>Unable to connect to the ' .
      'database server at this time.</p>');
}

// Select the jokes database
if ([EMAIL PROTECTED]('ijdb')) {
  exit('<p>Unable to locate the joke ' .
      'database at this time.</p>');
}

?>
-------------------------------------------------
It seems thats where my main problem is. I've also tried connecting to my
database from another computer(Query Browser) and it can see everything.
Same from my computer. All firewalls are shut off. My database is named
ijdb.

I think it may be a connection problem, but i'm so new to this i'm not to
sure what to do.

Any ideas?

The full page can be found here: http://tinyurl.com/fb943

--
Thanks
Ian R-P
Patience is a virtue.


[Non-text portions of this message have been removed]



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list




SPONSORED LINKS
Php mysql Job postings


YAHOO! GROUPS LINKS




Reply via email to