I'm new at this.
I'm trying to build the most basic app, but have already run into a major problem.
I have a simple form with the following snippet:
<td>First</td>
<td><input type=text name=first maxlength=30 size=30><br></td>
</tr>
<td>Last</td>
<td><input type-text name=first maxlength=30 size=30><br></td>
</tr>
the script that is supposed to insert this into the MySQL database is like the following snippet:
$query = "INSERT INTO sample (first,last) VALUES ('$first' , '$last')";
$result = mysql_query($query);
This adds a new row but does not pass the form elements on to the database. the columns are empty. I do not get any error messages. Is my syntax wrong?
Thank You
Brian