Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Richard Lynch
REFERER is set or not by the browser choice, and some browsers let you turn it off. It's completely unreliable. Why not just have the download script accept search inputs, and provide two links: Records where name contains 'foo': http://example.com/download.php?name=foo Whole DB: http://example

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 11:21 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > I've found many times, that you can find the "how" by googling for the > right terms... It's the "Why" that you can't learn from code... That's > when you gotta dig into books and ask questions :) Not just that, but also citing

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Jason Pruim
On Jan 22, 2008, at 10:32 AM, Daniel Brown wrote: On Jan 22, 2008 9:03 AM, Eric Butera <[EMAIL PROTECTED]> wrote: That is basically it. You're going to want to learn the why, not just the how though. There is a reason for creating functions and it isn't just code reuse. Think about when

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 9:03 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > That is basically it. You're going to want to learn the why, not just > the how though. There is a reason for creating functions and it isn't > just code reuse. Think about when you want to change your export > script. Say you ne

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Stut
Jason Pruim wrote: So all I have to do (At least to really simplify what I'm sure they can do) is put the code I want to execute into the function and then just list the variables as arguments? Such as: function dbconnect ($host, $user, $pass, $database) { mysqli_connect($host, $user, $pass, $

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Eric Butera
On Jan 22, 2008 8:44 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2008, at 4:14 PM, Dave Goodchild wrote: > > > Don't be scared of functions, no magic or mystery there, all you are > > doing > > is putting your code in a function like so: > > > > function add($a, $b) { > > return $a +

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Jason Pruim
On Jan 21, 2008, at 4:14 PM, Dave Goodchild wrote: Don't be scared of functions, no magic or mystery there, all you are doing is putting your code in a function like so: function add($a, $b) { return $a + $b; } ..for example and calling it like so: $a = 12; $b = 100; $sum = add(12, 13); .

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Dave Goodchild
Don't be scared of functions, no magic or mystery there, all you are doing is putting your code in a function like so: function add($a, $b) { return $a + $b; } ..for example and calling it like so: $a = 12; $b = 100; $sum = add(12, 13); ...etc etc, not too much more to learn than that and now I

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 15:28 -0500, Jason Pruim wrote: > On Jan 21, 2008, at 3:27 PM, Robert Cummings wrote: > > > On Mon, 2008-01-21 at 15:20 -0500, Jason Pruim wrote: > >> > >> I try so hard to NOT rely on the wealth of info available here, but > >> you guys don't make it easy!! :) > > > > The o

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Jason Pruim
On Jan 21, 2008, at 3:33 PM, Wolf wrote: Jason Pruim <[EMAIL PROTECTED]> wrote: On Jan 21, 2008, at 3:27 PM, Robert Cummings wrote: On Mon, 2008-01-21 at 15:20 -0500, Jason Pruim wrote: I try so hard to NOT rely on the wealth of info available here, but you guys don't make it easy!!

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Daniel Brown
On Jan 21, 2008 3:52 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Would that not give favor to people who appear to like to hear them > selves talk (Or type in this case since I can not just call a simple > txttospeach("Speak this electronic mail so that all may hear the glory > that is my voice!")

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Eric Butera
On Jan 21, 2008 3:47 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Now I just need to find a way to increase the content of my posts. Just reply to everyone with random Wikipedia articles. You can even say it is on topic because it is generated with PHP. -- PHP General Mailing List (http://w

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Jason Pruim
On Jan 21, 2008, at 3:47 PM, Robert Cummings wrote: On Mon, 2008-01-21 at 15:28 -0500, Jason Pruim wrote: On Jan 21, 2008, at 3:27 PM, Robert Cummings wrote: On Mon, 2008-01-21 at 15:20 -0500, Jason Pruim wrote: I try so hard to NOT rely on the wealth of info available here, but you guys

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Wolf
Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2008, at 3:27 PM, Robert Cummings wrote: > > > On Mon, 2008-01-21 at 15:20 -0500, Jason Pruim wrote: > >> > >> I try so hard to NOT rely on the wealth of info available here, but > >> you guys don't make it easy!! :) > > > > The only goo

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Jason Pruim
On Jan 21, 2008, at 3:27 PM, Robert Cummings wrote: On Mon, 2008-01-21 at 15:20 -0500, Jason Pruim wrote: I try so hard to NOT rely on the wealth of info available here, but you guys don't make it easy!! :) The only good thing to do with wealth is share. Now you're just trying to add to y

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 15:20 -0500, Jason Pruim wrote: > > I try so hard to NOT rely on the wealth of info available here, but > you guys don't make it easy!! :) The only good thing to do with wealth is share. Cheers, Rob. -- ... SwarmBuy.

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Jason Pruim
On Jan 21, 2008, at 3:02 PM, Eric Butera wrote: On Jan 21, 2008 2:57 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: Today, I found a bug in my software which I was originally happy to find since that means there's one less that I have to worry about... 3 hours later while trying to figure out h

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Jason Pruim
On Jan 21, 2008, at 3:04 PM, James Ausmus wrote: On Jan 21, 2008 11:57 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: Today, I found a bug in my software which I was originally happy to find since that means there's one less that I have to worry about... 3 hours later while trying to figure out

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread James Ausmus
On Jan 21, 2008 11:57 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Today, I found a bug in my software which I was originally happy to > find since that means there's one less that I have to worry about... 3 > hours later while trying to figure out how to fix it I wish I never > found it! > > Here'

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Eric Butera
On Jan 21, 2008 2:57 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Today, I found a bug in my software which I was originally happy to > find since that means there's one less that I have to worry about... 3 > hours later while trying to figure out how to fix it I wish I never > found it! > > Here's

[PHP] More frustration with MySQL and PHP

2008-01-21 Thread Jason Pruim
Today, I found a bug in my software which I was originally happy to find since that means there's one less that I have to worry about... 3 hours later while trying to figure out how to fix it I wish I never found it! Here's the deal, I have a file that exports the records in the database