Profile
Achievement


lmcdougall's Recent Snippets
- All /
« Prev 1 Next »
Ej:
$ziper = new zipfile();
$filename1 = 'images/imagen1.jpg';
$filename2 = 'images/imagen2.jpg';
$fileZip = 'images/imagen.zip';
$ziper->addFile(file_get_contents($filename1),$filename1);
$ziper->addFile(file_get_contents($filename2),$filename...
22
5298
posted 17 years ago by lmcdougall
A quick and simple way to search a MySQL database. Example: mysql_search('items', 'title tags', isset($_GET['q'])?$_GET['q']:'', Array('columns'=>'*', 'method'=>'OR', 'extra_sql'=>'AND active = "true" ORDER BY id DESC'));
5
1148
posted 17 years ago by lmcdougall