Sometimes you need to store things like file paths into a database table during your PHP script's execution. However, on going back to the database after running your script, you might come across your path with all of its backslashes (\) missing!
If for instance you have just used a jQuery selector to grab a whole lot of objects and now realize that in actual fact you only want to effect the first object that the selector returned to you, you can rest easy in the knowledge that jQuery as per usual has you covered.
Posted in Technology & Code, Tutorials Also tagged :first, eq(0), first element, jQuery, selector Leave a comment
I have all the ID values for wildlife parks but instead of displaying the ID values I want to display the park names. These are stored in a table that has two fields, namely ID and the corresponding display name.
Posted in Technology & Code, Tutorials Also tagged in, sets, single select, sql, sql statement Leave a comment
Adding an hour to the current time turns out to be pretty easy thanks to the fantastic strtotime PHP function.
Posted in Technology & Code, Tutorials Also tagged add hour, hour, PHP, script, time Leave a comment

Photoshop: Text Tool Keyboard Shortcuts