frozenpeas
Technical User
Everything worked fine - then I had to redo my server.
The problem:
I add data to my db through a form in a php page. It seems to add it fine. When I look at the db, the new entries are empty.
I have another form where I retrieve db entries so I can edit them. When I try to do this now, I get:
The first few lines in question being:
I hope that's enough info. Thanks. frozenpeas
The problem:
I add data to my db through a form in a php page. It seems to add it fine. When I look at the db, the new entries are empty.
I have another form where I retrieve db entries so I can edit them. When I try to do this now, I get:
Code:
Could not query database. You have an error in your SQL syntax near '' at line 1
The first few lines in question being:
Code:
<?
require_once('connect.php');
require_once('output_fns.php');
html_header(':: Edit Service Record');
?>
<form action="edit_record.php" method="post" name="form" id="form">
<?
$record = $radiobutton;
$datetoday = date('m/d/y');
$query = mysql_query('SELECT * FROM cecil_service WHERE id = '.$record) or die ('Could not query database. '.mysql_error());
$row = mysql_fetch_array($query);
?>
I hope that's enough info. Thanks. frozenpeas