Answer the question
In order to leave comments, you need to log in
Oci_execute, like and variables in the request, where is the error?
There is this form:
<input type="text" name="searchdata" size="40" autocomplete="off" placeholder="ospk_id" />
<select required name="EN">
<option value="DATA">Дата</option>
<option value="RANDOM">Случайное значение</option>
<option value="SERIA">Серия</option>
</select>
<input type="submit" value="ПОИСК"/> <br>
$selector=$_POST['EN'];
$gets='%'.$_POST['searchdata'].'%';
$row2 = oci_parse($conn, "select * from FOR_SEARCH where :sel LIKE :search");
oci_bind_by_name($row2,':search', $gets);
oci_bind_by_name($row2,':sel', $selector);
oci_execute($row2, OCI_DEFAULT);
while ($get_result2 = oci_fetch_assoc($row2)){
$result2=$get_result2;
*тут вывод данных из массива в таблицу*}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question