- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
9 Posted Topics
I'm wondering, should I do any advanced security checks for view-only ordering functions. [url]http://www.site.com/?product=shoes&order=[/url][B][COLOR="Red"]manufactured[/COLOR][/B]&ord=[B][COLOR="Red"]desc[/COLOR][/B] when I just only use this data in echo for pagination: [CODE=PHP]$i = 0; echo "<div> <a href='/?products=".$data['cat']."&order=".$_GET['order']."&ord=".$_GET['ord']."&page=".$i+1."'>NEXT PAGE</a>";[/CODE] JUST IN ECHO CASE. These $_GET's doesn't used anywhere else(ex. sql queries etc.)... ------------- Is there is … | |
I'm going to put the text information to "data.bin" file in binary mode. Then i'm goint to read that information from file. I did by using "FileOutputStream", then "ObjectOutputStream" class and his "writeObject();" method, but this one just puts serialized object data to file, and as I understand - that's … | |
I'm build a huge xml->mysql data importer ar parser from outer server. And I need a script example, what to do with big [CODE=PHP] $xml = simplexml_load_file('plane.xml'); if($xml) { for($lvl1=0; $lvl1<(count($xml->Trip)); $lvl1++) { for($lvl3=0; $lvl3<(count($xml->Trip[$lvl1]->Hotels->Hotel)); $lvl3++) { // Fill an array with the travel data $element['trip_id'] = (string)$xml->Trip[$lvl1]['id']; $element['description'] = … | |
I had a code, which was working OK. [CODE="PHP"]echo "<form name='pm_form' method='post' action='?inbox'>\n"; echo "<input type='submit' name='save_msg' value='Save' class='button' />\n"; echo "</form>\n"; [/CODE] Poor quality button, I changes to a well looking image: [CODE="PHP"]echo "<form name='pm_form' method='post' action='?inbox'>\n"; echo "<input type='image' src='button_save.png' value='Save' name='save_msg'/>"; echo "</form>\n";[/CODE] But the problem is, … | |
I wrote a Java program, and it successfully compiles and runs in NetBeans, but I'm not able to do the same in the [B]command line[/B], on Windows XP. It works ok with 1 class, but when I have few files 'package' I have a problems. 1.Start -> run -> cmd … | |
I need to build a program - hotel, which has from 1 to XXX rooms. It is ok, when I have only the: [CODE=JAVA]private static int[] array_of_rooms; <... CLASS CONSTRUCTOR ...> array_of_rooms = new int[size]; // Size is defined size, of rooms in the hotel. // Fill default room status … | |
| |
I have class: [code=c++]template <class T> class Graph; And I have a function: template <class T> void Graph<T>::erase_greater(T needle) { if(TEMPLATE TYPE IS "STRING" OR "CHAR") { do nothing; } else { if(TEMPLATE TYPE IS ONE OF THE INT TYPES) { if(strlen(var1) > strlen(var2)) { USE Var2; } else { … | |
Well, I don't want to do lot of copy-paste in my code, so, I'm just wondering - is it possible to have two different names of one functions(I prefer that function name describe what is used for): ex: [CODE]int do_my_client(int info) { blah blah blah; .... .... return inf; } … |
The End.