Jump to content

azfar siddiqui

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

azfar siddiqui's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. agree with thorpe, if you are working with PHP5 , you can only use <?php
  2. <?php function RandomString($m,$mx,$isspecial=null) { $min = $m; $max = $mx; $passwd = ""; $passwdstr = "abcdefghijklmnopqrstuvwxyz"; $passwdstr .= strtoupper($passwdstr); $passwdstr .= "12345678901234567890"; for($i=0; $i<=strlen($passwdstr) - 1; $i++) { $passwdchars[$i]=$passwdstr[$i]; } srand ((float)microtime()*1000000); shuffle($passwdchars); $length = rand($min,$max); for($i=0; $i<$length; $i++) { $charnum = rand(0, count($passwdchars) - 1); $passwd .= $passwdchars[$charnum]; } return htmlentities($passwd); } ?> This function generates pin numbers.. what happens in real scenario is that , a pin is generated , and an entry is made into the table , i.e. a pin is assigned to the user id .
  3. there is a PHP function , which rejects all such issues mysql_real_escape_string($string)
  4. While using ajax, the scripts have to be on the same domain! .
  5. This is the right way to create a parametric link : echo "<a href='section.php?id=".$pagelink."&ipanel=".$ipanel."'>THIS IS THE LINK</a>";
  6. try echo basename($_SERVER['HTTP_REFERER']);
  7. Not even a single HTML output can be sent before Redirection function header(); Put all the HTML after the header() function . and call the exit(); after header();
  8. you have fetched the first row already...
  9. //while infinite loop while(1) { // your code } //alternative while(true) { // your code } //For Infinite Loop for($i=0; ;$i++) { //your code }
  10. Make sure you are not sending any output to the browser before you are redirecting... it will not redirect.. but it will generate an error.. on the other hand, after redirecting you can do anything you want
  11. I just separate the records with a comma and surrounded brackets... I have used it several times...
  12. I agree with chris:)
  13. Have a look at <a href="http://www.ebrueggeman.com/phpgraphlib/"> this </a>
  14. good .. if you want some more paging scripts.. just email me
  15. <?php $emails = '[email protected],[email protected]'; $emailarray=expode(',',$emails); foreach($em as $emailarray) $mail->AddAddress($em); ?>
×
×
  • 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.