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))."'";
}

12 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...

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.