Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 76 77 78 79 80 ... 147
Was trying to figure out a way to remove tabs for a content type where it was unnecessary. Place this in your theme template.php file and configure to your needs. Example Usage: Organic Group View is created and page uses a menu tab. Unfortunately...
0 1544 posted 15 years ago by Onfire60
Stop a spam email form header injection attack - ie stop spammers from hijacking a web form to send junk mail
0 1180 posted 15 years ago by flatearthcomms
When creating a custom Google Map, the latitude and longitude for the place of interest are needed. Enter in the Address, City, and State, and the lat and lng pair will be returned.
4 2881 posted 15 years ago by tcam27
To use: $update_sql = querys($sql); or $select_sql = getresult($sql); Used simplify selecting rows from a database. You'll need to pass in the SQL statement.
0 1427 posted 15 years ago by shawntysco
Used to delete rows from the database. \r\nTo use:\r\n$del = delete(\"quick_links\", $_GET[\'id\']) ;
0 1264 posted 15 years ago by shawntysco
Makes basic insert statements a breeze to type while doing basic PHP inserts.\r\n*The function for \\\'querys\\\' on line 44 can be found here: http://snipplr.com/view/40911/query-the-database-php/ *
0 1283 posted 15 years ago by shawntysco
0 1103 posted 15 years ago by etobi
0 1133 posted 15 years ago by etobi
0 1201 posted 15 years ago by bedomax
0 1092 posted 15 years ago by foertel
0 1117 posted 15 years ago by foertel
0 1312 posted 15 years ago by dmertl
You can get the last query by using the following code. Insert the first line before the query and TYPO3 will store each query. You can get the last query with the second line.
3 1808 posted 15 years ago by pogosheep
Gets the date, pulls a list of upcoming events (posts from cat 6) and sorts by custom field \\\"event_date\\\" . Add to sidebar via [PHP Code Widget](http://wordpress.org/extend/plugins/php-code-widget/).
0 1615 posted 15 years ago by hussong
Uses action hook of the hybrid theme framework to launch function that modifies the query on the archive page for category 6.\\r\\n\\r\\nSorts by the custom field \\\"event_date\\\" and compares it to the current date.\\r\\n\\r\\nBased on [goto11\\\'...
0 1375 posted 15 years ago by hussong
A small snippet on how to create a dynamic model in CakePHP (useful for global functions that need a model to function. IE functions defined in the AppController
0 1257 posted 15 years ago by stolkchris
If you're ever bothered by CakePHP's limited breadcrumbs support for displaying them use this to build your own!
2 1523 posted 15 years ago by stolkchris
Show the top tags by usage.
1 1863 posted 15 years ago by daipratt
0 1253 posted 15 years ago by paschim
0 1009 posted 15 years ago by Mikushi
Shows a month calendar, forward and backward navigation by month. Week numbers are shown at left col. Days and weeks are clickable. Days, weeks and months names are in Danish. Comments and suggestions are welcome
1 2119 posted 15 years ago by zafu
0 1462 posted 15 years ago by traeregan
0 1471 posted 15 years ago by traeregan
2 1362 posted 15 years ago by crs
Requires PHP 5.2 with filter_var()
1 1605 posted 15 years ago by Calvista
example I used to create a auto suggest search from that pulls from a database. The example pulls from a single db table containing categories. Using jQueryUI made this pretty painless but by default the autocomplete feature uses GET variables and...
4 1683 posted 15 years ago by myke
1 ... 76 77 78 79 80 ... 147