note 14436 deleted from function.pg-exec.php by ronabop

From: Date: Sat, 11 Aug 2001 21:30:59 +0000
Subject: note 14436 deleted from function.pg-exec.php by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-16586@lists.php.net to get a copy of this message
function sql_exec($resDB,$strSQL) { ..ob_start(); // output buffer ..$r = pq_exec($resDB,$strSQL); ..if (($ob_len = ob_get_length()) > 0) $ob_val = ob_get_contents(); ..ob_end_clean(); ..if ($ob_len > 0) ..{ ....elnx('<SCRIPT LANGUAGE="JavaScript">', '<!--', ' window.alert("' . ereg_replace( ':[ ]+', ':n', ereg_replace("n|[<][/]?[A-Za-z]+[>]", '', AddSlashes($ob_val))) . '")', '//-->', '</SCRIPT>'); ..} ..return $r; } function elnx() { ..$a_args = func_get_args(); ..foreach($a_args as $v) echo $v, "n"; }

« previous php.notes (#16586) next »