Jump to content

steveclondon

Members
  • Posts

    161
  • Joined

  • Last visited

    Never

Everything posted by steveclondon

  1. or decimal which is best (6,2) .
  2. I would make total sales in the table an int or a float before going any further.
  3. Is it working, if so looks fine to me. I have several sites that run a few pages of different information before it gets into doing anything I can't see this causing a major load on the server at all, if that is what you mean .
  4. use the floor() function.
  5. is this on pages that do not use $_POST to get information?
  6. Use this instead. $query="SELECT * FROM tbl_news ORDER by Date DESC LIMIT 0,3" $result = mysql_query($query) or die(mysql_error()); This should bring the query out ok. I haven't looked at the rest of the code to see if that will work.
  7. would need to see the table sql (or at least that column) to know and the sql code your are using to retreave the information.
  8. Hi, I have written a mod-rewrite script for my site. I have one page that uses about 10 different combinations to produce different information. You have have 1 to 10 set any combination as long as the same one isn't used twice. I have now made a switch that will do the rewrite for me to put into .htaccess however I want to know if there is a function in php that will allow me to try every combination so that I can make a simple script to produce all my rewrites without me manually setting different values and getting the results If you follow.
  9. How have you got on with this. I to am wondering if I should use the mail() function or class to email my members when an advert is placed. This could be from a few hundred to several thousand. Would like to know how you got on and what you decided to do and which class you have used.
  10. Hi, Just use this. Please note that it doesn't work on a windows server only apache. <?php echo $_SERVER['REQUEST_URI']; ?>
  11. Hi I want to mass email my members when an advert is placed. I normally email using the mail() function however reading the php manual I see that this isn't good for sending mass emails as it has to open and close the socket each time it is activated. The manual recommends pear mail classes. I have tried to get these working and have had trouble. Does any one know the best way to go about this?
×
×
  • 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.