Jump to content

Festy

Members
  • Posts

    57
  • Joined

  • Last visited

    Never

About Festy

  • Birthday 07/11/1954

Contact Methods

  • Website URL
    http://www.webprofitonline.com

Profile Information

  • Gender
    Male

Festy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Festy

    gzip

    No you don't need a header in this case.
  2. <?php define( "DB_DSN", "xyz"); define( "DB_USERNAME", "username" ); define( "DB_PASSWORD", "password" ); define( "PAGE_SIZE", 10 ); define( "TBL_", "abc" ); ?>
  3. There is no standard format available to store phone numbers. Also there is no max. fixed length. You can use international code along with phone numbers, so phone numbers will always be of variable length. Just use 'VARCHAR' and fix the length according to your application requirement.
  4. use 'SELECT DISTINCT......' query to fetch unique rows.
  5. or just break the long string using 'nl2br' function.
  6. You can achieve this using .htaccess files. To learn more about .htaccess files, follow this link - http://httpd.apache.org/docs/1.3/howto/htaccess.html
  7. because local and server configurations could be different. And if something works on local environment, doesn't mean it will work on server environment too. For e.g. your could be using windows locally while the server platform is Linux. Also there could be different versions of PHP and one version may not be compatible for your script.
  8. You have 2 possible solutions - 1) Use IP address to detect the identity. 2) Use cookies.
  9. Minimize the size of your table to fit the size of printer page. Also make use of 'print preview' option to make sure rows don't break out.
  10. Yes it's a good practice. Although your title can be of any length, Google will only read 60 character.
  11. Although you can also use addslashes and stripslashes, using 'mysql_real_escape_string' would also help you prevent any sql injection attempts.
  12. Can you please let us know how did you figure that out ? It would be helpful for others.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.