/ Published in: PHP
                    
                                        To use:
$update_sql = querys($sql);
or
$select_sql = getresult($sql);
Used simplify selecting rows from a database. You'll need to pass in the SQL statement.
                $update_sql = querys($sql);
or
$select_sql = getresult($sql);
Used simplify selecting rows from a database. You'll need to pass in the SQL statement.
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 /*FUNCTION: querys *PURPOSE: querys the database *RETURNS: $rs - result set */ function querys($sql){ return $rs; } /*FUNCTION: get result *PURPOSE: querys the database, adds to assicoative array *REUTRNS: $data - assocative array */ function getresult($sql){ return $data; }
URL: linkdeo.net
Comments
                    Subscribe to comments
                
                