Here are the similarities and differences I noticed when switching from the mysql_ prefixed functions to the mysqli_ functions in PHP. Creating a Connection Creating and closing a connection are exactly the same using mysqli_: // Creating a Connection with mysql_connect() $conn = mysql_connect($servername, $username, $password); // Do stuff with […]
Tag: Database
Increment Hex Values in PHP
Hex values aren’t just for colors! I recently had to generate a list of values from 00-ff and came up with this little snippet. Here’s how to increment hex values in PHP: For Reference: Hex Values Use (line 8) 0-f $x < 16 00-ff $x < 256 000-fff $x < […]
Changing The WordPress Table Prefix
A warm WordPress Wednesday welcome! 🙂 Today I embarked on a journey into the unknown. In my attempt to perfect my naming conventions, I decided to change my table prefix… after installing WordPress. (Don’t worry, it wasn’t “live;” I just didn’t want to redo any steps.) Okay, so the story […]