Page 1 of 1

echo Smycale->add(); // Displays 18 echo Smycale-> multiply(); // Displays 727 3. Given the following code: for

Posted: Fri Jul 01, 2022 5:38 am
by answerhappygod
Echo Smycale Add Displays 18 Echo Smycale Multiply Displays 727 3 Given The Following Code Php For 1
Echo Smycale Add Displays 18 Echo Smycale Multiply Displays 727 3 Given The Following Code Php For 1 (56.99 KiB) Viewed 40 times
echo Smycale->add(); // Displays 18 echo Smycale-> multiply(); // Displays 727 3. Given the following code: <?php > for (i=0;i<10; i++) { echo(i); a. b. C. } smiting miting Rich. ?> What is the output? How would you modify the code so that it prints the numbers backwards?✓/ How would you modify the code so that it prints only the even numbers? How would you modify the code so that it sums all the values of i and prints the ✓ d. final sum? 4. Consider the following MySQL table: CREATE TABLE president. (last_name VARCHAR(15) NOT NULL, first_name VARCHAR(15) NOT NULL, suffix VARCHAR(5) NULL, city VARCHAR(20) NOT NULL, state CHAR(2) NOT NULL, birth DATE NOT NULL, death DATE NULL ) for ($9; ; 2=1, i--) { 4 MEYG Lav Scritication de rolding charafe. (120) bak; else echelin Write an SQL query that returne the full name of residen (b) Write an SQL query that list the states in which the greatest number of presidents have been born. List them in descending order. (c) Write an SQL query that finds all presidents whose last names start with W. (d) What is the purpose of a MySQL index? 5. Describe the various ways we can secure our codes from SQL attacks and secure our database as discussed in class (Mention at least 3).