• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

How do I make a prepared statement for simple view?

Do you need a prepared statement for simple view like displaying list of data? I'm trying to make a simple view that when user click the view button it will display the list of the information. User don't have to insert any information. So I was wondering do you need to make a prepared statement for this kind of view?

<?php
require_once "db.php";
require_once "session.php";

 $sql = "SELECT `no_usr`, `men_id`, `type`, `title`, `bass_name`,`men_status`
 FROM `men_info`";
 $query = mysqli_query($link,$sql);

?>
 

If I need to make a prepared statement how do reconstrat the query above into a prepared statement?

php