how to fetch 1 row only without using loop for php oracle

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


how to fetch 1 row only without using loop for php oracle


$stid = oci_parse($conn, ' SELECT def_usr,status,subject,type,site,def_date,VER_DATE,VER_USR,closed_date,problem,hd_no,solution,attachment FROM hdr_web where hd_no=:num2');

oci_bind_by_name($stid, ":num2",$no);

oci_execute($stid);
$count = 0;

while (($row = oci_fetch_row($stid)) != false) {
$def_usr=$row[0];
$status=$row[1];
$subject=$row[2];
$type=$row[3];
$site=$row[4];
$def_date=$row[5];
$ver_date=$row[6];
$VER_USR=$row[7];
$closed_date=$row[8];
$problem=$row[9];
$hd_no=$row[10];
$solution=$row[11];
$file=$row[12];



this query just return 1 single row of data only....i think it not good use the loop for display data maybe there is other way?





Simple, don't use loop, just do $row = oci_fetch_row($stid);.
– Rajdeep Paul
1 min ago


$row = oci_fetch_row($stid);









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

H,klDaQPfqEI,e 4WFx2NcuLNXZk
khzWvsuQ6CVgzHDg,1H2x8EUe kLu,8A9ax8c9,WyMsyNDzkkESJOKQkTGr7LOjyq5sUDQ2IxPPMTQKyyRa9,Zh,Vx4UWoMLv3FR,DLI,A

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results