Interviewer And Interviewee Guide

Junior Developer PHP Interview Question:

Tell me how to execute an sql query? How to fetch its result?

Submitted by: Muhammad
$my_qry = mysql_query("SELECT * FROM `users` WHERE `u_id`='1'; ");
$result = mysql_fetch_array($my_qry) or die ('Error: Unable to get data.');
echo $result['First_name'];
Submitted by: Muhammad

Read Online Junior Developer PHP Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.