Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
How to pull data from database table (Help Please)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Ben144" data-source="post: 467486" data-attributes="member: 73963"><p>I have got it working to an extent, but it is not updating to the database.</p><p></p><p>[CODE]<?php</p><p> if(isset($_POST['sendReviewSub'])){</p><p> $errors = array();</p><p> $failed = 0;</p><p> $status = filter($_POST['b_status']);</p><p> if($status != "Pending" && $status != "Accepted" && $status != "Rejected"){</p><p> $errors[] = "IP Logged for trying to exploit.";</p><p> }else{</p><p> mysql_query("UPDATE INTO `rp_business_apps` (b_status, userid) VALUES ('".$status."', '".$_SESSION['user']['id']."')") or die(mysql_error());</p><p> echo "<center><p style='color:green;'>Suggestion Sent!</center></p>";</p><p> }</p><p> }</p><p> </p><p> ?></p><p> <form method="post" name="sendReport"></p><p> <select name="b_status"></p><p> <option value="Pending">Pending</option></p><p> <option value="Accepted">Accepted</option></p><p> <option value="Rejected">Rejected</option></p><p> </select></p><p> </p><p> <input type="submit" value="Send In" name="sendReportSub"></p><p> </form>[/CODE]</p></blockquote><p></p>
[QUOTE="Ben144, post: 467486, member: 73963"] I have got it working to an extent, but it is not updating to the database. [CODE]<?php if(isset($_POST['sendReviewSub'])){ $errors = array(); $failed = 0; $status = filter($_POST['b_status']); if($status != "Pending" && $status != "Accepted" && $status != "Rejected"){ $errors[] = "IP Logged for trying to exploit."; }else{ mysql_query("UPDATE INTO `rp_business_apps` (b_status, userid) VALUES ('".$status."', '".$_SESSION['user']['id']."')") or die(mysql_error()); echo "<center><p style='color:green;'>Suggestion Sent!</center></p>"; } } ?> <form method="post" name="sendReport"> <select name="b_status"> <option value="Pending">Pending</option> <option value="Accepted">Accepted</option> <option value="Rejected">Rejected</option> </select> <input type="submit" value="Send In" name="sendReportSub"> </form>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
How to pull data from database table (Help Please)
Top