usan variables de sesión en una sentencia SQL
Necesito saber como se haría lo expuesto en el título der mensaje.
quiero hacer algo como esto
Select CAMPO from TABLA where nombre_campo=nombre_variable_sesion_PHP
Gracias por adelantando
quiero hacer algo como esto
Select CAMPO from TABLA where nombre_campo=nombre_variable_sesion_PHP
Gracias por adelantando
$var = $_SESSION['tu_var']
Select CAMPO from TABLA where nombre_campo=$var
saludos!
Select CAMPO from TABLA where nombre_campo=$var
saludos!