Functions
WebDev/*nix assorted functions & hacks
Search
find all
Array
-
Bash
-
Classes
-
Config
-
DateTime
-
Debug
-
dotjs
-
File
-
foooo
-
Git
-
HTML
-
Images
-
Javascript
-
Linux
-
Math
-
Misc
-
MySQL
-
OS X
-
Reading
-
Redis
-
Shell scripts
-
snippets
-
SQL
-
Strings
-
TextMate
-
Web
-
\(^o^)/ Fun!
-
_Misc hacks
-
_Pages
MySQL
fetch_field(), fetch_row(), fetch_rows(), mres()
query($sql)
Unicode
Unicode configuration
You forgot your MySQL root password AGAIN
5
found
auth
Name:
Category: MySQL
Body:
/** * ### OUTDATED ### **/ // mysql query but with logging. writelog needs be defined. //_________________________ // query($sql, $log=true) / function query($sql, $log=true) { $res = mysql_query($sql); // update, delete, insert. doesn't return insert_id (yet) if ($err = mysql_error()) { writelog("$err:\n$sql", 1); } return $res; } // ps. wtf?
Footer