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

Reply via email to