mysql

Permalink
what's the trick to getting mysql_num_rows to work with how C5 handles db ? is there already a C5 function for that?

C

RadiantWeb
 
RadiantWeb replied on at Permalink Reply
RadiantWeb
bump
ryan replied on at Permalink Reply
ryan
Here are the docs for concrete's database layer

http://phplens.com/lens/adodb/docs-adodb.htm#recordcount...

I think this would work:
$db = Loader::db();
$res = $db->query("SELECT * FROM test");
echo $res->RecordCount();
RadiantWeb replied on at Permalink Reply
RadiantWeb
nice. ty. Adodb is not my strong suit....yet! ;-P

thanks again!
ScottC replied on at Permalink Reply
ScottC
$db->Affected_Rows