Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource
Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource
You have just gotten a warning when trying to check if an …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource
You have just gotten a warning when trying to check if an …
Read Article →You have a string and you want to capitalize the first character but have the rest of the word in lowercase.
DO THIS!
myStringVar = …
Read Article →
I have got an HP laptop and have started experiencing problems with it starting up for the past few months, it is only about 1.5years old and is …
Read Article →Below is a very interesting article I found that proves all the myths about DirectX being better than OpenGL, a very well written paper describing it …
Read Article →In php there are a few magic constants and I find FILE to be a very useful one.
It returns the full path and filename of the file in question.
Take a …
Read Article →I have used Woopra for a few months now and have started seeing this warning/error almost everyday now:
Could not enable live functionality at this …
Read Article →The default time for a PHP session is 1440 seconds (24 minutes). After that, the session data is eligible for garbage collection and the user may need …
Read Article →There have been multiple ways to stop your user/s from right clicking on your site, but many of them now fail due to the way firefox’s …
Read Article →I often seem to have this issue when dealing with Microsoft software.
You click “Cancel” and it just carrys on going, so you click it …
If you have ever tried to place a div or similar HTML element on top of a swf flash object you will know that it always tries to take precedence.
You …
Read Article →Sometimes you need to know the full filesystem path of your PHP script — for example, when building file paths for includes or writing to a log file. …
Read Article →If you want to position the flash top/left and not have it scale when you resize it’s bounding box window, you can set the following code. …
Read Article →So you received an error 406 while trying to upload a file and you have no idea to fix it!
This usually happens when mod_security on your Apache …
[Exception… “Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType]” nsresult: “0x80040111 …
Read Article →If you need to fetch several rows by their IDs in a single query, use the IN clause instead of chaining multiple OR conditions. It’s cleaner and …
This script works in all browsers, including Internet Explorer! 🙂
Sometimes you need to force the browser to download a file instead of displaying it …
Read Article →In ActionScript 2, event handlers like onRelease are assigned as properties on movie clips. Removing them isn’t immediately obvious if you …
I often have to show a shortened version of a news item and then a link to show the entire news article or whatever.
Here’s a way to get that …
Read Article →Need to read a file line by line in PHP? The file() function is the quickest way to do it. It reads the entire file into an array where each element …
Start writing content to your blogs from your Windows Desktop now.
No need to login to your wordpress backend to post items anymore, there is now a …
Read Article →
What the heck is that?
So you’ve just visited a website using Mozilla Firefox and this message has popped up telling you that the site looks …
Read Article →Here’s a quick reference for the most basic HEX colour values. These are the building blocks — once you understand how red, green, and blue …
Read Article →Ever find yourself typing the headers into the php mail() function over and over again?
Try using a standard function and calling it when you need to …
Read Article →I came across a very interesting article about MySQL development tools — a solid roundup of admin and management tools that were popular at the time. …
Read Article →