Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Those are MYSQL functions, not PHP functions. If you're getting a blank page, it means you don't have error reporting turned on.
  2. What type is the field? You should have made it a DATETIME. If you make it a DATETIME you can use CURDATE().
  3. Do you know what an array is?
  4. You have to tell it the new value, it's not automatic. Also there's no such thing as a timespamp, so...
  5. IF YOU AREN'T ALREADY USING ONE OF THOSE COLUMNS TO STORE THE LAST TIME YOU UPDATED THE ROW, ADD A DAMN COLUMN TO STORE IT!!! it's not rocket surgery1
  6. Make the name of the checkboxes an array. name="fish[]". On the next page, you can see what they chose in $_POST['fish'];
  7. You'll need a column which stores the time they are last updated.
  8. What is your table structure? You'll need a column which stores the time they are last updated.
  9. I just saw this part. Do you seriously think that if you got fired after 8 days for not having enough experience, and you JUST graduated, that you are THAT GOOD at PHP? Honestly? There's no way. NO. Way.
  10. Please do not store your code in a database - that should never be done. You can either include the file, or create a function which generates that section.
  11. Well that's good
  12. $num = $order->products[$i]['qty']; if(intval($num) == $num){ $num = intval($num); } echo '<td class="dataTableContent" valign="top" align="right">' . $num . '</td>' . "\n" . // etc... In the future, you should probably look at our freelancing board. This is basic code and you didn't know how to use it?
  13. You changed your error message, now it doesn't make sense. That's not a valid error message. Based on your previous posts and behavior, I'm pretty sure you're a troll. If you truly want help, behave.
  14. Honestly it will look better and be more visually appealing if you have them all have the same number of decimal places. But if you insist...something like this. $num = 1.00; //$num = 2.5; //$num = 3.051; if(intval($num) == $num){ echo intval($num); }else{ echo $num; }
  15. You have to include the file that has that function on your login page. Use require_once.
  16. Combined how? You're already joining the tables, specify how they're related. Google inner/left join.
  17. You need to specify which id. If both, which one first?
  18. Every time you set $output you're using $string in the replace function. So the last time it sets $output = the string replacing the last one only.
  19. php.net - familiarize yourself with it.
  20. You need the second argument of print_r, which is a Boolean, to use it that way.
  21. Look at your data in a tool like phpMyAdmin. Is there a category value? (which, btw, should be in its own table and joined to this one, but let's work on one thing at a time)
  22. It's probably still nested within something. Post what was in the lines before that spot.
  23. Agreed. I'd either change the color of one, or get rid of the dot completely and just have the star for new,
  24. Start working on some projects you can use to make yourself stand out.
×
×
  • 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.