Hi!
I´ve got a problem with my apli coding.😕
The next function is inside a mysql connection class.
- dbQryResult is the query id, which is an array result after making a mysql_fetch_array() function in the DB;
- dbResultCol would be the first column of the multidimensional array.
Now, the first echo show correctly values, but the second show nothing. I need to return an unvoid result. Anybody could help me, please?🙁
function get_first_col() {
$i = 0;
mysql_data_seek($this->dbQryResult, 0);
while (($fila = mysql_fetch_row($this->dbQryResult)) != "") {
$this->dbResultCol = $fila[0];
echo "<br> Col[".$i."]= ".$this->dbResultCol;
$i++;
}
for ($n=0; $n <= $i; $n++) {
echo "<br> ColResult[".$n."]= ".$this->dbResultCol[n];
}
return $this->dbResultCol;
}