我正在使用PHP中的功能,其中有很多用户可以看到的照片,现在用户可以选择一些照片并单击名为proceed的按钮。显示所选图像
问题: -
我的问题是,继续点击按钮后,下一个屏幕选择的照片应该被看作选定的照片上。
我该如何解决这个问题?如果你给我一些代码的例子,这将会很有帮助。
这里是代码我使用的选择图像,
$instagram_url = 'https://api.instagram.com/v1/users/self/media/recent?access_token=297947523.32f60ec&count=-1';
$instagram_json = file_get_contents($instagram_url);
$instagram_array = json_decode($instagram_json,true);
if(!empty($instagram_array)){
foreach($instagram_array['data'] as $image){
echo'<input id="imageId" type="image" src="'.$image['images']['low_resolution']['url'].'" onclick="mark(this)" hspace="20" vspace="20"/>';
}
我想用数组做。
是你所得到的IMGS被存储在数据库中? – Laith
@Laith,Nope,它会有帮助,如果它与数组完成,我也加入这个问题。 –
编辑问题@Laith –