Answer the question
In order to leave comments, you need to log in
Cyclic addition in mysql how?
There is a code:
$a = $_POST['colums'];
if($a != null){
for ($i = 1, $i<$a; $i++){
$query = "ALTER TABLE maps ADD days_'$i' VARCHAR(100)";
mysql_query($query);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question