Currently Browsing
ProgrammingWhat is HTML5 Video? HTML is the markup language that makes up every page on the web. The newest version, HTML5, includes specifications for a <video> tag, that’s meant to allow web developers to add a video to a page in the same way they would add an image. In order for this to work, web browser developers have built...
This article deals with a problem I used to bang my head about the other day. I needed to declare a global variable inside a jQuery function (it works with regular JavaScript, too), and read it inside another function. If the first function isn’t called/initiated, the second function doesn’t know the value of the global variable. For example, this function...
Ever wondered what the difference between mysql_fetch_array and mysql_fetch_assoc is? What about mysql_fetch_row? I’ve always used mysql_fetch_array, but, for debugging purposes, here’s what they all do: mysql_fetch_assoc returns an associative array of your field names eg $row['field_name_here'] mysql_fetch_row returns a numeric array eg $row[0] returns the first column, $row[1] returns the second column etc. – not a good idea as it makes...
The latest version of the WordPress eCards plugin brings some HTML5 form improvements. For example, the input fields are now properly validated using their input types: <input type=”text” name=”ecard_from” size=”30″ required autofocus /> This field is required, and receives automatic focus on page load. The email fields now require valid email addresses based on the type=”email” attribute: <input type=”email” name=”ecard_email_from”...







