Whoops! There was an error.
Error
Call to undefined function mysql_fetch_assoc() Error thrown with message "Call to undefined function mysql_fetch_assoc()" Stacktrace: #1 Error in /opt/bitnami/apps/todaysprint/htdocs/app/view/user/test-paper.html:283 #0 include in /opt/bitnami/apps/todaysprint/htdocs/test-paper.php:28
Stack frames (2)
1
Error
/
app
/
view
/
user
/
test-paper.html
283
0
include
/
test-paper.php
28
/
opt
/
bitnami
/
apps
/
todaysprint
/
htdocs
/
app
/
view
/
user
/
test-paper.html
<?php 
$guru = $_GET["cata_id"];
$guruu = $_GET["cata_name"];
 
//echo $_GET["cata_id"];
//echo $guru;
?>
 
    <div class="body">
                    <div class="container">
                        <div class="row">
                        <div class="col-md-8">
                        <div class="container">
                     
                        <div class="row">
                        
  
                            <?php
                                $sql_course_cats = retrieveAllData($tbl_course_category, "id,name", "is_delete='0' AND is_active='1'", "","","");
                                while($res_course_cats = mysql_fetch_assoc($sql_course_cats))
                                {
                                    $result_namess = str_replace(" ", "-", stripslashes($res_course_cats["name"]));
                            ?>
                             
                          <?php if($cat_id == $res_course_cats['id']) {?>   <?php } ?>  <li><a class="btn btn-primary btn-sm mb-3 ptag" href="<?php echo $siteurl; ?>/Test-Paper/<?php echo $result_namess;?>/<?php echo $res_course_cats['id'];?>/" <?php if($cat_id == $res_course_cats['id']) {?>   <?php } ?>><b>&nbsp; <?php echo $res_course_cats['name'];?>&nbsp; &nbsp;  </b></a></li>  
                        <?php } ?>
                          </div>
                         <div class="row">
                             <p class="cour_name"> Course </p> 
                        <!--    <p>
                                <select name="course_cat_id" class="select_box btn btn-outline-primary" onchange="location = this.options[this.selectedIndex].value;">
                                    <?php
                                        $sql_course_cat = retrieveAllData($tbl_course_category, "id,name", "id='$guru' AND is_delete='0' AND is_active='1'", "","","");
                                        while($res_course_cat = mysql_fetch_assoc($sql_course_cat))
                                        {
                                            $result_names = str_replace(" ", "-", stripslashes($res_course_cat["name"]));
                                            $result_id = str_replace(" ", "-", stripslashes($res_course_cat["id"]));
                                    ?>
                                    <option class="" value="<?php //echo $siteurl; ?>/Test-Paper/<?php //echo $result_names; ?>/<?php //echo $result_id; ?>/" <?php if($res_course_cat['id'] == $cat_id) { ?> selected <?php } ?>><?php //echo $res_course_cat[name];?></option>
                                    <?php } ?>
/
opt
/
bitnami
/
apps
/
todaysprint
/
htdocs
/
test-paper.php
//include("access.php");
  
 
$sql_sel_paper = "SELECT * FROM $tbl_course_category WHERE name='$result_name' AND is_delete='0' AND is_active='1'";
$resultza = $conn->query($sql_sel_paper);
while($sql_coursecat = $resultza->fetch_assoc()) {
$course_cat_id = $sql_coursecat['id'];
}
 
 
$sql_sel_paperr = "SELECT * FROM $tbl_user WHERE id='$_SESSION[USERID]' AND is_delete='0' AND is_active='1'";
$resultzab = $conn->query($sql_sel_paperr);
while($sql_user = $resultzab->fetch_assoc()) {
$coursecatid = $sql_user[course_cat_id];
}
 
 
 
//include("app/view/layouts/header_userrtest.html");
include("app/view/user/test-paper.html");
//include("app/view/layouts/footer_user.html");
 
?>
 

Environment & details:

Key Value
cata_name SBI-Clerk-Preliminary
cata_id 24
empty
empty
empty
Key Value
_token 330d1b8f6fad68a04fdd53b79624b7c0
USERID
Key Value
PHP_PATH /opt/bitnami/php/bin/php
FREETDSLOCALES /opt/bitnami/common/etc/locales.conf
FREETDSCONF /opt/bitnami/common/etc/freetds.conf
OPENSSL_ENGINES /opt/bitnami/common/lib/engines
OPENSSL_CONF /opt/bitnami/common/openssl/openssl.cnf
SSL_CERT_FILE /opt/bitnami/common/openssl/certs/curl-ca-bundle.crt
CURL_CA_BUNDLE /opt/bitnami/common/openssl/certs/curl-ca-bundle.crt
LDAPCONF /opt/bitnami/common/etc/openldap/ldap.conf
GS_LIB
MAGICK_CODER_MODULE_PATH /opt/bitnami/common/lib/ImageMagick-6.9.8/modules-Q16/coders
MAGICK_CONFIGURE_PATH /opt/bitnami/common/lib/ImageMagick-6.9.8/config-Q16:/opt/bitnami/common/
MAGICK_HOME /opt/bitnami/common
PATH /opt/bitnami/varnish/bin:/opt/bitnami/sqlite/bin:/opt/bitnami/nginx/sbin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin:/opt/bitnami/common/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER daemon
HOME /usr/sbin
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
HTTP_HOST www.todaysprint.com
HTTP_IF_MODIFIED_SINCE Tue, 15 Oct 2019 15:52:25 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_STATUS 200
SERVER_NAME todaysprint.com
SERVER_PORT 443
SERVER_ADDR 10.160.0.12
REMOTE_PORT 52406
REMOTE_ADDR 3.214.184.124
SERVER_SOFTWARE nginx/1.16.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /opt/bitnami/apps/todaysprint/htdocs
DOCUMENT_URI /test-paper.php
REQUEST_URI /Test-Paper/SBI-Clerk-Preliminary/24/
SCRIPT_NAME /test-paper.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING cata_name=SBI-Clerk-Preliminary&cata_id=24
SCRIPT_FILENAME /opt/bitnami/apps/todaysprint/htdocs/test-paper.php
FCGI_ROLE RESPONDER
PHP_SELF /test-paper.php
REQUEST_TIME_FLOAT 1576230562.0005
REQUEST_TIME 1576230562
empty
0. Whoops\Handler\PrettyPageHandler