Jump to content

Stealth549

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Stealth549's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your help, I got the results I was looking for using the time() function.
  2. I wasn't sure where to post this either this section or the mysql section. Anyway I have a automated timestamp within mysql. Now when I use the date function I dont get the result that I was expecting. Getting the incorrect date. this is the code that I am using and the results can be seen at the url below. date("Y-m-d",$row['date']) http://stealth549.com/dev/news/customer/php/includes/datetest.php Thanks for any help.
  3. I still get the error if I take that out, The field is varchar( and it stores numbers
  4. there is still an error with all that. I have another query that is similar but works, all that is different is that i dont have newspaper.cost. $sql = "SELECT subs.news_id, subs.cust_id, subs.sub_id, newspaper.name, newspaper.$day, newspaper.id FROM subs , newspaper WHERE subs.news_id = newspaper.id AND newspaper.$day = 'on'";
  5. Hey everyone, getting a sql error that I cannot pin down. sql query $sql = "SELECT subs.news_id, subs.cust_id, subs.sub_id, newspaper.name, newspaper.$day, newspaper.cost, newspaper.id FROM subs , newspaper WHERE subs.news_id = newspaper.id AND newspaper.$day = 'on'";
×
×
  • 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.