Jump to content

programguru

Members
  • Posts

    133
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

programguru's Achievements

Member

Member (2/5)

0

Reputation

  1. I actually had luck echoing it to the page, but I could not get it to print in the email????? $while_full_result=''; while(list($key, $val) = each($_POST)) { $while_full_result .= "<tr><td>$key</td><td>$val</td></tr>"; } $message = "<table>$while_full_result</table>"; echo $message; // Mail it mail($to, $subject, $message, $headers);
  2. o3d, Thanks. Worked like a charm. I guess I have a lot to learn with this specific type of loop, because I can't get this to work with my table output structure now. It's only echoing the key value pair from the form: $while_full_result=''; while(list($key, $val) = each($_POST)) { $while_full_result = "<table border=\"1\">"; $while_full_result .= "<tr><td>$key</td><td>$val</td></tr>"; $while_full_result .= "</table>"; } $message = $while_full_result;
  3. I am simply trying to store the full results of my while loop in a variable to store into a variable for a mail() script I am writing. while(list($key, $val) = each($_POST)) { "<strong>$key</strong> => $val<br />"; } $message = $while_full_result; echo $message; This should echo the same output as the while loop natively does. But I cannot get this to work properly. Thanks for any advice.
  4. That's a security feature. If you're processing data from your db for output using php, and if your .ini is not configured to handle it, then try something like: http://www.php.net/stripslashes
  5. have a situation where I have a specific website I am working on. Select the category, sub-category, then product. The product page loads very slowly for some reason. Even if there are not images on the page its just dragging. No other sites on the same server are having this issue. My supsicions are: --MySQL connection speed --MySQL data loading There are multiple form fields being populated. Does anyone know of a script for the actual page which I can test the speed of the MySQL query when the page loads?
  6. Yes! I was recommended this as well from some David Sawyer writings.. Ok think it's my best bet.. Thanks!
  7. Hello, I was looking for any tips on a very flexible, validated, and stable drop-down menu system script (free or fee OK). Preferably css/js, and easily integratable with php. Max 3 level deep capability: Level 1 (root) -------- Level 2 --------- Level 3 I am using a few homemade concoctions now, but are just a pain to maintain. SOS
  8. Can anyone see an issue with this causing the parse error. Am I losing my mind!! Parse error: syntax error, unexpected ',' in D:\mydirectory\product.php on line 5 <?php class Product extends AppModel { var $name = 'Product'; var $belongsTo = array('Dealer' => array('className' => 'Dealer', 'conditions'=>, 'order'=>, 'foreignKey' => 'dealer_id')); } ?>
  9. I see how that would work and why now my method was totally bunk. Nice logic.
  10. Hmmm... I don't see an out on this, but was wondering if you know of a function or method to do this business: My script works perfect with the exception of my empty() function, because I see the date() function creates a value regardless if my field $date_start (from my table) is in fact empty. I'm just trying to echo nothing if the value of $date_start is NULL (blank). Any ideas where to look on this one? .... $date_start = $row['date_start']; $date_end = $row['date_end']; $date_start_converted = date("M jS, Y", strtotime($date_start)); $date_end_converted = date("M jS, Y", strtotime($date_end)); if (empty($date_start_converted)) { $date_start_converted = ""; } ....
  11. Vedy nice. I did not know that function strtotime() existed!! Thanks for the tip.
  12. Without writing a full blown explode() script, does anyone have any ideas as how to: Convert format: 03/05/2009 to Mar 5th, 2009 I tried several variations of date(), but think it's not a proper function for this conversion. Any ideas?
  13. Cool thanks I was able to dig up a few tuts with the curl() functions.. will take a while to get my hands around this one!
  14. Hello, Is it possible to "fetch" variable content details from an external website with php? For example, if I wanted to create a custom ebay log of my for-sale items with my own custom interface (I know I would probably not be able to alter the data) and on a different domain name. Is this possible with php? And if so, does anyone know the correct technical term for this and possible an example or tutorial you can link me up to? Thanks for any advice on this.
  15. premiso, i did not realize mysql had that function as well! that worked perfect.
×
×
  • 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.