JayC
Always Learning
Here is my code:
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:
If I replace:
with
it works D: Help?
Thanks!
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 />
If I replace:
Code:
' . $botInfo . '');
Code:
2');
Thanks!