Jump to content

voip03

Members
  • Posts

    693
  • Joined

  • Last visited

Everything posted by voip03

  1. Get the user's current local time with PHP User’s actual local time this differs across time zones. Is there a reliable way of getting a user's current time and/or time zone? thank you
  2. This is the only one oprtion I have? thank u .
  3. I am going to build a page for German speakers. How can I change the font to German? I have font how I can put that in to my code.
  4. PHP - File Write: Appending Data The only thing that is different is that the file pointer is placed at the end of the file in append mode, so all data is added to the end of the file. $myFile = "testFile.txt"; $fh = fopen($myFile, 'a');
  5. you code should be top of the page <div id= "Banner"> <? echo "".$row['text']; ?> </div>
  6. On submit,You are going to send email to your client with payment link and the total amount
  7. this is md5 result? what is your code?
  8. What I understand from your statement while($schedule['date']==$today1) { } Note date is uyour field name.
  9. $ourFileName = "testFile.txt"; $fh = fopen($ourFileName, 'X') or die("Can't open file"); fclose($fh); http://php.net/manual/en/function.fopen.php http://www.w3schools.com/PHP/php_file.asp
  10. In my knowledge you cannot use dash for variables. Please check with ' php rules'
  11. move_uploaded_file($_FILES["file"]["tmp_name"], http://www.w3schools.com/php/php_file_upload.asp
  12. Start with this then you know the way. http://www.w3schools.com/php/default.asp http://www.tizag.com/phpT/
  13. date('l d M Y', strtotime($start. '+3 day'));
  14. Please cross check this code to your email code. <? $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.= 'From: sitename.com <no-reply@sitename.com >' ."\r\n"; $ReciverEmail = "reciver email address"; $mail_body=" eMail Body"; if (mail($verifyemail,"Subject", $mail_body,$headers)) { echo "Email Send!"; } else { echo "Email Failed!"; } ?>
  15. Thank you for your help. PHP codes are in English but output /display is in different language
  16. I have start with PHP then move into JavaScript, jquery Ajax, CSS ... You can start with php then if like to lean more the go to CSS
  17. How to add a new font to my page IT is a different language (Tamil)
  18. you can query 1&2 together. $query=("UPDATE $dbdata SET pin='1',date=NOW() WHERE id='$id'"); mysql_query($query);
  19. TRUE But I am getting these values from PayPal (Billing and shipping address). If some fields are empty then not to print it on the invoice Thank u
  20. Is there any way I can shorten the query or use better way to write the query The Best way to check the fields are not empty and print it. Thank you. <? // field is not empty function notEmpty($value) { if(!empty($value)) { echo $value."\n"; } } $paypalTran_sql = "SELECT firstName ,lastName ,shipToName ,shipToStreet ,shipToStreet2 ,shipToCity ,shipToState ,shipToCntryCode ,shipToZip FROM paypal WHERE order_id='". $orderID . "';"; $paypalTran_res = mysql_query($paypalTran_sql); if(!$paypalTran_res) { die(" Could not query the database: <br/>". mysql_error() ); } $paypalTran_row = mysql_fetch_assoc($paypalTran_res); echo ucfirst($paypalTran_row['firstName'])." ".($paypalTran_row['lastName']);;echo "\n"; notEmpty($paypalTran_row['shipToName']); notEmpty($paypalTran_row['shipToStreet']); notEmpty($paypalTran_row['shipToStreet2']); notEmpty($paypalTran_row['shipToCity']); notEmpty($paypalTran_row['shipToState']); notEmpty($paypalTran_row['shipToCntryCode']); notEmpty($paypalTran_row['shipToZip']); ?>
  21. mktime http://php.net/manual/en/function.mktime.php
×
×
  • 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.