Jump to content

voip03

Members
  • Posts

    693
  • Joined

  • Last visited

Everything posted by voip03

  1. you use array_combine http://php.net/manual/en/function.array-combine.php
  2. Check your rights to upload image. $target_path = "images/category/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name'])." has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; }
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <style type="text/css"> @font-face { font-family: 'Bamini Tamil'; ' src: url('www.kvijayanand.zzl.org/fonts/bamini.ttf'); } .p{ font-family: Bamini Tamil, Helvetica, sans-serif; } </style> <body> tamil font <p>khtPuu; JapYk; ,y;yk பாமினி தமிழ் kjhckfk.fhh</p> </body> </html>
  4. 120 is bigger/greater than 100 , the result will be gold. unless if you use WebStyles method
  5. need to display tamil characterset Thank you cssfreakie!
  6. $user_post="120"; then you will get only one answer. $user_post="100"; $sql = "SELECT * FROM rank WHERE post>='$user_post'"; $res = mysql_query($sql); if(!$res){ die(" Could not query the database ORDERS - functions.php -32 : <br/>". mysql_error() ); } $num = mysql_num_rows($res); while($row = mysql_fetch_assoc($res)){ echo $row['rank']."<br/>"; }
  7. I want to use Tamil font in my web page. I am not able to display them on my page. It is showing like this,” y;yk “ How am I able to sort this issue? Thank you
  8. $sql="INSERT INTO slay2day_database.`points` VALUES (NULL,'$memberid','$points')"; slay2day_database.`points ? http://www.w3schools.com/sql/sql_insert.asp
  9. The mysql_num_rows() function returns the number of rows in a recordset. <?php $q = 'SELECT id, first_name FROM member WHERE email=? AND pass=?'; $r = mysql_query($q); $numOFrows = mysql_num_rows($r); if($numOFrows !=0 ) { echo $numOFrows; } else { echo $numOFrows } ?>
  10. Run this code on a new page. ( $to = put u email address) <?php $to = "email address"; $from = " <no-reply@sitename.info >"; $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.= "From: $from\r\n"; $mail_body = "Hello World"; if (mail($to,"Mail", $mail_body,$headers)) { echo " Thankyou! - Your feedback has been sent! "; } else { echo " Thankyou! - We could not send email. Please try later! "; }
  11. marke it solved. thank you.
  12. hotmail is working? ( $to='Hotmail address' , run the code )
  13. http://www.phpbuilder.com/board/showthread.php?t=10307560
  14. http://www.w3schools.com/php/php_mail.asp
  15. A subject like the headline Email body - The main part of an email message containing the actual, arbitrary data such as text or images. As opposed to the header, which contains control and meta-information gmail - this code will work.
  16. mail_body messages of the mail.
  17. $to = " clients email address";
  18. you can use mysql_num_rows() http://php.net/manual/en/function.mysql-num-rows.php http://www.plus2net.com/sql_tutorial/mysql_num_rows.php mysql count() http://www.tizag.com/mysqlTutorial/mysqlcount.php if you google it mysql_num_rows vs count
  19. $to = "email address"; $from = " <no-reply@sitename.info >"; $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.= "From: $from\r\n"; $mail_body = "Hello World"; if (mail($to,"Mail", $mail_body,$headers)) { echo " Thankyou! - Your feedback has been sent! "; } else { echo " Thankyou! - We could not send email. Please try later! "; } ?> [url]http://php.net/manual/en/function.mail.php[/url]
  20. //This function reads the extension of the file. It is used to determine if the file is an image by checking the extension. function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext ='.'; $ext .= substr($str,$i+1,$l); return $ext; } This code for session ID $filename = stripslashes($_FILES['file']['name']); //get the extension of the file in a lower case format $extension = getExtension($filename); $extension = strtolower($extension); $New_filename = $_SESSION['id']; $New_filename .=$extension; echo "<br/><br/>".$New_filename ."<br/><br/>";
  21. If you google it ; you will get a lot of answer. http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes
×
×
  • 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.