Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged database



« Prev 1 2 3
try to with mysqli_*
0 2313 posted 10 years ago by smagic39
I have been trying to solve my problems on stackoverflow, but none seems to help. Hopefully someone here could help me.
0 2725 posted 10 years ago by raymondeu
example of php code I worked on
0 2441 posted 10 years ago by johnschneider
This is a common model used to run some common functions like CRUD functions, get reference data from table, check for dependencies etc. So in other model, we don't have to add those function repeatedly
0 2498 posted 10 years ago by invtr
Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0 1466 posted 11 years ago by 108Bits
CakePHP - Acesso a Dois Bancos de Dados
0 2215 posted 11 years ago by temistoclesarea
Connect to and query a db2 database using php.
0 1227 posted 13 years ago by zombree
1 1415 posted 13 years ago by paul0078
0 2185 posted 13 years ago by paul0078
0 2317 posted 13 years ago by paul0078
Author: J. van Hemert Fixes encoding when utf-8-encoded data is stored in tables with other (e.g. latin_swedish_ci) encoding. Will convert all columns in all tables to utf8_general_ci.
0 2356 posted 13 years ago by sjasliek
Sometimes a legacy database will have HTML entities stored in it. This function converts them. Note that this function assumes you have a database abstraction layer, and may need to be modified to connect to YOUR database.
0 3811 posted 14 years ago by f6design
That's something quick. A basic php class to manage properly a database. Thanks to magic methods opening a database is almost automatic.
1 2412 posted 14 years ago by claudiowebdesign
1 2507 posted 14 years ago by jose_506
This is a skeleton mock up for showing a database table in a basic datagrid with sorting and pagination.
0 2512 posted 14 years ago by brownrl
Refer to the following: http://codex.wordpress.org/Class_Reference/wpdb
0 2991 posted 14 years ago by redconservatory
0 1147 posted 14 years ago by kendsnyder
Create custom database tables within wordpress. Just replace 'stats' with the name of your table, and then the $sql variable with your create table sql.
0 1562 posted 14 years ago by prwhitehead
Just a simple php insert script.
0 1147 posted 14 years ago by JonnySnip3r
Just a simple database script.
0 1261 posted 14 years ago by JonnySnip3r
This is my fairly easy to use MySQL database class, I use this on my Experiment framework BlahFramework, anyways I thought someone else may find this useful or just study the code to get an awesome idea of there own. Enjoy.
3 2438 posted 15 years ago by Cory
By using this snippet we can recover fields from a database by filtering these ones per a specific field.
1 1221 posted 15 years ago by juanchifc
By using this php snippnet we can store different fields (got by array post) into a sql database
1 1140 posted 15 years ago by juanchifc
By using this snippnet we can recover and show on a table the items stored into a sql database managed with mysql.
1 1141 posted 15 years ago by juanchifc
A simple PHP object which connects to a mysql database, selects fields, creates users and more..
0 1352 posted 15 years ago by djstaz0ne
0 1070 posted 15 years ago by coevolve
Just a beginning, hoping to refine this ASAP.
0 1437 posted 15 years ago by alvincrespo
0 1203 posted 15 years ago by chrismendis
« Prev 1 2 3