Jump to content

php rad tools


drtanz

Recommended Posts

since php is open source a lot of prefabricated scripts are out there, the best way to make your life easy with php is to develop a function libarry that you can use that contains all your basic functions like many people take a basic update mysql query as a function and say

<?php
function update($table,$where,$data){
$q = "Update".$table."SET ";
foreach($data <= $key as $value){
$q .= $key." + ".$value;
}
$q .= " Where ";
foreach($where <= $key as $value){
$q .= $key." + ".$value;
}
mysql_query($q) or die(mysql_error());
}
?>

as an example.

Link to comment
https://forums.phpfreaks.com/topic/62260-php-rad-tools/#findComment-309879
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.