Jump to content

habeeb24

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by habeeb24

  1. You can even insert an id or class to the anchor tag <a> and write css separately in the css page to add style.
  2. The only code in PHP to get the Ip address of thr remote server is $_SERVER['REMOTE_ADDR'],this fetches the remote IP. This code is mostly used in the available drupal module to perform the function.
  3. hi, Do you have error_reporting set to E_ALL and display_errors set to On that? I asked for that because you're using undefined variables in your code (most likely a typo), and the PHP error messages would have alerted you.
  4. PHPMailer is no longer being handled, so you are not likely to get any help from the SourceForge site. I have used PHPMailer a number of times on different servers, both Windows and *nix, and i have not run into the double-mailing you've described, so I'm afraid I have no words of wisdom for you based on the information you've provided us. If you want a more up-to-date mailer solution, you might want to consider Swift Mailer.
  5. <? //This is only displayed if they have submitted the form if ($searching =="yes") { echo "<h2>Results</h2><p>"; //If they did not enter a search term we give them an error if ($find == "") { echo "<p>You forgot to enter a search term"; exit; } // Otherwise we connect to our Database mysql_connect("mysql.yourhost.com", "user_name", "password") or die(mysql_error()); mysql_select_db("database_name") or die(mysql_error()); // We preform a bit of filtering $find = strtoupper($find); $find = strip_tags($find); $find = trim ($find); //Now we search for our search term, in the field the user specified $data = mysql_query("SELECT * FROM users WHERE upper($field) LIKE'%$find%'"); //And we display the results while($result = mysql_fetch_array( $data )) { echo $result['fname']; echo " "; echo $result['lname']; echo "<br>"; echo $result['info']; echo "<br>"; echo "<br>"; } //This counts the number or results - and if there wasn't any it gives them a little message explaining that $anymatches=mysql_num_rows($data); if ($anymatches == 0) { echo "Sorry, but we can not find an entry to match your query<br><br>"; } //And we remind them what they searched for echo "<b>Searched For:</b> " .$find; } ?> use this code and solve your problem..
  6. Hi my name is habeeb, Now i'm working as a drupal developer in CMS based web development company bangalore, our company is one of the top most CMS development company in india. why I'm join here, i need to update my knowledge more about php..i hopw this forum will help me..
×
×
  • 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.