Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: application/json');
- require('config.php');
- if(isset($_GET['placeid'])){
- $placeid = htmlspecialchars($_GET['placeid'], ENT_QUOTES);
- $sql =mysqli_query($db,"select * from workshops, promotions, subscription WHERE workshops.google_place_id='$placeid' AND is_published=1 AND date(subscription_end_on) >= date(now()) AND workshops.id=subscription.workshop_id");
- if(mysql_num_rows($sql) > 0 ) {
- }else {
- return json_encode(['message' => 'invalid','data' => 'tiada']);
- }
- }
- else{
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement