Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Add the following lines of code to your theme's function.php file.
0
707
posted 13 years ago by priyankvira
Es ist auch möglich, ausschließlich Elemente zu selektieren, die mehrere Klassennamen aufweisen. Notieren Sie in diesem Fall beide Klassenselektoren direkt hintereinander.
0
867
posted 13 years ago by simondiercks
It uses a variable with a RecordSet. db_query PHP Functions can be used to have the REcordSet(http://snipplr.com/view/59419/php-connexion-to-mysql-ddbb-sql-query-and-creation-of-a-record-set/).
Then fill the tables with the data of the RecordSet.
0
800
posted 13 years ago by alberomo
The `filtermap` functional below allows to perform the standard `map` and `filter` operations in one go. The mapping function has to return a `Maybe` monad, and values of `Nothing` are filtered out.
0
1819
posted 13 years ago by deepsoul
Example of some random number generation mechanisms built-in Python. More details in the following link: http://docs.python.org/library/random.html
0
802
posted 13 years ago by denakitan
Basic thread example showing how to create a class inheriting from threading.Thread class. For more information, take a look at the following links: http://docs.python.org/library/thread.html http://docs.python.org/library/threading.html http://www.i...
0
777
posted 13 years ago by denakitan
That's something quick. A basic php class to manage properly a database. Thanks to magic methods opening a database is almost automatic.
1
985
posted 13 years ago by claudiowebdesign
PHP code for connect to MySql, create a SQL query and a Record Set from it.
Note: If you use ADODB php library, write db_query() instead of mysql_query().
0
1102
posted 13 years ago by alberomo
Personalized plugin for order datatables with spanish date dd/mm/yyyy hh:mm
0
642
posted 13 years ago by donmik
It uses a variable with a RecordSet from a ADOdb Library (Library must be downloaded). db_query PHP Functions can be used to have the REcordSet(http://snipplr.com/view/59379/dbquery-php-function-for-ddbb-queries-with-adodb-library/)
Then uses ADOD...
0
699
posted 13 years ago by alberomo
A PHP function to get a Record Set using ADOdb Library.
It takes the (SQL) query as an argument. For INSERT queries. NOTE: A call for a query.
It also need next variables: $dbhost,$dbuser,$dbpasswd,$dbname (data from de bbdd connexion). Can be...
0
943
posted 13 years ago by alberomo
Reference of simple operations with dates, such as formatting and arithmetic.
0
884
posted 13 years ago by denakitan
A PHP function to get a Record Set using ADOdb Library.
It takes the (SQL) query as an argument. For SELECT,UPDATE and DELETE queries.
It also need next variables: $db_host,$db_user,$db_passwd,$db_name (data from de bbdd connexion). Can be dec...
0
888
posted 13 years ago by alberomo