please help I'm a newb and this is really messing with my head. All I want
to know is what do I need to add to this script to allow it to increment the
ID number..... pleaseeeeee.
thank you very much for a simple boy!!!!


$db_name = "altone";

$table_name = "author";

$connection = @mysql_connect("", "test", "will") or die
("couldn't connect.");

$db = @mysql_select_db($db_name, $connection) or die ("couldn't select

$sql = "INSERT INTO $table_name (id, name, email, picture_name)
VALUES ('$id', '$name', '$email', '$picture_name') ";

$result = @mysql_query($sql, $connection) or die ("couldn't execute query");

if ($picture != "") {

move_uploaded_file($picture, "/home/mine/yep/php/$picture_name");



<title>my contact management system: add a contact</title>

<table cellspace=3 cellpadding=5>
<th>Name & email information</th>
<th> </th> 
<td valign=top> 

<p><stong><font size="-2" face="Verdana, Arial, Helvetica,
<? echo "$table_name"; ?><br>
<? echo "$name"; ?><br>
<? echo "$id"; ?> 
<p><stong><font size="-2" face="Verdana, Arial, Helvetica,
sans-serif">email:</font><br><? echo "$email"; ?>

<font size="-2" face="Verdana, Arial, Helvetica, sans-serif">File
to Upload:</font><br>
<img src=<? echo "$picture_name";; ?>>
<td valign=top> </td>
<td align=center colspan=2>
<div align="left"><br>
<p align="left"> 
<input type="submit" name="submit" value="add to contact system">
<div align="left"></div>


PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to