Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
So I've been reading posts about this same issue for some time now and came to no conclusion.
I developed a website on php 7 on windows , everything was working correctly on localhost with php built-in server so I assumed , great let's put it on the server only problem is that either
this line get's completely ignored on my index.php
Here's whats inside get_yards.php.
and if I ignore this 'middle-man' I get a
here's whats inside get_yards2.php
array( "Database"=>$dbName, "UID"=>$dbUser, "PWD"=>$dbPass); $conn = sqlsrv_connect( $dbHost, $connectionInfo); if( $conn === false ) { die( print_r( sqlsrv_errors(), true)); } $query = "SELECT YardId,Yard FROM YWBYard"; $params = array(); $options = array( "Scrollable" => SQLSRV_CURSOR_KEYSET ); $result = sqlsrv_query($conn, $query); if( $result === false){ if( ($errors = sqlsrv_errors() ) != null) { foreach( $errors as $error ) { echo "SQLSTATE: ".$error[ 'SQLSTATE'].""; echo "code: ".$error[ 'code']."
"; echo "message: ".$error[ 'message']."
"; } } } else { $numRows = sqlsrv_num_rows($result); while($row = sqlsrv_fetch_array($result)) { if($row['YardId']===1){ echo "
I'm open to trying anything at this point.
Here are the server error logs
so I tried using this instead
the same server error (GET 500 (INTERNAL SERVER ERROR))