View Full Version : problems when inserting to mysql
ace04
01-31-2006, 09:31 AM
my data are in an array and there's a problem when im inserting it in mysql... the values are null...:eek:
NancyJ
01-31-2006, 09:58 AM
code?
Velox Letum
01-31-2006, 07:21 PM
We need more information to help you. As Nancy said, we need your query, the pertinant code, and so on. "The values are null" is a vague, and completely unhelpful statement. Most likely your array values aren't set, or the query is wrong, but we can't know without the code.
ace04
02-01-2006, 12:31 AM
ok.... here is my code:
if($submit == clickHere)
{
require_once('applicant.php');
echo"<tr><td align='center'>
<h2>No.
</td>
<td>
<h2>Name
</td>
<td align=center>
<h2>Age
</td>
<td>
<h2>School
</td>
<td colspan='3'>
<h2>Year Level/Grade
</td></tr>";
for($i=1; $i<$noDepend+1; $i++)
{
echo "<tr><td align=center>
<h2>$i
</td>
<td>
<input type=text name=dName[$i] size=26 >
</td>
<td align=left>
<input type=text name=dage[$i] size=2>
</td>
<td>
<input type=text name=dSchool[$i] size=25 >
</td>
<td>
<input type=text name=dYrlevel[$i] size=7 >
</td></tr>";
}
echo"<tr><td> </td></tr>";
}
?>
how can i insert those value in my textboxes?...
Velox Letum
02-01-2006, 01:53 AM
So you want us to write the code for you now. I thought you had "problems" inserting a row into MySQL.
ace04
02-01-2006, 01:58 AM
yess.. hmmm.. im sorry maybe i just dont explain myself clear... i dont know how to insert those arrays to mysql?.. i mean the values inmy textboxes.. the ordinary insertion that i know doesnt work with it.. please help me.. im still a student. im sorry if you misunderstood what i mean... thanx..
Velox Letum
02-01-2006, 02:14 AM
Google + searching for PHP/MySQL tutorials = good.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.