query($q); $d = mysqli_fetch_array($r); ?>

query($q2); while($d2 = mysqli_fetch_array($r2)){ echo ""; } ?>
$d2[petition_name]