Search results

  1. P

    Cron Jobs issue

    /usr/local/bin/php You can set here php install path. then work your cronjob.
  2. P

    PHP session ID

    <?PHP ob_start(); session_start(); $ses_id = session_id(); echo 'Session ID = ' . $sid; session_destroy(); ?> You can used it this way.
  3. P

    Validation errors!

    <htnl> <head> <Style> body {font-family: Verdana, Arial, Helvetica, sans-serif; margin-top:5px; margin-left:5px; margin-right:5px font-size: 11px; color: #5A5A5A; background: #ffffff; margin: 0px; padding: 0px} </style> </head> <body> </body> </html> You can use this way now dircetly into body
  4. P

    PHP E-mail with attachment

    You can used phpmailer. You can send easily mail send. download here http://phpmailer.codeworxtech.com/tutorial.html Best way send mail using phpmailer.
  5. P

    PHP & SQL help

    mentions not dear
  6. P

    Table does not exists

    <?php $mySqlServer = "localhost"; $ServerUserName = "rttsrc1"; $ServerPassword = "********"; $db = "rttsrc1_dbCaseCheckList"; $dbCon = $dbCon = //mysql_connect($mySqlServer,$ServerUserName,$Server Password); $Server Password ==> your problem here...
  7. P

    GRR! Simple problem with mysql - HELP!!

    This is not right way. This is wrong. You can used my code, Your problem solved. <?php $ip = $_SERVER['REMOTE_ADDR']; $uniquetotal = mysql_query("SELECT ip FROM uniquetotal where ip = $ip") or die(mysql_error()); $db_query = mysql_fetch_array($db_query, MYSQL_ASSOC)...
  8. P

    PHP & SQL help

    <?php if(isset($_GET['ob']) && isset($_GET['o']) && (($_GET['o']=="asc") || ($_GET['o'] == "d")) && (($_GET['ob'] == "name") || ($_GET['ob'] == "added") || ($_GET['ob'] == "date"))) { $sql = "SELECT * FROM `Links_links` ORDER BY `Links_links`.`" .$_GET['ob'] . "` "; if($_GET['o'] == "asc")...
  9. P

    PHP email form script...

    You can post your code here & then i will reply it. What's problem actually your code??? You can used this way. Email formating in your mail foramt. <?php // multiple recipients $to = 'aidan@example.com' . ', '; // note the comma $to .= 'wez@example.com'; // subject $subject = 'Birthday...
  10. P

    GRR! Simple problem with mysql - HELP!!

    <?php $ip = $_SERVER['REMOTE_ADDR']; $uniquetotal = mysql_query("SELECT ip FROM uniquetotal where ip = $ip") or die(mysql_error()); $db_query = mysql_fetch_array($db_query, MYSQL_ASSOC); if(mysql_num_rows($db_query)==0) { $ip = $_SERVER['REMOTE_ADDR']; mysql_query("INSERT INTO...
  11. P

    Is it possible to add a time delay in PHP?

    you can used sleep usleep both function also you can use this way sleep(300); // - 300 meand milisecond stop @ob_flush(); That's way you can used it - sleep function
  12. P

    iframe javascript problem

    it is ok no problem in your page.
  13. P

    custom php 404

    It is not possible to customize your 404 error page if your web host has not enabled this facility for your website. For example, at the time of this writing, if you host at Geocities or Tripod, you would not be able to customize your 404 Error Page. If your web host has this facility, you...
  14. P

    Give me a quote to fix this existing site

    Actually How much changes in your site? Specification or details send me than i will tell you.
  15. P

    Help with .htaccess mod_rewrite

    You can create your .htaccess file http://phpasks.com/htaccess/index.html
  16. P

    Username Limit!

    <?php function check_Blank($myfld,$field_name) { if(strlen(trim($myfld))==0) return "Enter " . $field_name . "<br />" ; return; } function check_Length($myfld, $minValue, $maxValue, $field_name="") { if ( strlen($myfld) >=...
  17. P

    url-rewrite HELP :-(

    You can read this article for .htaccess file how to use .htaccess file diff. way http://phpasks.com/articles/stupidhtaccesstricks.html#red1 You can create your .htaccess file using htaccess editor http://phpasks.com/htaccess/index.html All other artilce for realted url rewriting.
  18. P

    PHP - Who's Online Script Help

    <?php select username from user_table where (UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(current_timeslice))>='5400' ?> You can also check time, no visit then logout those member
  19. P

    Php include?

    <?php include("header.php"); ?> <?php include_once("header.php"); ?> <?php require("header.php"); ?> <?php require_once("header.php"); ?> The documentation below also applies to require(). The two constructs are identical in every way except how they handle failure. They both produce a...
  20. P

    MySQL error

    <?php $link = mysql_connect("localhost", "mysql_user", "mysql_password"); mysql_select_db("database", $link); $result = mysql_query("SELECT * FROM table1", $link); $num_rows = mysql_num_rows($result); echo "$num_rows Rows\n"; ?> <?php if (eregi('^[[:alnum:]\.\'\-]{4,30}$'...
Top