Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.) Regex Pattern in HTML5- Define a pattern which recognizes text that consists

ID: 3535456 • Letter: 1

Question

1.) Regex Pattern in HTML5- Define a pattern which recognizes text that consists only of a's and b's like aabbbabbabababba or bbbabbabbbba etc.


2.) Write an SQL statement in PHP that updates the chat columns contents of a table Chat with attributes name [primary, varchar], password [varchar], and chat [text] when the name attributes matches a value in the PHP variable $name.



3.) Write a PHP statement that transforms input $_GET["test"] to safe input.


4.) Advanced CSS SELECTORS Make a style sheet that gives the effects in the picture below using CSS style selectors to achieve the stripped and other effects using last-child, nth-of-type and other appropriate selectors

Explanation / Answer


2) update Chat

set chat="what you want"

where $name==name