/[inncomm]/inc/fixsql.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /inc/fixsql.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Wed Nov 29 15:29:43 2000 UTC (23 years, 5 months ago) by dpavlin
Branch: DbP, MAIN
CVS Tags: r0, HEAD
Changes since 1.1: +0 -0 lines
first, semi-working version

1 <?
2
3 function fixsql($sql) {
4 $sql=ereg_replace(",([ \t\n\r]*),",",null\\1,",$sql);
5 $sql=ereg_replace(",([ \t\n\r]*),",",null\\1,",$sql);
6 $sql=ereg_replace(",([ \t\n\r]*),",",null\\1,",$sql);
7 $sql=ereg_replace(",([ \t\n\r]*)\)",",null\\1)",$sql);
8 $sql=ereg_replace("=([ \t\n\r,]+)","=null\\1",$sql);
9 $sql=ereg_replace("=([ \t\n\r,]*)$","=null\\1",$sql);
10 $sql=ereg_replace("\(([ \t\n\r]*),","(null\\1,",$sql);
11 return $sql;
12 }
13
14 ?>

  ViewVC Help
Powered by ViewVC 1.1.26