Hey everyone,
I am designing a little website for a company and I am running into a single issue that I cannot resolve myself it seems. I keep getting this error:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
Every time I try to submit the information I get this error. Here is the coding on the page (I am using Dreamweaver CS5):
<?php
include_once "../auth.php";
include_once "../include/header_up_pic_emp.php";
include_once "../include/menu.php";
include_once "../connect.php";
?>
<h1>Add Staff Member</h1>
<div id="content">
<img src="images/spacer.gif" height="32" width="1" style="float: left"/>
<div class="version">General Information</div>
<div id="status_emp"></div>
<div id="car_details">
<form name="form1" method="get" action="javascript:add_employee()">
<table border="0" cellpadding="0" cellspacing="0" class="list" style="padding:20px 0px;">
<tr>
<td width="10"></td>
<td height="30"><label for="name">Name</label></td>
<td><input type="text" name="name" id="name" size="55" value="" /></td>
</tr>
<tr>
<td width="10"></td>
<td height="30"><label for="title">Title</label></td>
<td><input type="text" name="title" id="title" size="55" value="" /></td>
</tr>
<tr>
<td width="10"></td>
<td height="30"><label for="description">Description</label></td>
<td><textarea name="description" cols="100" rows="6" id="description"></textarea> </td>
</tr>
<tr>
<td width="10"></td>
<td height="30"></td>
<td></td>
</tr>
<tr>
<td width="10"></td>
<td height="30"><label for="description">Upload Photos</label></td>
<td><input id="uploadify" name="uploadify" type="file" />
<div id="status"></div> </td>
</tr>
<tr>
<td colspan="3">
<input type="hidden" id="time" name="time" value="<?=$time?>">
<input name="Submit" type="submit" id="Submit" style="color:#ffffff;background:#545354;padding:4px 10px;border:0px;font-size:11pt;font-family:Arial;font-weight:bold;margin-left:196px;margin-top:55px" value="Submit" />
</td>
</tr>
</table>
</form>
</div>
Thanks for all your help guys!
P.S. I will be posting pics of my new computer system soon (THANKS AGAIN PHOBUS FOR THE HELP WITH THAT)
I am designing a little website for a company and I am running into a single issue that I cannot resolve myself it seems. I keep getting this error:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
Every time I try to submit the information I get this error. Here is the coding on the page (I am using Dreamweaver CS5):
<?php
include_once "../auth.php";
include_once "../include/header_up_pic_emp.php";
include_once "../include/menu.php";
include_once "../connect.php";
?>
<h1>Add Staff Member</h1>
<div id="content">
<img src="images/spacer.gif" height="32" width="1" style="float: left"/>
<div class="version">General Information</div>
<div id="status_emp"></div>
<div id="car_details">
<form name="form1" method="get" action="javascript:add_employee()">
<table border="0" cellpadding="0" cellspacing="0" class="list" style="padding:20px 0px;">
<tr>
<td width="10"></td>
<td height="30"><label for="name">Name</label></td>
<td><input type="text" name="name" id="name" size="55" value="" /></td>
</tr>
<tr>
<td width="10"></td>
<td height="30"><label for="title">Title</label></td>
<td><input type="text" name="title" id="title" size="55" value="" /></td>
</tr>
<tr>
<td width="10"></td>
<td height="30"><label for="description">Description</label></td>
<td><textarea name="description" cols="100" rows="6" id="description"></textarea> </td>
</tr>
<tr>
<td width="10"></td>
<td height="30"></td>
<td></td>
</tr>
<tr>
<td width="10"></td>
<td height="30"><label for="description">Upload Photos</label></td>
<td><input id="uploadify" name="uploadify" type="file" />
<div id="status"></div> </td>
</tr>
<tr>
<td colspan="3">
<input type="hidden" id="time" name="time" value="<?=$time?>">
<input name="Submit" type="submit" id="Submit" style="color:#ffffff;background:#545354;padding:4px 10px;border:0px;font-size:11pt;font-family:Arial;font-weight:bold;margin-left:196px;margin-top:55px" value="Submit" />
</td>
</tr>
</table>
</form>
</div>
Thanks for all your help guys!
P.S. I will be posting pics of my new computer system soon (THANKS AGAIN PHOBUS FOR THE HELP WITH THAT)













