diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-03-11 01:29:13 -0800 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-03-11 01:29:13 -0800 |
| commit | 3d0d3a86106ece4ea298ab2f262b3af5ff8a7728 (patch) | |
| tree | b75b297d980f5b061595cea8b29fe42503907684 /dash/post.php | |
| parent | a44a0e047a7582fe7e31743e1b03a17cf2987f73 (diff) | |
| download | bulletin-3d0d3a86106ece4ea298ab2f262b3af5ff8a7728.tar.gz | |
Almost there...
Diffstat (limited to 'dash/post.php')
| -rw-r--r-- | dash/post.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dash/post.php b/dash/post.php index 6fdd2fd..ab9a193 100644 --- a/dash/post.php +++ b/dash/post.php @@ -23,7 +23,7 @@ do { } } $stmt = $db->prepare('INSERT INTO ads (uid, title, cat, pay, time, location, description) VALUES (?, ?, ?, ?, ?, ?, ?)') or dash_fatal($db->error); - $stmt->bind_param('isidiss', $b_user['id'], $_POST['title'], $_POST['cat'], $_POST['pay'], strtotime($_POST['time']), $_POST['location'], $_POST['description']); + $stmt->bind_param('isidiss', $b_user['id'], $_POST['title'], $_POST['category'], $_POST['pay'], strtotime($_POST['time']), $_POST['location'], $_POST['description']); $stmt->execute(); if ($stmt->affected_rows < 1) dash_fatal('Your ad was unable to be posted.'); dash_fatal('Your ad has been posted.', $b_config['base_url'].'dash/ads.php?id='.$stmt->insert_id); |
