Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to get the id from the second row? (Mysql)

$data = $bbdb->query('stuff');
$what_you_want = $data[1]->column_name;

If I recall correctly.

$data[1] should be the second item (0-based arrays), which is an object. Access its property by the name of the column the ID is stored in. bbdb is based on ezSQL. Look for some documentation. It’s actually pretty well documented for wpdb; did you not find anything there?

Skip to toolbar