Похожие чаты

$Id = (isset($_GET['id']) ? $_GET['id'] : ''); error_reporting(0); // Fetech user data

based on id
$result = mysqli_query($connection, "SELECT * FROM student WHERE id=$id");

while($user_data = mysqli_fetch_assoc($result))
{
$username = $user_data['username'];
$User_email = $user_data['email'];
$user_phone = $user_data['phnnum'];
$user_address = $user_data['address'];
}
?>

3 ответов

7 просмотров
SJA- Автор вопроса

Guys that's the code for setting the fields with user data when the edit button is clicked but unfortunately it doesn't work

Well whats the issue you are having with this exactly?

also you don't need the while loop for this.

Похожие вопросы

Обсуждают сегодня

Hi everyone! I have a two-folded message to share today. First: updates and news, as we are being asked for those. We still want to go like we did the last 6 years: we w...
Marten | Unibright.io
31
Oh.... Admins at the main TG is already muted me. How many months Sir you muted me? Or forever if you are here @Janevietani @JohnnySonic
Charles Dar
28
Скажите, можно ли как-то "переместить" динамический массив из одной переменной в другую? Скажем, переместить из TList<> в TArray<>. Именно переместить, а не скопировать. Если ...
Eugene Krasnikov (ᴊɪɴ x)
37
комрады, че-та лыжы не едут var tmpFont: TFont; begin tmpFont:= TFont.Create; try case rgFontColor.ItemIndex of 0: tmpFont.Color:= clWindowText; 1: tmpFo...
Ed Doc
34
.model small .stack 100h .data a db 'Hello, World!', '$' ; исходная строка b db 20 dup(?) ; строка b с запасом на максимальную длину .code main: ...
Алексей -man
3
вопрос, кого посмотреть в ютубе или где почитать про указатели чтобы раз и навсегда запомнить зачем они нужны и как правильно ими пользоваться? поделитесь хорошими ресурсами, ...
-
14
М-да. Почему бы просто со stringlist не работать?
Michael Longneck
23
Интересно, нет ли какого-то способа получить из dll не адрес самой метки, а адрес со смещением?
The Bird of Hermes
54
Редактор листа Excel, по сути двумерный массив ячеек. Ячейка - это экземпляр класса, у нее всякие свойства, методы. Проблема в том, что количество используемых строк и колоно...
Sergey Bodrov
2
in one table i have two columns one is unique and another is duplicate. unique always unique and duplicate is that maybe has duplicate and may be not. now i want get Duplicat...
Mr Thieves
2
Карта сайта