Below is the script giving me pains, please advise.
You have a great forum here btw, I always recommend it to fellow newbies.
// looping sql insert statement
for( $i = 1; $i < $quantity; $i++)
{
$sql[] = "INSERT INTO `clients` ( `username` , `passwd` , `groups` , `status_all` , `status_bpmn` , `status_pmbok` , `status_babok` ) VALUES (" . $ipn_order . $i . ", " . sha1(rand(5, 256) . ", group" . ", 0, " . $status_bpmn . ", " . $status_pmbok . ", " . $status_babok . ");";
}
// This script works... and it is the original from which I tried implementing above..
for( $i = 1; $i < 6; $i++ )
{
$var_name[] = "new_variable_" . $i; //$var_name[] will hold the new variable NAME
}
echo $var_name[0] . '<br/>';
echo $var_name[1] . '<br/>';
echo $var_name[2] . '<br/>';
ERROR MESSAGE
Parse error: syntax error, unexpected ';' in /homepages/15/d365728635/htdocs/test.php on line 12