OK. If I put the db initialization in this script and go straight to it (instead of using it as an include) I get the results I expect.
------------------------
<?php
$db = mysql_connect('localhost', '****', '****');
mysql_select_db('****',$db);
$result = mysql_query("SELECT SourceIp FROM...
OK, so I tried the suggestions (thanks!) but no luck. So I cut the script down to this:
--------------------------
<?php
$result = mysql_query("SELECT SourceIp FROM DredgeEvent GROUP BY SourceIp ORDER BY inet_aton(SourceIP);",$db);
while ($myrow = mysql_fetch_array($result)) {...
Yes, I tried the echo statement and pasted the output into my MySQL command line. I got all 179 rows intact.
Here is my script. (Please don't laugh--I'm new and this is in the early stages...)
<?php
if ($OB = $_GET['OB']) {
} else {
$OB = 'TimeStamp DESC';
}
$WidthOne='40px'...
I am having a wierd problem. I have a MySQL database with some data in it. When I query it from the command line, it returns 179 rows with the expected content. If I do this:
$rows = mysql_num_rows($result);
printf("ROWS = $rows\n");
from PHP I get 179 back. However the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.