I can think of a couple of things.  You have the wrong URL somewhere in your
code, your web server isn't configured correctly or compiled PHP
incorrectly.  Either way, this does not relate to MySQL and you are much
better off asking the PHP list.

You may want to try accessing normal HTML pages through the webserver first.
If you can't, then you have a web server configuration problem and your best
off asking the appropriate list.

Also, try running the query from mysql directly.  If you get results then
you have no problem on the mysql side of things.



----- Original Message -----
From: "Steve Rodda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 13:03
Subject: PHP and MYSQL Frustrations...


> I don't understand will someone please look at this code and see what is
> wrong.
>
> <?php
> $dbglobal = mysql_connect('localhost', 'mylog', 'mypass');
> mysql_select_db('test', $dbglobal);
> $query ="SELECT * FROM emails Where id < 100";
> $result = mysql_query($query);
> while(list($ID, $EMAIL) = mysql_fetch_row($result))
> print("$ID EMAIL<br>\n");
> ?>
>
> All I want to do is display the results in HTML then I will be unstoppable
> :)
>
> But every time I execute this I get
>
> Warning: Failed opening 'c:\inetpub\wwwroot\testmail.php' for inclusion
> (include_path='') in Unknown on line 0
>
> And no matter what I put in that like in php.ini I get that error.  Please
> if it is obvious let me know other wise please give me some de bugging
> techniques I am new to both PHP and MYSQL.
>
> BTW other scripts run fine just in talking to MYSQL do I get this problem.
>
> Thanks in advance..
>
> Steve
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to