Click here to Skip to main content
15,904,500 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: help w/updating mysqli Pin
Richard MacCutchan28-Jun-15 21:37
mveRichard MacCutchan28-Jun-15 21:37 
Questionsearchable dropdown with large dataset Pin
byka26-Jun-15 1:59
byka26-Jun-15 1:59 
AnswerRe: searchable dropdown with large dataset Pin
F-ES Sitecore26-Jun-15 2:40
professionalF-ES Sitecore26-Jun-15 2:40 
QuestionUser Can't Get To Classic ASP Web Site Pin
GenJerDan24-Jun-15 5:34
GenJerDan24-Jun-15 5:34 
SuggestionRe: User Can't Get To Classic ASP Web Site Pin
Richard Deeming24-Jun-15 6:18
mveRichard Deeming24-Jun-15 6:18 
GeneralRe: User Can't Get To Classic ASP Web Site Pin
GenJerDan24-Jun-15 6:30
GenJerDan24-Jun-15 6:30 
AnswerRe: User Can't Get To Classic ASP Web Site Pin
Aladár Horváth3-Aug-15 3:40
professionalAladár Horváth3-Aug-15 3:40 
GeneralRe: User Can't Get To Classic ASP Web Site Pin
GenJerDan3-Aug-15 3:54
GenJerDan3-Aug-15 3:54 
QuestionAny one using spark API Pin
Rahul Singh Tomar19-Jun-15 23:36
Rahul Singh Tomar19-Jun-15 23:36 
Questionfeeling frustrated please help me Pin
Member 1177761319-Jun-15 1:35
Member 1177761319-Jun-15 1:35 
AnswerRe: feeling frustrated please help me Pin
Richard Deeming19-Jun-15 2:18
mveRichard Deeming19-Jun-15 2:18 
AnswerHtml not well formed Pin
Ferd Really23-Jun-15 7:30
Ferd Really23-Jun-15 7:30 
AnswerRe: feeling frustrated please help me Pin
Anil Vaghasiya14-Jul-15 21:43
professionalAnil Vaghasiya14-Jul-15 21:43 
QuestionWireframe / Mockup tools Pin
C-P-User-317-Jun-15 7:10
C-P-User-317-Jun-15 7:10 
Question[CKEditor] How to search the contents in the string? Pin
Member 110547239-Jun-15 15:43
Member 110547239-Jun-15 15:43 
QuestionHTML5: Local Data Base. Pin
Member 117446415-Jun-15 4:18
Member 117446415-Jun-15 4:18 
AnswerRe: HTML5: Local Data Base. Pin
Simewu15-Jun-15 12:38
professionalSimewu15-Jun-15 12:38 
Questionproblem to check value array Pin
Loei Maleki4-Jun-15 1:52
Loei Maleki4-Jun-15 1:52 
PHP
$latlayer = array(
			array('minW' => 0 , 'minH' => 0 , 'maxW' => 8.5 , 'maxH' => 4.8 , 'val' => 'lat1' ),
			array('minW' => 8.5 , 'minH' => 4.8 ,'maxW' => 17 , 'maxH' => 9.6 , 'val' => 'lat2' ),
			array('minW'=> 17 , 'minH' => 9.6, 'maxW' => 25.5 , 'maxH' => 14.4 , 'val' => 'lat3' ),
			array('minW' => 25.5 , 'minH' => 14.4, 'maxW' => 34 , 'maxH' => 19.2 , 'val' => 'lat4' ),
			array('minW' => 34 , 'minH' =>19.2, 'maxW' => 42.5 , 'maxH' => 24 , 'val' => 'lat5' ),
			array('minW' => 42.5 , 'minH' => 24, 'maxW' => 51 , 'maxH' => 28.8 , 'val' => 'lat6' ),
			array('minW' => 51 , 'minH' => 28.8, 'maxW' => 59.5 , 'maxH' => 33.6 , 'val' => 'lat7' ),
			array('minW' => 59.5 , 'minH' => 33.6, 'maxW' => 68 , 'maxH' => 34.8 , 'val' => 'lat8' ),
			array('minW' => 68 , 'minH' => 34.8, 'maxW' => 76.5 , 'maxH' => 43.2 , 'val' => 'lat9' ),
			array('minW' => 76.5 , 'minH' => 43.2, 'maxW' => 85 , 'maxH' => 48 , 'val' => 'lat10' ),
			array('minW' => 85 , 'minH' => 48, 'maxW' => 93.5 , 'maxH' => 52.8 , 'val' => 'lat11' ),
			array('minW' => 93.5 , 'minH' => 52.8, 'maxW' => 100 , 'maxH' => 50 , 'val' => 'lat12' ),
		);

$wimg = 20;
$himg = 9.6;
foreach($latlayer as $current)
				{
					if( $wimg >= $current['minW'] and $wimg <= $current['maxW'])
					{
						echo  $current['val'];
						break;
					}


			}

result lat 2 OK no problem one value checked

The problem with checking the tow value of the array

minW-maxW and minH-maxH = lat?
AnswerRe: problem to check value array Pin
Loei Maleki4-Jun-15 1:57
Loei Maleki4-Jun-15 1:57 
QuestionCan't find where is the error from Pin
newbiejo2-Jun-15 22:50
newbiejo2-Jun-15 22:50 
QuestionUnable to stop SQL injection errors. Pin
Stephen Holdorf29-May-15 2:10
Stephen Holdorf29-May-15 2:10 
AnswerRe: Unable to stop SQL injection errors. Pin
Sascha Lefèvre29-May-15 2:55
professionalSascha Lefèvre29-May-15 2:55 
GeneralRe: Unable to stop SQL injection errors. Pin
Stephen Holdorf29-May-15 4:03
Stephen Holdorf29-May-15 4:03 
GeneralRe: Unable to stop SQL injection errors. Pin
Sascha Lefèvre29-May-15 4:10
professionalSascha Lefèvre29-May-15 4:10 
GeneralRe: Unable to stop SQL injection errors. Pin
Richard Deeming29-May-15 4:11
mveRichard Deeming29-May-15 4:11 

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.