Jump to content

dusoo

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dusoo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi guys, could you please help me to populate one array with data from oracle table column? And later i would like to match one string with that array //query: $mquery= "select column from TMP_TAB where keycol=asdf"; //parse query $conn->query($mquery,true); $rows = $conn->row_cnt(); echo "$rows"; //Works for me until here. //I have tried to use following lines from one script, but could not get it working to populate my array... //Maybe it is even not needed for my case. for($lj=0; $lj < $rows; $lj++) { //$my_array[???] = $conn->data($lj,0); } //here i would like to match one string with that array - in_array is good for that? //Because i dont want to go through that array again in loop if possible. if (in_array($my_string,$my_array)) { echo "more code will come here"; } Thanks guys, sorry for my simple knowledge of PHP. ...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.