Error
Call to undefined function mysql_query() Error thrown with message "Call to undefined function mysql_query()" Stacktrace: #1 Error in /opt/bitnami/apps/todaysprint/htdocs/blogg/app/view/user/forum.html:12 #0 include in /opt/bitnami/apps/todaysprint/htdocs/forum.php:9
Stack frames (2)
1
Error
/
blogg
/
app
/
view
/
user
/
forum.html
12
0
include
/
forum.php
9
/
opt
/
bitnami
/
apps
/
todaysprint
/
htdocs
/
blogg
/
app
/
view
/
user
/
forum.html
<body>
    <div class="container">
    <div class="row">
    <div class="col-md-8">
 
    
     
        <table border="0" cellpadding="0" cellspacing="0">
            <?php
            $subject_str = str_replace("-", " ", stripslashes($_GET[ch_id]));
            $sql_subject = "SELECT * FROM $tbl_subject_master WHERE name='$subject_str' AND sub_type ='question'";
            $query_subject = mysql_query($sql_subject);
            $result_subject = mysql_fetch_array($query_subject);
            
            $sql_paper = "SELECT * FROM $tbl_paper_master WHERE id='$result_subject[paper_id]'";
            $query_paper = mysql_query($sql_paper);
            $result_paper = mysql_fetch_array($query_paper);
            
            $paper_str = str_replace("-", " ", stripslashes($result_paper[name]));
            
            $sql_head_chapter = "SELECT * FROM $tbl_chapter WHERE name='$chapter_str'";
            $query_head_chapter = mysql_query($sql_head_chapter);
            $result_head_chapter = mysql_fetch_array($query_head_chapter);
            ?>
             
            <tr>
                <td>
                    <div class="separater_div"></div>
                     
                </td>
            </tr>
            <?php
            if($_GET[formula] == "")
            {
                ?>
                <tr>
                    <td>
                        <?php
                            $slno = "1";
                            if($_GET['chquestion_id'] != "")
/
opt
/
bitnami
/
apps
/
todaysprint
/
htdocs
/
forum.php
<?php
    include ("app/model/configuration.php");
//echo $_GET[ch_id].'<br>';    
    //$paper_str1 = str_replace("-", " ", stripslashes($_GET[p_id]));    
    //$metakeydesc_onfield = "subject_name";
    //$metakeydesc_value = stripslashes($subject_str);    
    
    include("blogg/app/view/layouts/header_user_forum.html");
    include("blogg/app/view/user/forum.html");
    include("blogg/app/view/layouts/footer_user.html");
?>

Environment & details:

Key Value
chquestion_id 329
p_id 82
empty
empty
empty
Key Value
_token 966da88ecdfe0872ef8c81fea8b568d1
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 Thu, 27 Jun 2019 06:15:50 PDT
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 59424
REMOTE_ADDR 3.227.233.55
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 /forum.php
REQUEST_URI /forum/329/82.html
SCRIPT_NAME /forum.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING chquestion_id=329&p_id=82
SCRIPT_FILENAME /opt/bitnami/apps/todaysprint/htdocs/forum.php
FCGI_ROLE RESPONDER
PHP_SELF /forum.php
REQUEST_TIME_FLOAT 1568764013.7206
REQUEST_TIME 1568764013
empty
0. Whoops\Handler\PrettyPageHandler