Jessica
-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Posts posted by Jessica
-
-
Try putting your style below the title
<html> <head> <title>How To Create Zebra Striped Table</title> <style type="text/css"> .odd { background-color: blue; } .even { background-color: white; } </style> </head>
What? No.
-
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.
-
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.
-
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.
-
-
Dude, Barand is the nice one. If you can't handle him you're in trouble.
-
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...?
-
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).
-
If I wanted to include the year would this work after the And: YEAR(Events.Event_Date) = '".$_POST["Year"]."'
Did you try it?
-
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.
-
Moving to the right forum.
OP: post only the relevant code in code tags.
-
Moving this to the right forum
-
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.
-
Dude, .= is concatenation. It's one string.
-
if($current_reading=" ")
Is assignment.
-
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?
-
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.
-
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?
-
We'd need to see your PHP code, but most likely it will work if you use 0/1 for false/true
-
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.
-
I omitted the functions / properties to keep the example simple but I do have a basic User class. It just made sense to me that seen as a RegisteredUser has all the properties of an UnregisteredUser that the RegisteredUser should extend from that class.
The point being made is that you should not have 3 user classes. You need 1. You don't need RegisteredUser and UnregisteredUser.
I could get around it doing the checks you have suggested but I can't believe there is nothing native in PHP that says "are you an instance of this particular class?".
-
Because that's a ton of work that Symfony handles for me right now.
Do you use Symfony?
-
Because then I don't get the form errors without having to run the validation again.
-
You should use the Session to store data.
zebra stripe dynamic table for ie8
in PHP Coding Help
Posted
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?