Update of /cvsroot/phpmp/phpMP/dba
In directory sc8-pr-cvs1:/tmp/cvs-serv25309/dba
Modified Files:
mysql.dba
Log Message:
Working on the sessions/auth/user script.
Tevlik gave me some great ideas.
It's still going through a process, but give it a once-over and let me know what you think. I may have missed a few things...don't know for sure.
Index: mysql.dba
===================================================================
RCS file: /cvsroot/phpmp/phpMP/dba/mysql.dba,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** mysql.dba 31 Jan 2003 07:07:54 -0000 1.21
--- mysql.dba 22 Apr 2003 10:50:51 -0000 1.22
***************
*** 129,132 ****
--- 129,146 ----
return @mysql_fetch_array($query);
}
+
+ function fetchAssoc($query)
+ {
+ if($this->ident_link == 0)
+ {
+ $db = $this->connect();
+ }
+ else
+ {
+ $db = $this->ident_link;
+ }
+
+ return @mysql_fetch_assoc($query);
+ }
function fetchRow($query)
***************
*** 157,173 ****
return @mysql_affected_rows($db);
}
-
- function escapeString($string) {
- if( stripslashes($string) == $string ) // Will be true if no slashes were removed.
- {
- addslashes($string); // We'll add the slashes because they haven't already been added.
- return true;
- }
- else // Slashes have already been added (hopefully only once).
- {
- return true;
- }
- }
-
}
--- 171,174 ----
|