Click here to Skip to main content
15,879,535 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: SQL to multidimenisonal array Pin
cjoki22-Dec-10 6:47
cjoki22-Dec-10 6:47 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider422-Dec-10 8:06
MacRaider422-Dec-10 8:06 
Questionwireless internet not running on vmware Pin
AmbiguousName20-Dec-10 6:32
AmbiguousName20-Dec-10 6:32 
AnswerRe: wireless internet not running on vmware Pin
LloydA11120-Dec-10 6:44
LloydA11120-Dec-10 6:44 
Questionhow to measure TCP congestion windows using python ?? Pin
peaceziz19-Dec-10 0:02
peaceziz19-Dec-10 0:02 
Questionpopulate combo box / dropdown list from mysql Pin
komanche18-Dec-10 22:46
komanche18-Dec-10 22:46 
AnswerRe: populate combo box / dropdown list from mysql Pin
Luc Pattyn19-Dec-10 2:34
sitebuilderLuc Pattyn19-Dec-10 2:34 
AnswerRe: populate combo box / dropdown list from mysql Pin
Lucian.cornea21-Dec-10 14:52
Lucian.cornea21-Dec-10 14:52 
Well you should try to find out if the query actually returns something. Try this
<br />
$dbResID = mysql_query ( $make, $access);<br />
if(mysql_errno($access)>0)die("the following sql: $make<br /> produced an error:<br />".mysql_error($access)."<br />");<br />


If there is no error there check to see how many rows have been selected:
echo"<p> selected rows:".mysql_num_rows($dbResID)."</p>";



And let us not forget the most important part, the html output(if you did not check it by now) there is something missing. The select tag Smile | :)

<br />
echo'<select name="cars">';<br />
while ( $row = mysql_fetch_row($dbResID) )<br />
print "<option value=\"$row[0]\">$row[1]</option>\n";<br />
echo'</select>';<br />


That is all the debugging that can be done, and if nothing up there works, then there is something really wrong somewhere else.
Hope this helps.

P.S. Sorry about the fact that part of the code is not displayed right, but I did insert the code tags while writing.
It can't rain all the time

Questionphp Pin
bitayeganeh18-Dec-10 1:40
bitayeganeh18-Dec-10 1:40 
AnswerRe: php Pin
Dr.Walt Fair, PE19-Dec-10 6:17
professionalDr.Walt Fair, PE19-Dec-10 6:17 
AnswerRe: php Pin
cjoki20-Dec-10 4:37
cjoki20-Dec-10 4:37 
AnswerRe: php Pin
Luc Pattyn20-Dec-10 6:23
sitebuilderLuc Pattyn20-Dec-10 6:23 
AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 10:55
sitebuilderLuc Pattyn16-Dec-10 10:55 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:06
User 741604616-Dec-10 11:06 
AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 11:11
sitebuilderLuc Pattyn16-Dec-10 11:11 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:15
User 741604616-Dec-10 11:15 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 12:15
User 741604616-Dec-10 12:15 
QuestionWeb Services, WSDL and SOAP Pin
Dills100215-Dec-10 1:23
Dills100215-Dec-10 1:23 
QuestionLive update of data? Pin
MacRaider413-Dec-10 6:37
MacRaider413-Dec-10 6:37 
AnswerRe: Live update of data? Pin
cjoki13-Dec-10 11:39
cjoki13-Dec-10 11:39 
Questionmultiple tables Pin
MacRaider48-Dec-10 2:18
MacRaider48-Dec-10 2:18 
AnswerRe: multiple tables [modified] Pin
cjoki8-Dec-10 9:59
cjoki8-Dec-10 9:59 
GeneralRe: multiple tables Pin
MacRaider48-Dec-10 12:53
MacRaider48-Dec-10 12:53 
GeneralRe: multiple tables Pin
cjoki9-Dec-10 4:57
cjoki9-Dec-10 4:57 
GeneralRe: multiple tables Pin
MacRaider49-Dec-10 5:18
MacRaider49-Dec-10 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.