Jump to content

Urgent help needed please


faiz binghiz

Recommended Posts

hi guys

can anyone help with this code please ?

$query_product = sprintf("SELECT * FROM company WHERE product1 = %s", GetSQLValueString($colname_product, "text"));

i worte thise code to compare the variable product1 to a database columne, but now i need to compare the same variable product1 with other valuse in same table. in other worde : product1 = value1 OR value2 OR value3 OR value4 OR value5 OR value6

 

i hope i made it clear. thank you.

Link to comment
Share on other sites

im stuck with adding the other values that i wana compare the var product1 to.

 

currtenly i have "WHERE product1 = %s"

%s represnts the one filed in the database.

 

i wana compare the same var product1 to other variables. so im stuck in adding the variable that represnts the other database fields, lets say value2, value3, value4 and so on

thanx

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.