Different actions for different parts of a string
<?php
function dosomething($string, $else = '') {
if (empty($else))
$string
Preloading images
Posting this question here because I am not sure where this should belong.I am building an asp.net a
1,000 select boxes with 100 options?!
I have 1 drop down select box with 1,000 options.
In some case, there will be 100+ of the
MySql timezone
Code: $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE t
How to create a static html menu from a database
Hi,
I have built a small cms which allows me to create simple html pages and then upload them
Retrieving innerHTML with cURL?
Hey all (sorry I know I'm a leecher, but I soon won't be. This is my first PHP project, but not my l
Hi, explode and strstr.
Hi, I seem to be confused about the strstr function, eg. i have a string like:
"a.b.c.d.e.f&
regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q
Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w
Inserting a check in checkbox from array value
Hello all,
I have a bit of code that works for a select option box, but does not work for my chec