1

Topic: Output of the table of Oracle DB through the form - PHP

Hello, faced a problem by operation with . In general it would be necessary for me that at input in the form of a table title (and pushings on submit) were deduced the data of this table.
Here the code:

<form id = "left" action = "tables.php" method = "post">
Name: <input type = "text" name = "table"/>
<input type = "submit" name = "submit" value = "a table Name"/>
</form>
<? php
if (isset ($ _POST [' table '])) {$table = $ _POST [' table '];}
if ($table == ") {unset ($table);}
$sql = "select * from. $table";
$res = OCIParse ($conn, $sql);
oci_execute ($res);

It should work for mysql, but here oci_execute () swears on an invalid name, in advance I thank for the help)

2

Re: Output of the table of Oracle DB through the form - PHP

Let's wait for telepathists.

3

Re: Output of the table of Oracle DB through the form - PHP

MirGraf;
Swears as was specific?

$sql = "select * from $table";

If to remove a point from a line of request how I made - abuse proceeds?
P.S. And what will be, if in a label to steam of hundreds millions lines?

4

Re: Output of the table of Oracle DB through the form - PHP

Yes already in a branch  answered.