[PHP-DB] selective query?

2004-10-31 Thread Dan Bowkley
I'm tweaking my internet speed tester thingamabob (http://www.dibcomputers.com/bandwidthmeter/index.php) and am rather stumped. Currently, I'm grouping together all results from each domain (all results from, say, adelphia.net are averaged and displayed as one, etc) and to that end I stopped

[PHP-DB] Re: RE :I thought 4 didn't equal 456456456%20%20OR%2012

2004-05-10 Thread Dan Bowkley
: That way you are guaranteed it's a number not a string. Cheers - Neil Message-ID: [EMAIL PROTECTED] From: Dan Bowkley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Sun, 9 May 2004 15:17:19 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer

Re: [PHP-DB] supernoob strikes again

2004-05-09 Thread Dan Bowkley
-dibcomputers/index.php?id=456456456%20%20OR%2012 Dan Bowkley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] got it...rather than return false, mysql_result throws an error if the query returns nothing. What a pain. Finished product at http://www.dibcomputers.com/new

Re: [PHP-DB] supernoob strikes again

2004-05-09 Thread Dan Bowkley
The 404 page is also inserted into the template, or at least that's the idea...index.html?id=404 is the error page. ?id=1 is the main page, other pages are numbered accordingly. - Original Message - From: Justin Gruenberg [EMAIL PROTECTED] To: Dan Bowkley [EMAIL PROTECTED] Cc: [EMAIL

[PHP-DB] narrowing it down...

2004-05-09 Thread Dan Bowkley
I've come up with this: if (mysql_result ( mysql_query (SELECT id FROM dibcomp_site WHERE id = $page_req),0)) {$thisid = 404;} else {$thisid = $page_req;} and, well, it doesn't work. I think it really ought to...

Re: [PHP-DB] supernoob strikes again

2004-05-09 Thread Dan Bowkley
got it...rather than return false, mysql_result throws an error if the query returns nothing. What a pain. Finished product at http://www.dibcomputers.com/new-dibcomputers/index.php.txt if anyone wants to steal it... D - Original Message - From: Dan Bowkley [EMAIL PROTECTED] To: [EMAIL

[PHP-DB] supernoob strikes again

2004-05-08 Thread Dan Bowkley
Yeah, I'm back... I'm revamping my own site, finally...going for the same sort of dynamic system I was using for my last creation. Currently, I have index.php returning lots of different pages from a mysql database; what I'd like to do is have a somewhat more elegant solution for spitting

Re: [PHP-DB] lamer noob with repeat question

2004-05-04 Thread Dan Bowkley
Anyone? - Original Message - From: Dan Bowkley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 02, 2004 1:21 AM Subject: [PHP-DB] lamer noob with repeat question Hello everyone, I've been working on (read:tearing my hair out over) my mom's website for some time now

[PHP-DB] stuck on stupid...can't find the bloody error...

2004-04-25 Thread Dan Bowkley
okay, please help the newbie idiot. Forgive me, for I cannot code my way out of a paper bag. What, O great Oracle of PHP Goodness is wrong with this picture? When I punch in a work order, it spits back a blank page and does nothing whatsoever with the db. Even if I deliberately enter a

[PHP-DB] lamer noob question

2004-04-15 Thread Dan Bowkley
So I'm building this website; the first I've tried to build using a mostly dynamic structure. What I've done is create a mysql table, with two fields: id and page_val. The idea is you call the page like http://www.someplace.com/page.php?id=404 and it'll spit back (in this case) the infamous