Thread
: Tech
Session Name in SQL query?
View Single Post
11-23-2022, 10:37 AM
k0nr4d
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Exactly the same way as any other variable
$result = mysqli_query($con,"SELECT * FROM Documents WHERE Writer REGEXP '".mysqli_real_escape_string($con, $_SESSION['name'])."' ORDER BY ID DESC;");
__________________
Mechanical Bunny Media
Mechbunny Tube Script
|
Mechbunny Webcam Aggregator Script
|
Custom Web Development
k0nr4d
View Public Profile
Visit k0nr4d's homepage!
Find More Posts by k0nr4d