User Profile
Collapse
-
Thank you. The sorting works -
I have dates in the datebase so that I think could be the sort condition. But how to add sorting to the code?Leave a comment:
-
How to show only the last row of database table
Hey. I'm new to php so this question may be very easy but still... I wrote a code for connecting to a database and show all of its records but I only need the last row, can someone please tell me what to add instead of the function 'foreach'. Here's the code:
...Code:<?php $wpdb = new wpdb('username','password','database_name','localhost'); $result = $wpdb->get_results( "SELECT * FROM koridorius ");
No activity results to display
Show More
Leave a comment: