0

how to show data from mySql when i select 1 option in combobox usig php?

when i select 1 option in combobox and write text in input then click submit button i want to show data from mySql usig php,for example when i select form1(option1) in combobox(name=type) and write 12 in input(label=code) i want to show whole titles that they have type=form1 and code=12 from mySql usin php? https://code.sololearn.com/W780LlwEym2Y/?ref=app

27th Aug 2018, 3:47 PM
M E
M E - avatar
1 Odpowiedź
+ 1
$res = 'select * from sololearn where username="Hello"'; /*Customize $res to select what options to display */ while ($row = mysqli_fetch_array($res, MYSQLI_ASSOC)) { echo '<li>'; echo $row['name']; echo '</li>'; }
28th Aug 2018, 5:29 PM
Femi
Femi - avatar