voip03
Members-
Posts
693 -
Joined
-
Last visited
Everything posted by voip03
-
you use array_combine http://php.net/manual/en/function.array-combine.php
-
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!"; }
-
<!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>
-
120 is bigger/greater than 100 , the result will be gold. unless if you use WebStyles method
-
need to display tamil characterset Thank you cssfreakie!
-
$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/>"; }
-
Logins with remember me - sessions, cookies or both
voip03 replied to MargateSteve's topic in PHP Coding Help
how long you can keep the cookies alive php -
Thank you my guru
-
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
-
You need CSS
-
$sql="INSERT INTO slay2day_database.`points` VALUES (NULL,'$memberid','$points')"; slay2day_database.`points ? http://www.w3schools.com/sql/sql_insert.asp
-
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 } ?>
-
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! "; }
-
marke it solved. thank you.
-
Value is id , Not name
-
hotmail is working? ( $to='Hotmail address' , run the code )
-
http://www.phpbuilder.com/board/showthread.php?t=10307560
-
http://www.w3schools.com/php/php_mail.asp
-
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.
-
mail_body messages of the mail.
-
$to = " clients email address";
-
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
-
$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]
-
//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/>";
-
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