Jump to content

[SOLVED] Is it possible to do this?


madspof

Recommended Posts

Hi everyone i am trying to create a mysql query that finds something in a row when the WHERE in the query has to variables it has to satisfy here is what i am try to do (is this possible):

This is what i have now

$query  = "SELECT url FROM userpic WHERE DP = '1'";

And i need something like this

$query  = "SELECT url FROM userpic WHERE DP = '1' & userid = '$usern'";

i am not sure if this is the correct way of going about it.

 

Link to comment
https://forums.phpfreaks.com/topic/85750-solved-is-it-possible-to-do-this/
Share on other sites

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.