![]() They can be put randomly, when a user adds one. In this database, the solutions of one type or another are not in a defined order. I am currently developing a module for my site that will allow me to classify each solution to help a disability by type.įor this, I have a database in which these types and solutions are found. The idea being that I can manage products by adding 4 elements, Skunum, name, price and size.Īt this point it won't even work because of the variable scope, I'm getting Notice: Undefined variable: skusįrom the functions, but am not sure of the right way to get that information.Īm I going about doing this entirely wrong or am I on the right track? The catch is that I'm trying to have a function within that one that goes through the $skus and echoes an option if the substring (shirt size) exists. ![]() Hi all, I'm trying to set up a situation where a function loops through a multidimensional array and echos an html block for each item in the $skus array and also increments $i each time. The header section works fine, but the double foreach loop seems to be where I'm failing. ![]() The table can grow or shrink depending on the data I'm retrieving. hence the table would look like this.Įtc etc. I want this to loop through and create a new line in a table for each sub-array. I have a multidimensional array $data=$row I cannot get my table to produce correctly. While($row = mysql_fetch_array($retval, MYSQL_ASSOC)) This is my PHP code its in the body sectionĮcho "NameColorTypeSub TypePowerToughnessConverted mana costRarityExpansionFoilStock" I had it so far that i could outpust the info in just plain text but it doesn't output in the HTML table. I have a database, but i want to output all data into a table from the database using HTML codes. I'm Osiris and i'm stuck with this PHP/HTML code, i'm fairly new at this so this might be a dumb question.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |