Jump to content

PHP-Nut

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Everything posted by PHP-Nut

  1. Phpmyadmin reports is this normal? Thanks Paul
  2. Think i got it sorted now, didnt know you had to copy the php.ini to the windows Dir Paul.
  3. This morning ive reinstalled Windows XP on my delvelopment machine, ive installed IIS, PHP And MYSQL server 5.0 MSQL is working fine in the comand promt. I can run phpinfo() from localhost but something is not right, as when i start dreamweaver i get an error saying mysql module is not loaded? also in the phpinfo() result, there is no Mysql table?? im told there should be? If i try and run phpmyadmin, i get Cannot load mysql extension. Please check your PHP configuration Looked this up and edited the php.ini , but no luck so far? Any ideas?
  4. $headers = 'From:[email protected]'; There Wasnt a Space After FROM: Thats all that was wrong! DOH! Lol
  5. Got an Error about a Unexpected Text String When I tried Your Code, But Anyway it seams to work now.. So Im Happy to be honest i just think messenger didnt like the email address of web@etc... :-\ Wierd Paul
  6. $headers = "From: [email protected]\r\n"; Seams to Work, Changed the 'To' address ?? ?? ah well lol Thanks Paul
  7. No, That Doesnt work either, When i got a email notification from MSN messenger with that code it said 'message from .' and then in the livemail it said 'unknown' and on opening the email it was showing the correct address???? do you think its down to the web host? Thanks Paul.
  8. $to = $row_GetID['email_addr'].',[email protected]'; $subject = 'Thank you for your www.mywebaddress Order'.' ('.$row_GetID['ordernum_ID'].')'; $headers = 'From:[email protected]'; if (mail($to, $subject, $body,$headers)) { echo("<p>Email Sent To Customer Successfully!</p>"); } else { echo("<p>Email To Customer Failed!</p>"); }?> This Code Snippet works fine with normal email programs, such as outlook express but if i download the emails in hotmail, then the from header seams to display as Unknown? In the recieved Emails List, even tho if u open the email Itself, it does show the correct from email address? (ie our Website email address) Is the code wrong in anyway? Thanks Paul.
  9. <?php $number = 1234.56; echo number_format(round($number,0)-0.01,2);?> SOLVED
  10. <?php $number = 123.45; echo round(number_format($number,2),0)-0.01;?> echos out 122.99 as expected but........ <?php $number = 1234.56; echo round(number_format($number,2),0)-0.01;?> echos out 0.99 why is this happening? it seams anything that goes over 999.99 causes the round to mess up? what am i doing wrong?
×
×
  • 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.