javascript - Server error 500 in PHP -


so today have small little issue php, causing me server error. see, have javascript function:

 $.post('script.php', { limit: str }, function(result) {    console.log(result);   }); 

which of course makes call php file:

 require_once("../data/db-settings.php");  require_once("../data/file.php");  global $pdo;  $list = array();  $limit = $_post["limit"];  chop($limit, ";");  $stmt = $pdo->prepare("select cust_id, cust_addr project  " . $limit . " = cust_id");  $stmt->execute();  while ($row = $stmt->fetch(pdo::fetch_assoc)) {         $list[] = $row;     }         echo $list; 

the point of php grab information database user can dynamically change , use. issue, i'm assuming, how i'm using pdo, because code i'm using in working order in section. know function call sending data , working properly, because when check send, sends properly.

thanks guys.

it unobvious error! step step following : http://pcsupport.about.com/od/findbyerrormessage/a/500servererror.htm


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -