hey all:
I do a loop that creates text forms on the fly kinda like this:
for (i,i<=$x,i++)(
echo "<input type=text name=$forname> <br>"
$values .= "$forname,"
)
echo "<input form type=submit name="submit">"
then
if ($submit)
//to get rid of the last comma:
$myvalues= str_replace($va lues,-1)
//i use a function to get the $namesofcolumns but im in a netcafe
right now so...
mysql_query(ins ert into blabla ($namesofcolumn s) values ($myvalues);
the problem is that the insert works but only null values get
inserted, how can I do that?
thanx in advance
I do a loop that creates text forms on the fly kinda like this:
for (i,i<=$x,i++)(
echo "<input type=text name=$forname> <br>"
$values .= "$forname,"
)
echo "<input form type=submit name="submit">"
then
if ($submit)
//to get rid of the last comma:
$myvalues= str_replace($va lues,-1)
//i use a function to get the $namesofcolumns but im in a netcafe
right now so...
mysql_query(ins ert into blabla ($namesofcolumn s) values ($myvalues);
the problem is that the insert works but only null values get
inserted, how can I do that?
thanx in advance
Comment