Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. OP, you need to put the class on the TR. You need to increment your counter. Did you read my previous post? I basically did it for you, what is the problem?
  2. That's a completely different question, I suggest you make a new thread, with a good title, and a very informative description of your problem.
  3. It shouldn't work in any browser, there's nothing to actually put the stripes on the rows. A. That should be a while loop, not a do-while. B. You should have a variable to hold the number of rows, then alternate the class based on that. Here's a simple example: <?php $num = 0; while ($row_recordset1 = mysql_fetch_assoc($recordset1)){ $num++; $class = $num%2 ? 'even' : 'odd'; echo '<tr class="'.$class.'">'; echo '<td>Row Data Here</td>'; echo '</tr>'; } ?> Edit: I see the JavaScript now that was supposed to do it. I strongly recommend using PHP instead, unless you dynamically alter the table with JS later. Your JS isn't working because you're putting the tableClass class on a span, not the table row. So .tableClass tr never exists.
  4. There are lots. You could do your striping in PHP. If your table is dynamic, you could use jQuery. Bootstrap.js has good zebra striping.
  5. Start with unserialize Edit: or actually I think that's JSON? Try JSON_decode
  6. Dude, Barand is the nice one. If you can't handle him you're in trouble.
  7. If you're leading a team, there's a lot of ways you can ensure they are doing a good job. What specifically do you want to monitor? Their growth? Their code? Their ability to debug, their ability to work together...?
  8. You get access to the practice exams when you pay for the exam. (At least, that's how it was when I did it years ago).
  9. Did you try it?
  10. If there was an actual error with the query, you'd get an error. You may have a LOGIC error with it. Put the query into a string, echo it out, and try running it directly in MySQL or phpMyAdmin. See what is returned. This part: WHERE MONTHNAME(Events.Event_Date) = MONTHNAME('".$_POST["Month"]."') And YEAR(Now()) Makes no sense to me.
  11. Moving to the right forum. OP: post only the relevant code in code tags.
  12. Moving this to the right forum
  13. Netbeans has a PHP/HTML version which works great. I've been using it just for a few weeks and I'm converted. Before that I would use jEdit or Textpad but neither of them have the jump-to-definition functionality you're describing. We also have a thread devoted to editors, so check there.
  14. Dude, .= is concatenation. It's one string.
  15. if($current_reading=" ") Is assignment.
  16. It means exactly what it says. Do you know what static means? What a property is? What undefined means? If not, you need to do some research. Did you write the code?
  17. Thought you left. By the way, if you're totally cool with your boss not paying you because he didn't tell you the requirements, I know someone who's hiring.
  18. What is the problem? If you know how to read the data, you should be able to figure out how to delete the data. What part are you confused about?
  19. We'd need to see your PHP code, but most likely it will work if you use 0/1 for false/true
  20. here is a tutorial I wrote on CRUD - Create, Read, Update and Delete. http://thewebmason.com/php-mysql-crud-tutorial-using-pdo-create-read-update-delete-part-1-create/ It should cover everything you need for a basic CRUD like what you're describing.
  21. The point being made is that you should not have 3 user classes. You need 1. You don't need RegisteredUser and UnregisteredUser. There is.
  22. Because that's a ton of work that Symfony handles for me right now. Do you use Symfony?
  23. Because then I don't get the form errors without having to run the validation again.
  24. You should use the Session to store data.
×
×
  • 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.