I am writing a plugin, I did everything I needed.
global $wpdb; $myrows = $wpdb->get_results( "SELECT id, url FROM wp_jslider" ); $rowcount = $wpdb->num_rows; if ($rowcount==0) { echo 'No images, please upload'; } else { for ($i=0; $i < $rowcount; $i++) { echo '<div name="id_'.$myrows[$i]->id.'" class=""><img src="'.$myrows[$i]->url.'" width="100" height="50"><a name="del_'.$myrows[$i]->id.'" href="">x</a></div>'; } } But I can not delete a specific photo. Can anyone help? And tell me, I did everything right during the sampling, but I would not want to violate security
delete. By the way,globalis a vile evil and very real bad practics - rjhdbywordpresstag, please - vp_arth