INFORMX: Example-script

wxdqz

New Member
Perhaps it will help some of your folks :-)

For questions: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->


<head>
<title>Absetzen von SQL-Statements</title>
</head>

<body background="images/Bg_Wind.gif">

<font color="#6666FF">

<h3>Absetzen von SQL-Statements</h3>


<SCRIPT Language="JavaScript">
alert("WARNUNG: Sie arbeiten auf einem Prodkutiv-System. Bitte seien Sie mit UPDATE und DELETE Statements vorsichtig.")
</SCRIPT>


<FORM ACTION="sql.php" METHOD="post">
<table width="100%">
<tr>
<td>
<font color="#6666FF">
Datenbank (auf RMAMT165 bzw. doamt165): <br>
<input type="text" name="db" size="20" maxlength="20">
</font>
</td>
<td>
<font color="#6666FF">
Passwort f黵 User 'informix': <br>
<input type="password" name="pw" size="20" maxlength="20">
</font>
</td>
</tr>
</table>
<p>
SQL-Statement: <br>
<textarea name="SQL" rows="10" cols="100">Select</textarea>
</p>
<p>
<input type="submit" name="Submit" value=http://www.phpbuilder.com/board/archive/index.php/"Abschicken">
</p>
</FORM>

</font>

</body>



<?
$connect = ifx_connect("$db@ids","informix", $pw);
$result = ifx_query($SQL, $connect);

ifx_htmltbl_result($result, "border=1");
ifx_free_result($result);
?>
 
Back
Top