Jump to content

aaronlzw_21

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aaronlzw_21's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have tried but it still shows the same error. I did a test, some email are "dead" does it affect this problem? it does, anyway to catch this exception? On the server log, the error was stated "Premature end ofscript headers". My server is running on php4.
  2. ic i get what you mean. ok i'll try it first THANKS!
  3. i mean if i insert the $recipients into the first parameter in the mail function. would the recipients be in the TO field of the email or BCC? as i need it to be in the BCC field.
  4. You mean into the first parameter of mail? but that would be in the TO list. I need it to be in the BCC list..
  5. Hi i created a script to mass mail my clients via bcc field. whenever i sent, i will encounter a 500 internal server error, but the mail is stil sent. in the bcc field have about 50 addressees. I tried sending 15 addresses at a time it will still give me the same error. Below are my codes. Any idea what's wrong? $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= "From: Mass_Email@xxxxxxxxxx.com\r\nReply-To: ". $_SESSION["email"]."\r\n"; $headers .= "Bcc: " .$recipients; mail("", $subject, $message, $headers);
  6. is it possible to export a table shown on php web to a csv file? i've extracted datas from mysql and display it in a form of a table on php. how can i export and download into a csv file? is it possible?
  7. is there a command that allows me to capture the user id of the person logged on to windows computer?
  8. [!--quoteo(post=374223:date=May 16 2006, 04:41 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 16 2006, 04:41 PM) [snapback]374223[/snapback][/div][div class=\'quotemain\'][!--quotec--] You can fetch all of a tables data and loop through it with something like: [code]<?php $result = mysql_query("SELECT * FROM `table`"); while($row = mysql_fetch_assoc($result)) {     //Echo your columns here with $row['name'] to print the column 'name' } ?>[/code] You won't be able to do your second question as easily with PHP - Everything is processed on the server before it is passed to the users browser. You'll have to pass a count to and from your page to keep track of cycles and clicks. [/quote] okok thanks.. what's the differences between mysql_fetch_assoc(), mysql_fetch_row() and mysql_fetch_array()? they all seem to work the same way..
  9. hi i would like to know about triggers.. how to code it?
  10. i have a qns.. is there a mysql function that takes out the whole table and store it in a variable. and from there we access it? like in asp.net there is. and another qns is that lets say a for loop that loop 3 times. how do i halt it till a user clicks on something update the database then loop the second time and same thing happen, halt, click then loop again. is there a fuction? thanks ya..
  11. [!--quoteo(post=372274:date=May 8 2006, 10:35 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ May 8 2006, 10:35 PM) [snapback]372274[/snapback][/div][div class=\'quotemain\'][!--quotec--] You have to use number_format() to display any kind of precision, unless MySQL provides a number formatting function. [/quote] erm i dun get wat u mean..
  12. hi i have a small prob here. mysql table's column is in decimal with two decimal places. to store prices. i used a for loop to display the results in a form of a html table. but the results shown are always without the decimal places. did i do something wrong? here are my codes, $queryResult = mysql_query($query) $results = mysql_num_rows($queryResult) for ($i=0; $i<$results; i++){ $row = mysql_fetch_array($queryResult); echo "<td>". $row['monthlyCost']. "</td>"; } its not the complete code but its something like that. thanks!
  13. its ok i got it already. it works suddenly. after lots of uninstalling and reconfigurating. it works now! thanks!!
  14. okok i got it thanks guyz! i've changed the way i code. it works for now. thanks gurus!
×
×
  • 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.