I'm new to mobile development. I'm using html5,php,cordova,phonegap for the development of mobile application. I have done everything which i need.But i need to populate the dropdowns dynamically based on the previous dropdown selection. i.e., Based on the state the cities to be populated and based on the cities the locations need to be populated. Please help me out how to solve this problem. Thanks in Advance.

Member Avatar
Member Avatar
+0 forum 1

<?php $host = "localhost"; $usr = "root"; $pwd = ""; $db= "DB"; conOpen($host,$usr,$pwd,$db); function conOpen($host,$usr,$pwd,$db){ $con=mysql_connect($host,$usr,$pwd) or die ("Connection Failed "); mysql_select_db($db,$con);} $rows_per_page=5; // database connection stuff here $result=mysql_query("Select * from newsimage"); $pages=ceil(mysql_num_rows($result)/$rows_per_page); if (!isset($screen)) $screen = 0; else echo $_GET[screen]; /* $start = $screen * $rows_per_page; $sql = "SELECT nId FROM newsimage "; $sql .= "LIMIT $start, $rows_per_page"; $result = mysql_query($sql); $rows = mysql_num_rows($result); for ($i = 0; $i < $rows; $i++) { $description = mysql_fetch_array($result); echo "\$description = $description[nId]<br>\n"; } echo "<p><hr></p>\n"; // let's create the dynamic links now if ($screen > 0) { $url = "z.php?screen=" . …

Member Avatar
Member Avatar
+0 forum 19

I am working on Image Viewer How do I work on the Action button to display images one after the other with Next and Previous

Member Avatar
Member Avatar
+0 forum 1

hy all, how to get previous value and check different between recently value and previous values in loop < 0.5? if different value < 0.5 get it's array please help me define('DIV', 0.5); function iteration($data, $data2) { $m1=$m2=$data; $m3=multiply($m1,$m2); echo "iteration 1:\n"; print_r($m3); $temp_m3 = $m3; for ($i=0;$i<count($temp_m3);$i++) { for ($j=0;$j<count($temp_m3[$i]);$j++) { if (isset($data2[$i][$j])){ $aR[] = (($temp_m3[$i][0]*$data2[$i][$j])+($temp_m3[$i][1]*$data2[$i][$j])+($temp_m3[$i][2]*$data2[$i][$j])); } } } print_r($aR); echo $max = max($aR)."<br/>"; for($a=0; $a<count($aR);$a++){ $bg_max[] = $max/$aR[$a]; } print_r($bg_max); $m1=$m2=$m3; for($c=2;$c<=7;$c++) { $m3=multiply($m1,$m2); echo "iteration $c:\n"; print_r($m3); $m1=$m3; $aR2 = array(); for ($x=0;$x<count($m3);$x++) { for ($y=0;$y<count($m3[$x]);$y++) { if (isset($data2[$x][$y])){ echo "value aR=> ".$aR2[] = (($m3[$x][0]*$data2[$x][$y])+($m3[$x][1]*$data2[$x][$y])+($m3[$x][2]*$data2[$x][$y]))."<br/>"; } } …

Member Avatar
Member Avatar
+0 forum 2

Hi. I am working on my Online Examination project in my web development subject but I am having a hard time to code how to go back to my previous page where I put session on it. my online exam are categorize by subject then inside the subject there is a test name. FOr example: Subject: Math -Algebra -Calculus In admin side, if I want to view and edit all the question, the link will direct me to **"view_subject.php"** here's the code: <?php <h2>Subjects</h2> <table width="1000" height="104" bordercolor="#666666" border="0"> <tr bordercolor="#666666"> <center> <td width="100" height="33" bgcolor=" #d4d6f8" align="center"><b>Subject ID</b></td> <td …

Member Avatar
Member Avatar
+0 forum 6

Hello Community, I need help with the program "[InnoSetup](http://www.jrsoftware.org/isinfo.php)" what i need is a way to uninstall the previous version of my program insted of just overwriting it. So when the user runs the setup if the program is already installed on there computer they will be asked to unstall it first, then they can install the newer version. Please help... I need a better way to update my programs.

Member Avatar
Member Avatar
+0 forum 1

Hello, I have a problem that I'm pretty sure I already got done before but I got lost since I didn't note down my changes with my code. My problem is that I need my displayed calendar to move fluidly showing the next 4 months and the previous 4 months. This is my calendar php. </table></td> </tr> <tr> <td align=center> <? print "<table cellpadding=1 cellspacing=0 border=0>"; for($i=0;$i<1;$i++) { print "<tr>"; for($j=0;$j<4;$j++) { print "<td>"; $cal->SetDate($month,$year); $cal->Show(); $month++; if ($month==13) { $month=1; $year++; } print "</td>"; } print "</tr>"; } print "</table>"; if ($page>1) { $prev=$page-1; print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$prev\">Prev</a>&nbsp;"; } …

Member Avatar
Member Avatar
+0 forum 1

Hi so I'm making a site for sneakers. A person can sign up and say they like Nikes, Vans, Reeboks, etc. I then have it where you can make a group for people who like certain sneakers as well. So the group can say they like Nikes, Vans, Reeboks, etc. I want to get the group likes (Nikes, Vans, Reeboks, etc.) and search the users database for anyone who likes Nikes, Vans, or Reeboks. I can get it where it searches only one like, but can't do it for multiple.

Member Avatar
Member Avatar
+0 forum 5

HI Could yu please tell me how to get previous values from current iteration in the below example : public void parseDtoCollection(Collection dtos) contains list of dtos in private AssetClassVersion createNewAssetClassVersion(AssetDTO dto) method i am iterating but i want to get to get previous itearation values in current iteration if the dto.assetClassId is same then i want to append like previous matchedstring value + current matchedstring value public void parseDtoCollection(Collection dtos) { for (Iterator i = dtos.iterator(); i.hasNext();) { AssetDTO dto = (AssetDTO) i.next(); AssetClass assetClass = findAssetClass(dto.assetClassId); AssetClassVersion assetClassVersion = createNewAssetClassVersion(dto); assetClass.addVersion(assetClassVersion); if (dto.id > 0) { InformationAsset infoAsset …

Member Avatar
Member Avatar
+0 forum 6

# How do i do a previous and next buttons with ajax and get different results on same page? # Im fairly new to coding so i need some help. im trying to build a web site for geology ( rocks, etc). My concept is this. How do i use Ajax to display 3 previous/next results when you onclick(once or many times) a previous/next button and it displays the results each time on the same page? The current page has 3 results from a query the one on the far right is the latest result. Here is the code: 2 …

Member Avatar
+0 forum 0

how can i go back to the previous line if user enters a wrong input, im using C programming

Member Avatar
Member Avatar
+0 forum 17

ive already get the previous date but i dont know how can skip the weekend date.. example,,i run the application on monday the generated data must be the date on friday,,it must skip tsaturday and sunday,,i cant find similar problem in net,,plllzzz help...

Member Avatar
+0 forum 0

The End.