Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 103

Warning: mysql_query(): A link to the server could not be established in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 103

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 107

Warning: implode(): Invalid arguments passed in /home/content/09/14001309/html/wordpress/wp-content/themes/wardelldesign/header.php on line 113
php | Wardell Design Blog

Archive for the ‘php’ Category

Get Your Latest Tweet with PHP v2.0

Wednesday, March 6th, 2013

Way back in 2010 I created a PHP script  that retrieved the latest tweet from a given user via an XML Atom file generated by the Twitter search API.  Last year in 2012 twitter dropped XML support from its API, so I though I'd revisit the issue of retrieving your latest tweet, or last few tweets using ...

Simple PHP Debugger

Monday, May 21st, 2012

The following is a simple php script I created for debugging. Features: Easy to setup and use. Outputs variable values to a text file. Handles php errors. Generates easy to read output. Usage To use the debugging function simply include the debugging script file at the top of your code, then pass the element you wish to debug as a parameter like ...

Get Your Latest Tweet with PHP

Sunday, May 23rd, 2010

The following code uses the SimpleXML extension so it requires PHP5. What it does is search through the XML output of search results for a given user name on Twitter. The version of the code below is set up to bypass Tweets beginning with "@" indicating an @ reply message. This behavior should be simple ...

Filtering MySQL Query Results With PHP

Tuesday, January 27th, 2009

For a while I'd been trying to figure out how to output a mysql query while excluding rows with duplicate values for a specific pair of column values, and then ordering by the most recent timestamp. Some if the phrases I ended up searching the web for were get all from distinct, order by then ...

© Wardell Design 2020
Entries (RSS) and Comments (RSS).