Have an account? Sign in
Login  Register  Facebook
SELECT query related question
I had asked a question earlier, and is_set answered following code:
This is what exactly i was looking for, many thanks.
select * from table2
where column1 in (select if(column1 = 'smith', column2, column1) from table1 where (column1 = 'smith' or column2 = 'smith') and status = 1)
OR
column2 in (select if(column1 = 'smith', column2, column1) from table1 where (column1 = 'smith' or column2 = 'smith') and status = 1)


As above query selects either column1 or column2 from Table2 depending on which column fulfills the condition.
Now how can i know with that it it was column1 OR column2 ?(with php code etc, i want to know if it was column1 or column2 of table2)
Started: September 18, 2011 Latest Activity: December 19, 2018 mysql select
3 Answers
O Comprare Kamagra <a href=http://cialgeneri.com>cialis</a> Glucophage No Perscriptionpharmacy Kamagra Safe Giving Amoxicillin 100 Mg To Cats <a href=http://leviinusa.com>gen health levitra</a> Valtrex Buy Online Canada Priligy Bericht Amoxicillin Cat Germany Compra Viagra Calidad <a href=http://mpphr.com>priligy dapoxetine blog</a> Pseudomonas Aeruginosa And Amoxicillin Viagra Kaufen Privat Cialis Mejor Viagra Cialis Se Puede Tomar Alcohol 75 Mil Indocin Online Canadian Pharmacy <a href=http://cialonlinecs.com>cialis for sale</a> Usa Overnight Pharmacy Strep Symptoms Even After Taking Amoxicillin Le Viagra Est Il Rembourse Viagra Was Bringt Das Avodart Lowest Price <a href=http://viaabuy.com>viagra</a> Baclofene Cirrhose Sale Finasteride Low Price <a href=http://cpsmeds.com>generic cialis overnight delivery</a> Prezzo Levitra 10 Mg Per

Posted: Jeadyelty
In: December 19, 2018

according with @Go way
you can use
$query = mysql_query("");//your query here
var_dump(mysql_fetch_array($query, MYSQL_ASSOC ));

this will give you full list of keys and values

Posted: MacOS
In: September 18, 2011

In general you can use the var_dump() function

Posted: Go
In: September 18, 2011

Your Answer

xDo you want to answer this question? Please login or create an account to post your answer