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

Did you know?Explore Trending and Topic pages for more stories like this.
How to achieve this.
No comments posted yet

Your Answer:

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

records between 2 dates
Hello all,

I have a date tracked table which contains effective_start_date and effective

PHP Error
On my .php page I have a drop down box that has several names in it. When a user clicks the name &am

Convert array to string and write to csv file
I am looking to write a MySQL query to a csv file.

At the minute I:

check for the orig

selection tool on raster image
Hi!
I have to implement in my app a selection tool which lets users to select region of any shape

Variable Clash
In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$ca

Mysql error message
help me find out what this error message means:

"Duplicate entry '0' for key 'PRIMARY'&q

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

A rank users order by points
I want to make an insert from table 'rank' , with number (rank) from the cod blow, to fild users.ran

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