Jump to content

MatthewJ

Members
  • Posts

    803
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    Davenport, IA

MatthewJ's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Um... no, he was stating that the whole row was printing when he only wanted the first fields data. Exactly why I suggested mysql_fetch_array as it returns an array accessible by numeric key.
  2. mysql_fetch_row... I think you mean mysql_fetch_array()?
  3. You can populate a mailto link... but I'm not sure why you would want to... it sounds like this is going to a single person to check for invitations being submitted? If so, then why not just tell outlook it isn't junk and move on? If that isn't an option, check that you are setting a From header. If it is omitted, it will send the email as the servernameofhost@someweirdomainname.com etc.
  4. Well, then they have to be separate paragraphs... again, text-indent indents the first line of a pragraph
  5. You use a margin or padding... text indent is supposed to do exactly what you're saying (indent the first line of the text like proper paragraph formatting calls for). In order to achieve what you're looking for, I would think you just need to split them into multiple paragraphs.
  6. $counter = 0; echo "<table>" do { $bgclass = ($counter % 2 == 0) ? 'color1' : 'color2'; //echo row and set the class equal to $bgclass echo "<tr class='$bgclass'><td>" . $row['databasefield'] . "</td></tr>"; $counter++; } while ($row = mysql_fetch_assoc()); echo "</table>"; Something like that maybe?
  7. Like Nuv said... missing bracket on the If. The unexpected $end on line whatever points to the problem being on the line directly above the referenced line number.
  8. Also, I would try the From: header as the email address only and remove it from the < > like the manual example.
  9. I had the same problem on a host a year or so ago... if I recall, I got it fixed by adding the php-version header to the mail headers. Almost like if it didn't know what php version was sending the mail, it defaulted. Example from the PHP manual <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> Maybe that will help?
  10. You can get decent hosting for < $5 a month... it may be time to just bite the bullet.
  11. You just need to get the contents of that file into a variable, and use the same content-header method to display it for print/save.
  12. http://www.freeopenbook.com/php-hacks/phphks-CHP-5-SECT-16.html
  13. if (isset($_POST["name"]) && $_POST["name"] != "") { //Do whatever } else { echo "Error!"; }
×
×
  • 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.