in Education by
I've been following this video(https://www.youtube.com/watch?v=XDCZ8FC856s) to install bWAPP on Parrot OS and everything works fine except SQL Injection. I've checked the database and its active. As you can see: And when I select SQL Injection(GET/Search) it just displays a blank white screen. I've checked for answers in a couple of places but haven't found a robust answer. Any help would be awesome thanks. Browser: Firefox Quantum 60.0.1(64-bit) OS: Parrot( I also tried the same on Kali) JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() It looks like your code uses the mysql extension, and that extension is not present. In other words, the error has nothing to do with SQL injection. The code for this app can't run given the PHP installation you have installed. Run the command php --version, you'll see something like this: $ php --version PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies You probably you have PHP 7.0 or later, in which the mysql extension is no longer available. If that's the version of PHP you have, then you will have to change the code of your application, so that it uses either mysqli or PDO. See these answers from 2016: PHP : Undefined function mysql_connect() Fatal error: Uncaught Error: Call to undefined function mysql_connect() Editing code from the outdates mysql extension to the mysqli extension is pretty easy. https://www.phpclasses.org/blog/package/9199/post/3-Smoothly-Migrate-your-PHP-Code-using-the-Old-MySQL-extension-to-MySQLi.html https://dzone.com/articles/convert-mysql-to-mysqli There are many videos on YouTube about updating mysql code to mysqli. I haven't watched any of them so I can't recommend any specific video. The other possibility is that you have PHP 5.6, but the installation is incomplete. You may be able to install an optional package to add the mysql extension to a PHP 5 installation. See this answer: Fatal error: Call to undefined function mysql_connect()

Related questions

0 votes
    I have a table where I have a ColumnA which has data with white spaces and special characters. I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    I would like to ask for performance of SQL. This is my query: Select A.code ,A.name ,(Select B. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    i want to delete the wullfi row by match the authid i must also say the aid is change so cant ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    I'm using the Microsoft Access to do the SQL and is there any way for me to set the criteria for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    What's the best way to store a linked list in a MySQL database so that inserts are simple (i.e. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    How to do paging in Pervasive SQL (version 9.1)? I need to do something similar like: //MySQL ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 21, 2022 in Education by JackTerrance
0 votes
    How to do paging in Pervasive SQL (version 9.1)? I need to do something similar like: //MySQL ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 20, 2022 in Education by JackTerrance
0 votes
    I'm using this formula to calculate the distance between entries in my (My)SQL database which have latitude ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I am using REPLACE in an SQL view to remove the spaces from a property number. The function is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
...