Apna Code

Code, Tutorials and Snippets by Adeel Sarfraz

  • Home
  • About Us
  • Contribute
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Month: August 2016

No Image

How to display random record with respect to category/position in mySQL

August 31, 2016 Adeel Sarfraz 0

If you have a requirement to display a random record with respect to the category or position on your web page then you may have […]

No Image

How to remove extra blank lines in your script using Dreamweaver

August 27, 2016 Adeel Sarfraz 0

You may have come across many a times when your FTP client or some editor may add extra blank lines to your script which become […]

No Image

How to filter all form input fields for escape characters in PHP

August 22, 2016 Adeel Sarfraz 0

If you have a large number of form fields which you would like to filter for escape characters in PHP then you can use the […]

No Image

How to rewrite all HTML URLs on your website via PHP script using htaccess

August 16, 2016 Adeel Sarfraz 0

If you have a static website comprising of HTML pages and you wish to place some code related check (like enforcing an IP address related […]

No Image

How to detect visitor to your website is using desktop or mobile device using PHP

August 12, 2016 Adeel Sarfraz 0

Firstly there is no default PHP method to detect if the visitor is browsing your website on a mobile device or a desktop. However there […]

No Image

How to remove attributes from within a tag using regular expression in PHP

August 11, 2016 Adeel Sarfraz 0

If you have come across a situation where the content in your database is using different style attributes from what is required on your website […]

No Image

How to disable database error messages on web page in Code Igniter

August 9, 2016 Adeel Sarfraz 0

By default Code Igniter displays the database error message on the web page if there is an error in the SQL statement. This is OK […]

Recent Posts

  • How to stop users from copy pasting content from my web page
  • How to fetch posts from my WordPress blog without accessing the database
  • How to use Google font on my web page?
  • How to check if my website is safe from malware infection
  • How to perform session timeout after 20 minutes using PHP?

Code Gallery

Apna Code Scripts - where you can view all scripts coded which you can use on your website.

Copyright © 2021 | WordPress Theme by MH Themes