Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
like array_key_exists but accepts an array of key values to check
0
546
posted 15 years ago by iloveitaly
Use this function to print out all the rows in a table. Specify columns to show using the columnstring parameter:
tablulardata(tablename, columnstring);
ie:
tabluardata("users","username=Username|fname=First Name|lname=Last Name");
1
748
posted 15 years ago by kilrizzy
Use this function to pull all columns from a single database field.
getrowdata(tablename,rowid,prefix);
You would call this function like:
getrowdata("users",$_SESSION['user'],"user_");
The prefix is the prefix you want for the array names,...
1
869
posted 15 years ago by kilrizzy
what was taking an embarrassingly long time in Spry took 2 lines in PHP
0
875
posted 15 years ago by rwczippy
Enable the use of Custom Fields in Wordpress. This is the code to put into the markup. Related plugin: get-custom-field-values
0
837
posted 15 years ago by taqin
This allows you to get contents of any div with ID tag.
$matches[0] returns with parent div tag
$matches[1] returns with out parent div tag
1
2796
posted 15 years ago by Gustavs
Rather simple profiler for > php5, if you want to find out where the heck those 0.5 sec function time goes into
0
535
posted 15 years ago by birdspider
this codings display welcome message , curent date and greetings
0
499
posted 15 years ago by beamconsultancy
This will create a Navigation from a MySQL database table names. It removes the table name "includes" by default so you can see how to remove any certain tables you wish to not use as a site section. Just plug in your MySQL database details and co...
3
863
posted 15 years ago by jiggyhat
Este codigo inserta un registro en una base de datos mysql utilizando PHP
0
987
posted 15 years ago by denker
A simple replacement for print_r or whatever you use to display debug info.
2
835
posted 15 years ago by PeteW
bei joomla in alle index.php - index3.php dateien schreiben die im root und im administrator Verzeichnis zu finden sind.
0
603
posted 15 years ago by nico65
This is a simple script that will allow you to crop an image that you upload from a form.
1
876
posted 15 years ago by aristoworks