Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
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?
-
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.
-
Start with unserialize Edit: or actually I think that's JSON? Try JSON_decode
-
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).
-
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/Editor for cake php
Jessica replied to s4surbhi2218's topic in Editor Help (PhpStorm, VS Code, etc)
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?
-
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.
-
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.
-
Symfony 2 - processing a form in one action, display in another
Jessica replied to Jessica's topic in Frameworks
Because that's a ton of work that Symfony handles for me right now. Do you use Symfony? -
Symfony 2 - processing a form in one action, display in another
Jessica replied to Jessica's topic in Frameworks
Because then I don't get the form errors without having to run the validation again. -
You should use the Session to store data.