Tuesday, August 4, 2009

PHP - Format a variable for a MySQL query

This is my personal, very simple function I use to get a variable ready for use in a MySQL query.

*****************************************************

function sqlformat($var)
{
return "'".addslashes(trim($var))."'";
}

15 comments:

Anonymous said...

Bemerkenswert, es ist die lustige Phrase cialis billig bestellen viagra billig online bestellen [url=http//t7-isis.org]cialis ohne rezept kaufen[/url]

Anonymous said...

el pensamiento Encantador http://nuevascarreras.com/comprar-cialis-es/ comprar cialis barato La ringrazio molto per una spiegazione, ora io non tollerano tali errori. [url=http://nuevascarreras.com/tag/comprar-cialis/ ]cialis 20 mg efectos [/url]

Anonymous said...

Pienso que no sois derecho. Lo discutiremos. [url=http://csalamanca.com/category/viagra/ ]viagra sin receta madrid [/url] No la desgracia! http://csalamanca.com/comprar-viagra-generico/ comprar viagra online

Anonymous said...

Este mensaje entretenido [url=http://csalamanca.com/tag/comprar-viagra/ ]viagra online argentina [/url] Pienso que no sois derecho. Discutiremos. http://csalamanca.com/category/viagra/ comprar viagra por internet

Negocio Inversiones said...

I really like this blog, you are very good making them. I say that the issue discussed in this blog is quite interesting and of high quality.

Anonymous said...

Good post and this post helped me alot in my college assignement. Gratefulness you seeking your information.

Anonymous said...

Do this for any kind of converter you download: Before installing, go to www.VirusTotal.com. Upload your file and it will take like 2 minutes to scan it with 40 different Anti-Virus softwares. That should tell you if its safe. [url=http://gordoarsnaui.com]santoramaa[/url]

Anonymous said...

mmk, so my antivirus expires in march and i'm thinking about switching....i currently have trend micro internet security, because it came with my laptop last christmas, however i'm considering going back to norton, because i had them for like 7 years on my old computer and had very few problems...it blocked alot of crap from my computer too lol. i know that trend micro has blocked some stuff too but it updates constantly and it drives me a little crazy lol. i absolutely refuse to get mcafee, i hate mcafee. its a piece of crap not worth my money, so many people that i know who had it and had trouble with it eithor just glitches or letting crap in other antivirus programs wouldn't have. and they didnt have their settings turned down low...i dont trust the free antiviruses eithor [avg, avast, avira, etc] because i just dont feel safe with them...i've heard kaspersy is pretty good, but what is in your opinion the best [thats not eithor mcafee or one of the free ones? lol] thank you!! [url=http://gordoarsnaui.com]santoramaa[/url]

Anonymous said...

sex animal with woman 1985 xxx
galaxy angels dating sims
india sex movi
foto sexy calciatori
local amature sex videos
sex puttana
animal sex xx girl for free
kerala sexy aunties
indian south sex fack video
porn videos sex fameli

Anonymous said...

Genial post and this enter helped me alot in my college assignement. Thanks you on your information.

Anonymous said...

i surely love your own posting choice, very remarkable.
don't give up and keep writing since it simply that is worth to follow it.
looking forward to see alot more of your current web content, thanks ;)

Anonymous said...

suppress seeking all to look into this untrammelled of indictment [url=http://www.casinoapart.com]casino[/url] in at the unsurpassed [url=http://www.casinoapart.com]online casino[/url] chaperon with 10's of smart [url=http://www.casinoapart.com]online casinos[/url]. keep out up oneself [url=http://www.casinoapart.com/articles/play-roulette.html]roulette[/url], [url=http://www.casinoapart.com/articles/play-slots.html]slots[/url] and [url=http://www.casinoapart.com/articles/play-baccarat.html]baccarat[/url] at this [url=http://www.casinoapart.com/articles/no-deposit-casinos.html]no conceptualize nutty casino[/url] , www.casinoapart.com
the finest [url=http://de.casinoapart.com]casino[/url] to UK, german and all signal the world. so in behalf of the cork [url=http://es.casinoapart.com]casino en linea[/url] corroborate us now.

buy generic cialis online said...

Well worth to read this article, thanks for sharing this information. With this article you offered me got a chance to know about this, anyway i say Great Article! and waiting for you next article about this interesting subject.

Anonymous said...

Rules are made to be broken.

Dave said...

These kind of post are always inspiring and I prefer to read quality content so I happy to find many good point here in the post, writing is simply great, thank you for the post penis enlargement penis enlargement pills VigRX Plus