cars.php Language Run Settings. view untitled php Untitled 2.php connection.php
ID: 3573935 • Letter: C
Question
cars.php Language Run Settings. view untitled php Untitled 2.php connection.php cars php Untitled 3.php cars.html php allychild94 include once connection.php as chattoogabell... if SERVER REQUEST METHOD POST' && isset($ POST categories form"] a chattoogabell... 4 COM 215 Site $category name mysqli real escape string ($conn, $POST['name cars.php $category description mysqui real escape string ($conn, POSTI 'category connection... sinsert categories query sprintf insert into categories (category name category description values ('%s', %u)", home $category name, 10 mages $category description) index.html o job html sinsert categories mysqui query ($conn $insert categories query or die (mysqli error($conn 13 style $last record mysqli insert id ($conn); 15 position style.css templates DOCTYPE html> bottom 19Explanation / Answer
The following corrections must be done
correction 1
in line 4 and 5
first try writing ($_POST['name']) instead of $_POST['name']
do the same in line 5 also for description
try running the program ,if problem persists then do this and try
correction 2
where ever you have used mysqli_ in program change to mysql_ syntax
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.