How to get row data
-
This is what I have so far:
$myrows = $wpdb->get_results(‘SELECT * FROM wp_cars’,ARRAY_A);
//var_dump($myrows);Using mysql would look like this:
while ($row = mysql_fetch_row($myrows)){
echo “$row[1] $row[2]” etc.
This is how it looks using mysql: http://www.joomlawebsitesbyjim.com/wordpress/sample-used-car-dealer/How do I duplicate this using wpdb?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘How to get row data’ is closed to new replies.