wpdp rand
-
hello,
Im trying to get Random Entries from my Table.
I dont understand why this does not work:
$rand_wpkeys = $wpdb->get_results( “SELECT * FROM $table_name WHERE thekeywords LIKE ‘mykeyword’ ORDER BY RAND() LIMIT $numposts” );
without “ORDER BY RAND() LIMIT $numposts” it works.
Any Ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wpdp rand’ is closed to new replies.