- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 5
- Posts with Downvotes
- 3
- Downvoting Members
- 4
37 Posted Topics
I have being trying to implement GA in java. please ccan anyone guid me on how to go about implementing it for a school that offer 13 subjects with 8 periods per day for 5days. They have 7 staffs of which some of them teach morethan one (1) subjects and … | |
Re: An advise.. is better u rename the uploaded img with the student_id that way you can always refer to the img using the student_id 1. change the uploaded img name to student_id if($_FILES['LRCard']['name'] != ""){ //$filename = $_FILES['LRCard']['name']; $ext = strrchr($filename,"."); $LRCardname = $student_id; $LRCardname .="_". $filename; if($ext ==".jpg" || … | |
Re: import java.util.Scanner; public class OddEve { public static void main( String[] arg) { Scanner in = new Scanner(System.in); System.out.print("Enter Numbers: "); String numbers = in.nextLine(); int sumofodd = 0 ; int sumofeven = 0; for (String retval : numbers.split(" ")) { int number = Integer.parseInt( retval ); if( (number % … | |
Re: just an idea.. u could separate the names from price i.e // initialize output array $nameArray = array(); $priceArray = array(); $tmpArray = explode("/", $aName); foreach ($tmpArray as $tmpString) { $tmpOneRow = explode("-", $tmpString); // add two elements to the output array $nameArray[] = $tmpOneRow[0]; $priceArray[] = $tmpOneRow[1]; } // … | |
Re: I dont know if this will help i split the text then loop through the splited word one after the other then compare String temp=""; int count = 1; String inputPhrase = input.nextLine(); //grad input phrase String []splited = inputPhrase.split(" "); //split for ( int i=0; i<splited.length; i++) { val … | |
Re: try this $result = mysql_query("SELECT cat.Name, sub.Name FROM sub_categories AS sub, categories AS cat WHERE cat.id=sub.categoryId AND sub.id=$categoryId | |
Re: are you sure that the db has password? or why commenting that way its better you move your comment to the end of each statement. | |
| |
Re: you can only access what is available to you as end user. let the people managing the site do the work. sorry if my response is harsh ![]() | |
Re: my little advise for you is create a folder and set the access permission through windows for that folder to be read/writable then further with your program. | |
Re: what was the full path to the tmp folder in your php.ini? from my own confi file i have this **;upload_tmp_dir =** which means am using the system temp folder so if am not on C: drive then i can create a folder call tmp on D: drive and change … | |
Re: Sorry freind you have to terminate your script on any of the error occuring because if an error occure that say the username is empty according to your script you echo error msg and that doesn't stop you code from continuing execution try this include 'connect.php'; if (isset($_POST['submit'])){ if (!empty($_REQUEST['user'])){ … ![]() | |
Re: $temp_file = sys_get_temp_dir(); echo $temp_file; | |
Hello guys, i've being searching for how is it possible to get value of a form element i.e selection tag that was injected by jquery be access on submitting the form. All the form element value where posted except for the selection element that was injected with jquery. how can … | |
Re: // Check if delete button active, start this if($_POST['delete']){ for($i=0;$i<count($_POST['checkbox']);$i++){ $checkbox = $_POST['checkbox'] $del_id = $checkbox[$i]; $sql = "DELETE FROM $tbl_name WHERE id='$del_id'"; $result = mysql_query($sql); } // if successful redirect to delete_multiple.php | |
Re: why not enclose the variables in curly braze i.e WHERE faultid={'$faultid'}"; | |
Re: well not quite sure what u mean but if u want to retain inputed value and at thesame time input another value without loosing previous value then u need to create a hidden field and for every input you entered u submit the form from there u can always grad … | |
hi guys, am stil new to java their was a snippest code about getting screen size i've being seeing onine calling window.getSize() in what package is the object located. // Get the size of the screen Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); // Determine the new location of the window int w … | |
Re: <?php //require_once('recaptchalib.php'); $error = array(); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (isset($_POST['submit'])) { if( ($name !='') && ($email !='') && ($phone!='') && is_numeric($phone) && ($message !='' ) ) { $privatekey = "6LdRStUSAAAAABctjZq_iX249auG_kjaNvn_4vfN"; $resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], … | |
Re: I would have suggest to you to get a more way of detecting device because using that set of method to detect device might not work out properly for your conditions. take a look at WURFL [Tera-WURFL](http://dbapi.scientiamobile.com/wiki/index.php/Main_Page) it might help in detecting actual UA. hope it helps | |
guys i wil be glad if someone can explain how i can go about handling binary data, like parsing an image to be dispaly on a browser. | |
Re: it's better you store the image links in your db. this will not make the database grow in size in short time and ... | |
Re: the name&fat table with the insertid must have contain the new id you are inserting on the other 2 tables. or drop all the records on the tables (name&fat) and try again. ![]() | |
Re: use CURL checkout link [URL="http://php.bigresource.com/parsing-website-with-cURL-preg_match-yIHYSWHg.html"]http://php.bigresource.com/parsing-website-with-cURL-preg_match-yIHYSWHg.html[/URL] | |
Re: in the first place it like the form contains nothing important to send. if I were you I will just use session. hope you get what am saying. | |
![]() | Re: Same to YOu. i dont understand what you mean. When you talk of links it my be a link behind a button or <a> tag or you mean all the links on your site shouldn't go to external web page may be through redirection, actually i understand can give an … |
I was wandering if someone have ever install JMF on ubuntu before using the .bin package from sun site. I've being having problem while installing it. THe error it show was 309 file not found during extraction. | |
Re: can you send the sql struct of the database. 1. check the name used for the input text box for the username 2.when submit, first print the [CODE]$_POST['username'] [/CODE] - if it shows up the username 3. it might be from the feild/column name on your database (check smelling ) | |
Re: INSERT INTO table2 SELECT * FROM table1; | |
Re: SELECT * FROM tblevent WHERE MATCH (member) AGAINST('5'); | |
Re: when use [CODE]addslashes()[/CODE] then the opposite is [CODE]stripslashes()[/CODE] that's all you need. hope this helps [QUOTE=rajeesh_rsn;1712677]Hi I added a addslash before submit to database like [[CODE][/CODE]$bio=addslashes($_POST('bio'));[/CODE] it will add a "'" before submit .. and everything working fine .. but at the time of edit/ resubmit this form I am … | |
Re: session should not be twice since is just a registration page. But if you need validation whereby if there is any error you don't want the user to start re-entering his data again then is fine using session to store the values and display them when their is error during … | |
Re: there is a mistake that you can also make when using header() function which is spacing between the full column (:) before the page you are redirecting to e.g header('Location: page.html'); not header('Location:page.html'); or header('Location : page.html'); take note. | |
Hello guys; Please I want to compile project that has a Static link Library of which I want it to automatically Copy it self(.Lib) to a specific folder when ever I build it and also copy the Include (.h) file to a specific folder of my choice. I will be … |
The End.