Having a problem with getting the values from a database.
What im trying to do is:
I use variable 'varname' from packaging_items table (values are coressponding to the names of columns in packaging table ... pack01, pack02 .. and so on).
But in query result1 instead of getting the value of (pack01, pack02 ..) i get the names of columns (pack01, pack02 ..)
Here is my short code: (ofcourse there is more to it, but this bit is most important)
Try echoing out your $result1 query (you will need to remove the mysql_query wrapper first) and then run what is return directly in PHPMyAdmin to see what happens (easier to debug sometimes).
pack01pack02pack03pack04pack05pack06pack07 just like i mentioned before, these are names of columns in packaging table, and frome these i want to get the values out..
need to have another variable specified for that ...and i jus do not now how to do this ..
pack01pack02pack03pack04pack05pack06pack07 just like i mentioned before, these are names of columns in packaging table, and from these i want to get the values out..
need to have another variable specified for that ...and i just do not now how to do this ..
that is for sure, values coming from the varname variable in packaging_items table , are the names exactlly the same as columns names in packaging table, so now all i have to do is to specify variable getting the value of selected column, do not know how to do that .. tried many options, some of them not logical too ..
Yes, I understand what you want to achieve but I can't work out why it isn't working for you. Are you now saying that when you hard code the query (as above) or run directly in phpmyadmin it works as expected, it is just when you run it within the other while loop that it doesn't work?
Bookmarks