|
|
|
<?php
function makeSQLList($array) {
if (is_Array($array)) {
reset($array);
unset($SQL);
while (list(,$item)=each($array)) {
if (is_String($item)) {
$SQL[] = "'" . addslashes($item) . "'";
} else {
$SQL[] = $item;
}
}
$sql = "(" . implode($SQL, ", ") . ")";
} else {
$sql = false;
}
return $sql;
}
?> |
|
| columned txt file to array()? Categories : Arrays, Strings, Regexps, PHP | | | How to ifconfig down/up a list of IP's Categories : Arrays, Strings, Filesystem, PHP | | | Grab images from one or more URLs and save them to a specified local directory. Categories : PHP, Filesystem, Strings, Arrays | | | Variable serialization and unserialization. Loading and saving variable structures
to and from file. Categories : Arrays, Filesystem, Variables, Strings, PHP | | | Compare two texts and display a block of text with the differences between them. Categories : PHP, PHP Classes, Filesystem, Strings, Arrays | | | Function to create a separated list Categories : PHP, Arrays, Strings | | | WWW interface to Unix Manual(phpMan)
Categories : Program Execution, Strings, Arrays, PHP | | | Get TemplateMonster data Categories : Arrays, Ecommerce, PHP, Strings | | | How to Get a character array from a string Categories : PHP, Strings, Arrays | | | Can the word DO be used in arrays? Categories : Arrays, PHP, Strings | | | clearing variables in php3 Categories : Variables, Arrays, PHP | | | Avoiding or Detecting high bit characters in a string. Useful when you want to create a valid RSS feed Categories : PHP, Strings, Unicode, Regexps, Rich Site Summary (RSS) | | | Select with current month Categories : PHP, HTML and PHP, Date Time, Arrays | | | This functions makes it easy to use session-variables known from ASP. With one Cookie the array "session" will save and restore from a db-record. In this version MySQL is used but it's should very easy to change Categories : PHP, Arrays, Cookies, MySQL, Databases | | | Using data from a string. Categories : PHP, Strings, CURL | |
|
|
|