';
...etc


Until I thought this little guy up I've been stupidly sticking the same routine in manually each time. It's the little things I often overlook.

Source: http://community.livejournal.com/php/583773.html

    It's the simple things in life...

    Date: 09/06/07 (PHP Community)    Keywords: mysql, css, sql

    Most of you are probably already doing this. But you never know.

    Function to call to mark up table rows with CSS

    // odd_even
    	// marks up table rows odd or even
    	// returns string to echo
    function odd_even ($count) {
    	if ($count & 1) {
    		return ' class="odd" ';
    	} else {
    		return ' class="even" ';
    	}
    }
    

    And then...
    	$count = 0;
    		while ($row1 = mysql_fetch_array ($result1, MYSQL_ASSOC)) {
    			$count++;
    			echo '
** table row data **
« Two MySQL Questions. || PHP property name case... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home