Four Dubai Lynx Entries – One Short Listed
Finally the Dubai Lynx Awards fever is back again. Have been fortunate to get short listed for Olay Eyes of Arabia
EYES OF ARABIA - PROCTER & GAMBLE
http://www.dubailynx.com/winners/2011/interactive/entry.cfm?entryid=2029&award=101&order=0&direction=1
REVEAL THE SECRETS - MARS - GALAXY ICE CREAM
http://www.dubailynx.com/winners/2011/interactive/entry.cfm?entryid=1919&award=101&order=0&direction=1
THE LAND ROVER ALLY - LAND ROVER - LAND ROVER LR2
http://www.dubailynx.com/winners/2011/interactive/entry.cfm?entryid=1922&award=101&order=0&direction=1
DUBAI RECYCLES - EMIRATES ENVIRONMENTAL GROUP
http://www.dubailynx.com/winners/2011/interactive/entry.cfm?entryid=2028&award=101&order=0&direction=1
Small businesses in MENA region lack web presence
It's time small businesses in UAE and elsewhere in MENA region embrace web for their presence
check out the following business report:
http://www.thenational.ae/business/technology/small-businesses-in-mena-region-lack-web-presence
SQL Injection & Prevention PHP/MySQL
You all know about SQL Injection. To avoid this issue in PHP/MySQL. Just use mysql_real_escape_string()
mysql_real_escape_string() calls MySQL's library function mysql_real_escape_string, which prepends backslashes to the following characters: \x00, \n, \r, \, ', " and \x1a.
This function must always (with few exceptions) be used to make data safe before sending a query to MySQL.
Also apart from this Data Validation from Text Boxes is very important. It's a good habit to Trim blank spaces around word, sentences or even characters and if it's a Numeric field, you must ensure only Numbers & Decimals are permitted.
You can use ereg_replace () function in PHP to retain the range of Characters/Numbers/Special Characters and replace the rest with Blank.
For e.g. I would like to only allow capital A-Z, smal a-z, and Numeric numbers 0-9 and also allow space, so I would use the following:
ereg_replace ("[^a-zA-Z0-9 ]","", $val); //where $val contains the value.
Now with the increased web attacks on websites, most of them is due to SQL Injection, and Spamming of Web Forms.
The Spamming of Forms is a major concern, and thanks to Captcha & other random techniques so that Automatic Form Submission does not take place once this are in place.
In the end, I recommend that good sites stand by good security of the site and it makes your visitor to the site secured as well.
If you have any comments, do let me know and share your insight with me.
Thanks!