Skip to content

Tag: php

Check For Existing Table Using variable

I was wondering how to incorporate a variable into a PHP statement to check if a table exists. For some reason the query does not accept the variable. Here is what I have: Answer The statement needed a tilde around the variable. Here is the final statement: $query101 = “select 1 from `$id` LIMIT 1&#8221…

Laravel 502 Bad Gateway Error

I use Laravel 5.3 with the latest Homestead Setup. When I make a POST Request to my API, I get this error according to the log file: 2016/10/29 12:44:34 [error] 776#0: *28 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.10.1, server: loc.medifaktor, r…