cvs: functable /lib dbconnect.php

[email protected] ("Hartmut Holzgraefe")
Newsgroups php.doc.web
Message-ID <cvshholzgra1125762912@cvsserver>
hholzgra		Sat Sep  3 11:55:12 2005 EDT

  Modified files:              
    /functable/lib	dbconnect.php 
  Log:
  added db_escape() function
  
  
http://cvs.php.net/diff.php/functable/lib/dbconnect.php?r1=1.3&r2=1.4&ty=u
Index: functable/lib/dbconnect.php
diff -u functable/lib/dbconnect.php:1.3 functable/lib/dbconnect.php:1.4
--- functable/lib/dbconnect.php:1.3	Sat Sep  3 11:34:54 2005
+++ functable/lib/dbconnect.php	Sat Sep  3 11:55:12 2005
@@ -27,6 +27,11 @@
 	return mysql_free_result($result) or die(mysql_error());
 }
 
+function db_escape($result)
+{
+	reutrn mysql_real_escape_string($result) or die(mysql_error());
+}
+
 function db_close()
 {
 	mysql_close();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.