The SQLite extension does allow multiple queries per call, though, and this is being pushed/bundled with PHP5. It seems like there is a big push for this to be the "standard" database that you can always expect to be available (kind of how MySQL is now).
Why would you put quotes around an integer? If the "id" column is a numeric column, then you _validate_ $var to make sure it's a number. Then you issue the query without quotes and it's still safe.
Getting in the habit of putting quotes around every value regardless of whether it's a string or not is just going to get you into trouble when you switch databases.
You don't need to strip slashes from data coming _from_ a database unless you by some chance have magic_quotes_runtime enabled. If you find yourself having to strip slashes from your database data (or actually see slashes inside your database), then you're running addslashes() twice (probably once with magic_quotes and once yourself).
I have a cousin who is named HD. No one knows if H is his first name and D is his middle, or if it's just HD with no middle name. Never seen his birth certificate.
It may be obvious, but parents are big Harley Davidson fans.
---John Holmes...
My neighbor had one of these years ago and he would just park the car next to his air compressor. When he needed to start the car all it took was a puff from the air hose to pass the test.
Now how easy would it be to keep a little compressor in your car that plugs into the cig. lighter?
Bottom line: people will always find a way around it.
---John Holmes...
That's a stupid arguement. The people shouldn't be driving drunk, plain and simple. It shouldn't hurt restaurants at all because people should be doing the right thing already.
They are public domain unless there are security reasons to not release the code. I just went through this with a program I wrote for DOD. Under the Freedom of Information Act (FOIA), you can request the source code to any program. Not saying they'll approve it, but unless there are "national security" type reasons, they should. In order for me to get a copy of my program to continue to develop and distribute on my own, I had to do a FOIA request on myself.:)
What's to stop us from establishing refueling points at various points all the way to mars? Launch unmanned ships and have them staged and ready for refueling the main, manned ship.
Wouldn't that result in a smaller, faster ship (or more room) overall? Or would the slowing down, stopping, refueling, speeding up cycle just make things worse?
The SQLite extension does allow multiple queries per call, though, and this is being pushed/bundled with PHP5. It seems like there is a big push for this to be the "standard" database that you can always expect to be available (kind of how MySQL is now).
---John Holmes...
Why would you put quotes around an integer? If the "id" column is a numeric column, then you _validate_ $var to make sure it's a number. Then you issue the query without quotes and it's still safe.
Getting in the habit of putting quotes around every value regardless of whether it's a string or not is just going to get you into trouble when you switch databases.
---John Holmes...
So how is that book coming along, btw?? ;)
---John Holmes...
You don't need to strip slashes from data coming _from_ a database unless you by some chance have magic_quotes_runtime enabled. If you find yourself having to strip slashes from your database data (or actually see slashes inside your database), then you're running addslashes() twice (probably once with magic_quotes and once yourself).
---John Holmes...
Enable magic_quotes_sybase and a double quote will be used instead of a slash.
---John Holmes...
Just FYI, you can't use ini_set() to change the register_globals setting. ---John Holmes...
No, it means that poor programmers can easily make a less secure script. ---John Holmes...
I have a cousin who is named HD. No one knows if H is his first name and D is his middle, or if it's just HD with no middle name. Never seen his birth certificate. It may be obvious, but parents are big Harley Davidson fans. ---John Holmes...
Try having an actual porn name. No one will ever find me on a search engine. ---John Holmes...
My neighbor had one of these years ago and he would just park the car next to his air compressor. When he needed to start the car all it took was a puff from the air hose to pass the test. Now how easy would it be to keep a little compressor in your car that plugs into the cig. lighter? Bottom line: people will always find a way around it. ---John Holmes...
Hell yeah. No one is afraid of the punishments anymore... that's the problem. ---John Holmes...
That's a stupid arguement. The people shouldn't be driving drunk, plain and simple. It shouldn't hurt restaurants at all because people should be doing the right thing already.
---John Holmes...
They are public domain unless there are security reasons to not release the code. I just went through this with a program I wrote for DOD. Under the Freedom of Information Act (FOIA), you can request the source code to any program. Not saying they'll approve it, but unless there are "national security" type reasons, they should. In order for me to get a copy of my program to continue to develop and distribute on my own, I had to do a FOIA request on myself. :)
---John Holmes...
What's to stop us from establishing refueling points at various points all the way to mars? Launch unmanned ships and have them staged and ready for refueling the main, manned ship.
Wouldn't that result in a smaller, faster ship (or more room) overall? Or would the slowing down, stopping, refueling, speeding up cycle just make things worse?
---John Holmes...