Hello, how do i escape passing parameters to page where you need to give two parameters ID and category
?
my sql is like this SELECT ID, Image, imageID, Category FROM gallery WHERE imageID={$imageID} AND Category='$category'
but i have a button which should show all pictures no matter what category they are?
Stefce
146
Posting Pro
Recommended Answers
Jump to Post"SELECT ID, Image, imageID, Category FROM gallery WHERE imageID="'.$imageID.'" AND Category="'.$category.'"
Jump to PostEvery time you don't use prepared statements , a beaver dies in Narnia ( The case pro prepared statements made long ago many many many … many times no need to repeat it)
Also “GET parameter” ? Is '96 again ? Is coding something like fashion ? Does the …
All 7 Replies
phphp
14
Junior Poster in Training
jkon
602
Posting Whiz in Training
Featured Poster
Stefce
146
Posting Pro
diafol
Stefce
146
Posting Pro
diafol
jkon
602
Posting Whiz in Training
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.