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. You have to tell it the new value, it's not automatic. Also there's no such thing as a timespamp, so...
  4. 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
  5. Make the name of the checkboxes an array. name="fish[]". On the next page, you can see what they chose in $_POST['fish'];
  6. You'll need a column which stores the time they are last updated.
  7. What is your table structure? You'll need a column which stores the time they are last updated.
  8. 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.
  9. 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.
  10. $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?
  11. 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.
  12. 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; }
  13. You have to include the file that has that function on your login page. Use require_once.
  14. Combined how? You're already joining the tables, specify how they're related. Google inner/left join.
  15. You need to specify which id. If both, which one first?
  16. 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.
  17. You need the second argument of print_r, which is a Boolean, to use it that way.
  18. 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)
  19. It's probably still nested within something. Post what was in the lines before that spot.
  20. Agreed. I'd either change the color of one, or get rid of the dot completely and just have the star for new,
  21. 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.