Zayzay98
Badges: 2
Rep:
?
#1
Report Thread starter 3 weeks ago
#1
Hi, does anyone know what result I have to add into the database after I’ve sanitised the $message variable. So far I’ve done: $message = $_POST[‘message’];$message = escape_tags($message); It says I need to think about the order in which you call functions Thankyou.
Attached files
Last edited by Zayzay98; 3 weeks ago
0
reply
Suchomimus
Badges: 14
Rep:
?
#2
Report 3 weeks ago
#2
I hope that this works for you:
$message=escape_tags($message);i nsertIntoDatabase($message)
1
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Did you vote in the 2019 general election?

Yes (358)
45.9%
No (83)
10.64%
I'm not old enough (339)
43.46%

Watched Threads

View All