Dynamically allocating the number of rows in a table based on a variable value


Posted on 16th Feb 2014 07:03 pm by admin

Hi,
I have situation here which i cannot resolve, I have a variable temp which stores the number of rows in a array for example temp=5 which is calculated based on other values in my table( so temp is generated dynamically) Now I have to define a table with the number of rows equal to the temp value. that is table should have 5 rows

How to achieve this.

No comments posted yet

Your Answer:

Login to answer
203 Like 35 Dislike
Previous forums Next forums
Other forums

login box shows up again after logging in 2nd login works
Hello,

I am having trouble on my site Lockerz.rack111.com where when you login the login box

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

MYSQL INSERT ID NOT WORKING
Code: $id = mysql_insert_id();
header("Location: ./?view=$id");
Why $id pulling blan

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

Multipe Dynamic Controls & AutoPostback Issue
I currently have a need to create many dynamic controls (Example Textboxes) that need to do a PostBa

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

Code doesn't print what i wanted it too. Please help!
Hi there,

I wrote this code to mae it so that in the form before it that the user said their

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

Applet JTextField Size Problem
Hello,

I recently started making an applet to calculate certain values for airplanes. However

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash