Hi PHP users,
I just know i'm doing this in really bad way:
$url = wp_get_referer();
$path_parts = pathinfo($url);
$mycat = $path_parts['filename'];
if ( $mycat == "animation" ) {
$_SESSION["theCategory"] = $mycat;?>
<a href="<?php bloginfo('home')?>/c...
It occurs to me that there are number of different ways to structure conditional logic. As far as I can see, as long as we set errors to end the script (or you can imagine the same examples but with a return in a function), then the following examples are equal:
Example 1
if($condition1) {
trigger_error("The script is now terminate...
Hello,
I used conditonal formatting to select and color some data, and now i want to apply color sorting to rearrange the data.
However, it seems like excel can no longer detect the color after i use conditional formatting. I tried several codes that i could find in google but none of them worked. Does that mean color sorting cannot b...
I want to color the cells of a pivot table in a way that it highlights the highest values in the row. The table I have is something like this:
________|_Field1_|_Field2_|
________|_X_______________|_X_Total_|_Y________________________|_Y_Total_|
_Field3_|____A___|____B___| |____A___|____C___|____D___| |
____1___|____3___...
Hi. I have a RichTextBox with an OnChanged event. The OnChanged event should look at each line in the RichTextBox and if the line is of prime length colour it red, otherwise colour it black. How do I do this? I think it is possible to select from index a to index b and set selection colour, but I think this will lose my cursor position. ...