Jump to content

Session in MySQL Query


maxudaskin

Recommended Posts

Yes/no, but mainly NO

first its best to recall the session to a variable so you don't spend your life dealing with quotes

like

$var = $_SESSION['var'];

then you aren't echoing it but using it so you say

WHERE field = '$var' NOT WHERE field = echo '$var'; echo is for creating output not for using a variables value

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.