wildata Posted March 12, 2017 Share Posted March 12, 2017 Hi Folks, Trying to create a dropdown (Select Box) from Columns (Field's) in one row of a Table. Connecting to DB fine. A Numeric Array gives me a "Correct" result" 7 Fields from the "row". An Associative Array only gives me the first 2 results, What am I doing wrong ? Help appreciated, file lw.php attached. Help much appreciated. C. lw.php Quote Link to comment Share on other sites More sharing options...
NigelRel3 Posted March 13, 2017 Share Posted March 13, 2017 So you only have two values printed from ... printf ("%s(%s)\n",$row["ProductCode"],$row["L1"],$row["L2"],$row["L3"],$row["L4"],$row["L5"],$row["L6"]); the %s indicates that the value of a string should be included (from the parameters), so have you tried adding more %s's to print out all of the values? If in doubt - use something like print_r() which outputs a variable with all of it's components in a readable format. Quote Link to comment Share on other sites More sharing options...
ginerjm Posted March 13, 2017 Share Posted March 13, 2017 Also helps if you post the offending code for those of us who won't go clicking on outside links. The forum has code-posting tags to help highlight your code in your posts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.