Sample one. with $in';if($usrdata['user_level'] == 2){ echo '<div style="float: right; vertical-align: top; padding-right: 20px;"> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=edit&ID='.$in[ID].'\' onclick="return confirm(\'Are you sure you want to edit the game '.$in['name'].'?\')"><img src=\''.$domain.'/templates/'.$template.'/images/icons/icon-editbtn.png\' title=\'edit game\' alt=\'edit game\' border=\'0\' /></a> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=delete&ID='.$in[ID].'\' onclick="return confirm(\'Are you sure you want to delete the game '.$in['name'].'?\')"><img src=\''.$domain.'/templates/'.$template.'/images/icons/icon-deletebtn.png\' title=\'delete game\' alt=\'delete game\' border=\'0\' /></a></div>';}echo '____________________________________________________Sample 2. with $row';if($usrdata['user_level'] == 2){ echo '<div style="float: right; vertical-align: top; padding-right: 20px;"> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=edit&ID='.$row[ID].'\' onclick="return confirm(\'Are you sure you want to edit the game '.$row['name'].'?\')"><img src=\''.$domain.'/templates/'.$template.'/images/icons/icon-editbtn.png\' title=\'edit game\' alt=\'edit game\' border=\'0\' /></a> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=delete&ID='.$row[ID].'\' onclick="return confirm(\'Are you sure you want to delete the game '.$row['name'].'?\')"><img src=\''.$domain.'/templates/'.$template.'/images/icons/icon-deletebtn.png\' title=\'delete game\' alt=\'delete game\' border=\'0\' /></a></div>';}echo '___________________________________________________Play.php';if($usrdata['user_level'] == 2){ echo '<div style="float: right; vertical-align: top; padding-right: 20px;"> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=edit&ID='.$r[ID].'\' onclick="return confirm(\'Are you sure you want to edit the game '.$r['name'].'?\')"><img src=\''.$domain.'/templates/'.$template.'/images/icons/icon-editbtn.png\' title=\'edit game\' alt=\'edit game\' border=\'0\' /></a> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=delete&ID='.$r[ID].'\' onclick="return confirm(\'Are you sure you want to delete the game '.$r['name'].'?\')"><img src=\''.$domain.'/templates/'.$template.'/images/icons/icon-deletebtn.png\' title=\'delete game\' alt=\'delete game\' border=\'0\' /></a></div><br />'.$r['description'].'';}echo '
This is also something needed. Thanks!
Sample one. with $in';if($usrdata['user_level'] == 2){ echo '<div style="float: right; vertical-align: top; padding-right: 20px;"> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=edit&ID='.$in[ID].'\' onclick="return confirm(\'Are you sure you want to edit the game '.$in['name'].'?\')"><img src=\''.$domain.'/'.$directorypath.'/templates/'.$template.'/images/icons/icon-editbtn.png\' title=\'edit game\' alt=\'edit game\' border=\'0\' /></a> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=delete&ID='.$in[ID].'\' onclick="return confirm(\'Are you sure you want to delete the game '.$in['name'].'?\')"><img src=\''.$domain.'/'.$directorypath.'/templates/'.$template.'/images/icons/icon-deletebtn.png\' title=\'delete game\' alt=\'delete game\' border=\'0\' /></a></div>';}echo '____________________________________________________Sample 2. with $row';if($usrdata['user_level'] == 2){ echo '<div style="float: right; vertical-align: top; padding-right: 20px;"> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=edit&ID='.$row[ID].'\' onclick="return confirm(\'Are you sure you want to edit the game '.$row['name'].'?\')"><img src=\''.$domain.'/'.$directorypath.'/templates/'.$template.'/images/icons/icon-editbtn.png\' title=\'edit game\' alt=\'edit game\' border=\'0\' /></a> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=delete&ID='.$row[ID].'\' onclick="return confirm(\'Are you sure you want to delete the game '.$row['name'].'?\')"><img src=\''.$domain.'/'.$directorypath.'/templates/'.$template.'/images/icons/icon-deletebtn.png\' title=\'delete game\' alt=\'delete game\' border=\'0\' /></a></div>';}echo '___________________________________________________Play.php';if($usrdata['user_level'] == 2){ echo '<div style="float: right; vertical-align: top; padding-right: 20px;"> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=edit&ID='.$r[ID].'\' onclick="return confirm(\'Are you sure you want to edit the game '.$r['name'].'?\')"><img src=\''.$domain.'/'.$directorypath.'/templates/'.$template.'/images/icons/icon-editbtn.png\' title=\'edit game\' alt=\'edit game\' border=\'0\' /></a> <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=delete&ID='.$r[ID].'\' onclick="return confirm(\'Are you sure you want to delete the game '.$r['name'].'?\')"><img src=\''.$domain.'/'.$directorypath.'/templates/'.$template.'/images/icons/icon-deletebtn.png\' title=\'delete game\' alt=\'delete game\' border=\'0\' /></a></div><br />'.$r['description'].'';}echo '
wait, why $directorypath in a url?It should just be $domain/index.php?action=blahblahblah...
Update the code in the first post if you could, thanks!