I tested the array part. But I am stuck in the array id.
I print_r your array and this is what i get:
Array ( [1] => q1 [2A] => q2 a [2B] => q2 b [3] => q3 [4] => q4 mult )
This is my print_r:
Array ( [0] => Do you like our signature Noodles? [1] => If No,Why? [2] => Do you love our food? [3] => What caused you enter to our caf�? [4] => Why have you decided to not dine in our caf�? [5] => What did you like most about our food? [6] => What did you dislike most about our food? [7] => Which caf� you prefer to go other than us? [8] => Do you have any further comments? [9] => Would you consider returning to our caf� in next 2 weeks? )
here is my source code:
$sql2 = "SELECT DISTINCT [question_id],q_text
FROM [RSA].[dbo].[feedbug]
ORDER BY [question_id]";
$ques = array();
$stmt2 = sqlsrv_query($conn, $sql2, $ques);
while ($row = sqlsrv_fetch_array($stmt2, SQLSRV_FETCH_ASSOC)) {
$ques[] = $row['q_text'];
}
print_r($ques);
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.