[Help] Bots Errors UberCMS Bot Item Update

JayC

Always Learning
Aug 8, 2013
5,504
1,401
Here is my code:

Code:
        <span title="bot_id">Bot:</span><br />
                                                        <select name="bot_id">
                                                        <?php
                                                        $getBotInfo = mysql_query('SELECT id,name FROM bots WHERE owner = "'.USER_NAME.'"');
                                                     
                                                        while($botInfo = mysql_fetch_array($getBotInfo)){
                                                            echo '<option value="';
                                                            echo $botInfo['id'];
                                                            echo '">';
                                                            echo $botInfo['id'];
                                                            echo ' - ';
                                                            echo $botInfo['name'];
                                                            echo '<br /></option>';
                                                        }
                                                        ?>
                                                        </select><br /><br />
        <span title="which_one">Which Response:</span><br />
                                                        <select name="which_one">
                                                        <?php
                                        $getResponse = mysql_query('SELECT id,keywords,serve_id FROM bots_responses WHERE bot_id = ' . $botInfo . '');
                                                     
                                                        while($botRes = mysql_fetch_array($getResponse)){
                                                            echo '<option value="';
                                                            echo $botRes['id'];
                                                            echo '">';
                                                            echo $botRes['keywords'];
                                                            echo ' - ';
                                                            echo $botRes['serve_id'];
                                                            echo '<br /></option>';
                                                        }
                                                        ?>
                                                        </select><br /><br />
I just need the Responses to get the BOT Id but every thing I have tried DOES Not work :( This is what it looks like:
EfqKBxt.png


If I replace:
Code:
' . $botInfo . '');
with
Code:
2');
it works D: Help?
Thanks!
 

Users who are viewing this thread

Top