hi,
trying to figure out how i would display “no data” in cases which there is no variable value…
for example..
[CODE] while (odbc_fetch_row($rsFAC)) { echo $NAME; } [/CODE]
thanks in advance, geebee
[code=php]if (odbc_num_rows($rsFAC) > 0) { while (odbc_fetch_row($rsFAC)) { echo $NAME; } } else { echo 'No data'; }[/code]
Help @geebee spread the word by sharing this article on Twitter...