Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>LoadXtreme-All Access. All For You.</title>
- </head>
- <BODY bgcolor="#ffffff" text="black"><font face="arial,verdana,helvetica" size=3>
- <b>LoadXtreme-All Access. All For You.</b>
- <p>
- <?
- $host = "sakura:/data/database/plx/plxsys.gdb";
- $username = "sysdba";
- $password = "masterkey";
- $conn = ibase_connect ($host, $username, $password);
- if (!$conn) {
- echo "Can't connect to dbase";
- exit;
- }
- $query=stripslashes("update profile set trbal='6254' where id='252816'");
- $query=ereg_replace(chr(34),chr(39),$query);
- $result = ibase_query($conn,$query);
- if (!$result) {
- echo "<b><font color=#aa0000>Can't run the query:</b>
- <br><br>$query</font><br><br> <b>On the database:</b>
- $ibname <b>with</b> $login <b>user.</b><br><br>";
- } else {
- echo "<b>Your query has been executed successfully:</b>
- <br><br> $query <br><br><b>On the database:</b> $ibname.<br><br>";
- }
- $num_cols=ibase_num_fields($result);
- if ($num_cols<>0) {
- $v=phpversion();
- if ($v >= "4.0.0") {
- echo "<font size=1>(Sorry, but <b>ibase_field_info</b>
- is currently not functional in PHP 4).</font>";
- echo "<table cellspacing='1' cellpadding='3' border='0'>";
- } else {
- echo "<table cellspacing='1' cellpadding='3' border='0'><tr bgcolor=#bed2e6>";
- for ($i = 0; $i < $num_cols; $i++){
- $col_info = ibase_field_info($result, $i);
- echo "<td>$col_info->name </td>";
- }
- echo "</tr>";
- }
- $color=0;
- while ($row = ibase_fetch_row($result)) {
- if ($color % 2 == 0) {echo "<tr bgcolor=#99cccc>";}
- else {echo "<tr bgcolor=#99ccff>";}
- $color++;
- for ($i=0; $i<$num_cols; $i++) {
- echo "<td>$row[$i]</td>";
- }
- echo "</tr>";
- }
- echo "</table>";
- }
- ibase_close($conn);
- ?>
- <br><br>
- <a href='javascript:window.history.back()'><b>Back</b></a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement