Stats: 3,191,322 members, 7,943,809 topics. Date: Monday, 09 September 2024 at 03:18 AM |
Nairaland Forum / Bheey's Profile / Bheey's Posts
(1) (of 1 pages)
![]() |
URGENT: Drivers are needed for urgent full-time work. Candidate(s) must reside along Shogunle or Ladipo area of Lagos State or its environs. Candidate(s) must at least know how to speak and understand English. Candidates must have good driving experiences and a valid Driver's License. It is a contract work and may span Months based on negotiation and Performance. Renumeration is good. Please, interested candidates should call this number: 07062952614. Response will be based on first come first served requests. |
![]() |
Can someone please send me how to go about configuring my gprs, IP e.t.c. I've sent "WAP GPRS BLACKBERRY 9300" to 232 with no reply. I called customer care and followed the prompts. A msg was sent to my phone that :settings for my device are not yet available. Please call 111 or 131 for manual assistance;:. Please, tell me , hope I've not made a wrong choice of Phone and Model o. I can't sleep sef. That money no small at all o |
![]() |
Hi Poster, I'm a lady in a position as you are. Can u contact me so I have a chat with u? |
![]() |
Abeg see [size=20pt]http://womensinfidelity.com/[/size] . I no fit shout! [s]We all have our dirty linens which we cover up[/s]. No-one is a saint. May God and HIS Holy Spirit continue to guide as all! |
![]() |
U guys know the lady is in a really deep emotional trauma now as the 2nd guy seeing the state of the lady have began 2 say all sorts of things about her , that she is a slot even though he know quite well that the lady is more confused now. The lady seeing that d 2nd guy was annoyed with her and doubted her trust told d 1st guy 2 quit callg her that he wants 2 break her relationship. She went 2 d 2nd guy's house 2 actually beg him REALLY. He told her he was going 2 church. She said she wanted 2 follow him 2 church and he declined sayg he's not going again that he wants 2 see his friend off. The lady knowing he did not want her 2 go with him went 2 his church (4 d 1st time ever) just 2 apologise that she was not double-dated him and has never done so. He seeing her in church was shocked. D lady went 2 see him in his dept in church and saw d Pastor with him. He quickly left d pastor's presence leaving the Pastor and d lady stunned. D lady feeling weak went back 2 his house and saw he has changed d house key. She caleed severally and he eventually opened d door. D lady was surprised 2 c him shaking & sayg he cant bliv that she's cheatg on him etc. D lady begge, knelt down and even lured him in every way , yet he became more aggressive and cursed sayg all sorts of things like he regretted d 1st day he set eyes on her. That she should just get out of his house , dt he does not want her in his life again. She begged and begged, he just went inside and bought out her stuffs that was with him and put them outside on the terrace telling her 2 pack her things away and leave him alone. She did not and he then told her that he was going out that he needs 2 lock his door. That wa show he left d house. The lady went home , not experiencing such in her life b4 could not even tell any1 'coz of d shock, but her family noticed and she told then all. He later came back 2 beg her but she told him 2 just leave her alone that she needs time 2 think over her life. He went 2 beg d lady's parents who told him 2 go 2 d lady dt it was her he actually hurt not them (even though at an occasion, he has acted aggressively 2 them on phone comcerning this same issue). He begged and begged and shed tears sayg that its d love he has 4 her dt made him behave like dt. Dt he's not an aggressive person. She just told him 2 leave her alone at d moment. After some days, he later came 2 collect his house key from her sayg he misplaced his'. This was actually d beginning of another phase of this issue. So many things have happened again , will continue later. I have 2 do some things now! |
![]() |
@pc guru, thanks for the advice , can u look into the code and c where all wat u said fits? @donline, can u send it to me? , let me know pls. *dhtml. I'm not into a crawler or spider o , thanks though 4 d tip. This is just a local web search engine for a job website that have a database of jobs with links to the job sites that are recruiting fo the various vacancies. This is the code I've worked on. But I still can't get what I want. This is my index page code: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form method="post" action="BinarySearch1.php"> <input name="search_text" type="text"> <input name="search_Submit" type="submit" value="Search for Job" /> </form> </body> </html> This is the CSS Styles code: .search_boom { color: #4A4A24; background-color: #E8E8D0; } .table2 { border: thin solid #4A4A24; width: 880px; } .table1 { } .BoomStyle1 { color: #2222FF; text-decoration: none; } .div_Main1 { width: 880px; color: #2222FF; background-color: #ECECFF; border: thin solid #9191FF; } .Header_Query { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-style: italic; line-height: normal; color: #003366; } This is the BinarySearch1.php code: <?php include_once(', /db_searchMe.php'); //Post Search Keyword Now! $Submit= trim($_POST['search_Submit']); $text1 = trim($_POST['search_text']); //echo "$text1" . "<br>"; //Test Output //if (!isset($Submit)) if (!isset($Submit)) { echo "You didn't submit a keyword"; } else { if (strlen ($text1) <= 2) echo "Search term too short"; else { //This exports the values to be compared with //This Query only exports values that fills up the array() $query = "SELECT * FROM searchengine order by title ASC"; $result = mysql_query($query); $row = mysql_num_rows($result); //Declare the array variable $arr = array(); $arr2 = array(); //Dynamically Populate the 1:n array of Job Titles from the Database for($i = 0; $i < $row; $i++) { $info = mysql_fetch_array($result); $title_a = $info['title']; //echo $title_a . "<p>" ; $arr[] = $title_a; //$arr2[] .= array($i => $title_a); } //, Start Binary Searching Here, include_once('BS_Code.php'); //, End Binary Searching, $starttime = microtime(true); echo '<p>' . $starttime . '</p>'; // $query = mysql_query("select * from table" ![]() //, Get other details from the database, $sql_out="select * from searchengine where title like '%$val%' order by title ASC"; $result_out=mysql_query($sql_out) or die(mysql_error()); $row_out=mysql_num_rows($result_out); //--------------------------------------------------------------------------------------- $endtime = microtime(true); echo '<p>' . $endtime . '</p>'; $time = $endtime - $starttime; echo $time; //--------------------------------------------------------------------------------------- if($row_out<1) { $rows="No job listing found for the keyword <b>" . $val . "</b>"; } elseif($row_out==1) { $rows="<b> One </b> job listing found for the keyword <b>" . $val . "</b>"; } else { $rows= "<b>" . $row_out . " job listings </b> found for the keyword <b>" . $val . "</b>"; } echo "<br><i>" . $rows . "</i>"; echo "<span class='Header_Query'><br> Query took " . $time . " seconds </span>"; for($k=0;$k<$row_out;$k++) { $me=mysql_fetch_assoc($result_out); ?> <link href="Styles_search1.css" rel="stylesheet" type="text/css" /> <table width="30%" border="0"> <tr> <td width="10%"> <span class="Header_Query"> <?php echo $k+1 . "<br>"; ?> </td> <td> <?php echo "<br><b>" . $me['title'] . "<b><br>"; $url_boom = $me['url']; echo "<a href='$url_boom'><b>" . $me['description'] . "<b><br></a>"; ?> </td> <?php } ?> </tr> <?php } //End Inner Else } //End Outer Else //, End, ?> </table> This is the BS_Code.php code: <?php // Algorithms // Recursive binary search algorithm on an array of strings. // Returns the index of an element in the array, // or -1 if the string can not be found. // The string must be sorted in ascending order in the array. // The array is a global variable, that optimizes speed. // The move is performed by the starting and ending indices. //Assign Array to variable $A=$arr; //Test Output //print_r($A) . "<p>"; //echo "<p>"; $size=count($A); $val=""; function binarySearch($value,$starting,$ending) { if($ending<$starting) { return -1; } $mid=intVal(($starting+$ending)/2); global $A; $result=intVal(strcmp($value,$A[$mid])); //echo $result . "<br>"; if($result===0) { return $mid; } else { if($result<0) { $ending=$mid-1; // echo $ending . "<br>"; } else { if($result>0) { $starting=$mid+1; // echo $starting . "<br>"; } }} return binarySearch($value,$starting,$ending); } //________________________________________ print_r(array_values($A)).'<br>'; //_________________________________________ echo "<br>"; //print_r($B); echo "<br>"; //_________________________________________ //echo "Give a word to search:" . "<br>"; //_________________________________________ //Assign $val=$text1; //fclose($fp); $y=binarySearch($val,0,count($A)-1); if($y>=0) { echo $val, " ", "is at position", " ", $y, "\n"; } else { echo $val, " ", "not found in the array, ", "\n"; } ?> This is the table structure (a dummy table anyway): CREATE TABLE IF NOT EXISTS `searchengine` ( `id` int(11) NOT NULL auto_increment, `title` varchar(100) collate latin1_general_ci NOT NULL, `description` text collate latin1_general_ci NOT NULL, `url` varchar(200) collate latin1_general_ci NOT NULL, `keywords` varchar(400) collate latin1_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=9 ; -- -- Dumping data for table `searchengine` -- INSERT INTO `searchengine` VALUES (1, 'Google', 'This is a search engine to find what you need on it.', 'http://www.google.com', 'google search engine'); INSERT INTO `searchengine` VALUES (2, 'phpacademy', 'Free php video tutorials!', 'http://www.phpacademy.info', 'php free videos video tutorial tutorials'); INSERT INTO `searchengine` VALUES (3, 'Yahoo!', 'A search engine. Find what you need!', 'http://www.yahoo.com', 'yahoo search engine'); INSERT INTO `searchengine` VALUES (4, 'Booming Solutions', 'My Solutions ni o!', 'http://www.boomingsolutions.net', 'Boom, Solutions, Booming Solutions, Web Design'); INSERT INTO `searchengine` VALUES (5, 'For All I care O!', 'Ok Now!', 'http://www.boomingsolutions.net', 'Check Me Out'); INSERT INTO `searchengine` VALUES (6, 'Same To This Too O!', 'Says who?', 'http://www.boomingsolutions.net', 'Say I said so o!'); INSERT INTO `searchengine` VALUES (7, 'Boom', 'Same ni!', 'http://www.boomingsolutions.net', 'Boom, Solutions, Booming Solutions, Web Design'); INSERT INTO `searchengine` VALUES (8, 'Solutions', 'I told ya!', 'http://www.boomingsolutions.net', 'Say I said so o!'); Now, these codes are working properly. What it does is that it outputs values from my database and stores them in an array and then searches the input from the user in the array using Binary Search Algorithm. The problem now is this: I want to explode the search term by the user and then run a loop to search through the array and then output all corresponding outputs using SPACE as the delimiter. For instance if the user enters "Booming Solutions and Yahoo are same", then it explodes it by the spaces(as delimiter) to 'Booming', 'Solutions', 'Yahoo', and 'Same' (while ignoring common words like 'and' and 'are'). It then runs a loop using the Binary code algorithm above to display the following outputs: Boom Booming Solutions Solutions Same To This Too O! Yahoo! according to the table structure. Do anyone of you have an idea on how to go about this please? |
![]() |
Are you guys saying now that going back to the first guy might not be a good idea or what? What I just know is this: If a guy loves some1, he will do anything 2 have her , I'm so confused! |
![]() |
Thanks guys. And donline, its a web search engine , a web job search engine to be precise. Please let me know if you can post it 2 me. I'll give u my email address. @ *dhtml, its not a crawler o , a spider is a much more bigger project. @ pc guru, thanks for the reply. This is the used that I used. But I can't still get what I want. This is my index page code: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form method="post" action="BinarySearch1.php"> <input name="search_text" type="text"> <input name="search_Submit" type="submit" value="Search for Job" /> </form> </body> </html> This is the CSS Styles code: .search_boom { color: #4A4A24; background-color: #E8E8D0; } .table2 { border: thin solid #4A4A24; width: 880px; } .table1 { } .BoomStyle1 { color: #2222FF; text-decoration: none; } .div_Main1 { width: 880px; color: #2222FF; background-color: #ECECFF; border: thin solid #9191FF; } .Header_Query { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-style: italic; line-height: normal; color: #003366; } This is the BinarySearch1.php code: <?php include_once(', /db_searchMe.php'); //Post Search Keyword Now! $Submit= trim($_POST['search_Submit']); $text1 = trim($_POST['search_text']); //echo "$text1" . "<br>"; //Test Output //if (!isset($Submit)) if (!isset($Submit)) { echo "You didn't submit a keyword"; } else { if (strlen ($text1) <= 2) echo "Search term too short"; else { //This exports the values to be compared with //This Query only exports values that fills up the array() $query = "SELECT * FROM searchengine order by title ASC"; $result = mysql_query($query); $row = mysql_num_rows($result); //Declare the array variable $arr = array(); $arr2 = array(); //Dynamically Populate the 1:n array of Job Titles from the Database for($i = 0; $i < $row; $i++) { $info = mysql_fetch_array($result); $title_a = $info['title']; //echo $title_a . "<p>" ; $arr[] = $title_a; //$arr2[] .= array($i => $title_a); } //, Start Binary Searching Here, include_once('BS_Code.php'); //, End Binary Searching, $starttime = microtime(true); echo '<p>' . $starttime . '</p>'; // $query = mysql_query("select * from table" ![]() //, Get other details from the database, $sql_out="select * from searchengine where title like '%$val%' order by title ASC"; $result_out=mysql_query($sql_out) or die(mysql_error()); $row_out=mysql_num_rows($result_out); //--------------------------------------------------------------------------------------- $endtime = microtime(true); echo '<p>' . $endtime . '</p>'; $time = $endtime - $starttime; echo $time; //--------------------------------------------------------------------------------------- if($row_out<1) { $rows="No job listing found for the keyword <b>" . $val . "</b>"; } elseif($row_out==1) { $rows="<b> One </b> job listing found for the keyword <b>" . $val . "</b>"; } else { $rows= "<b>" . $row_out . " job listings </b> found for the keyword <b>" . $val . "</b>"; } echo "<br><i>" . $rows . "</i>"; echo "<span class='Header_Query'><br> Query took " . $time . " seconds </span>"; for($k=0;$k<$row_out;$k++) { $me=mysql_fetch_assoc($result_out); ?> <link href="Styles_search1.css" rel="stylesheet" type="text/css" /> <table width="30%" border="0"> <tr> <td width="10%"> <span class="Header_Query"> <?php echo $k+1 . "<br>"; ?> </td> <td> <?php echo "<br><b>" . $me['title'] . "<b><br>"; $url_boom = $me['url']; echo "<a href='$url_boom'><b>" . $me['description'] . "<b><br></a>"; ?> </td> <?php } ?> </tr> <?php } //End Inner Else } //End Outer Else //, End, ?> </table> This is the BS_Code.php code: <?php // Algorithms // Recursive binary search algorithm on an array of strings. // Returns the index of an element in the array, // or -1 if the string can not be found. // The string must be sorted in ascending order in the array. // The array is a global variable, that optimizes speed. // The move is performed by the starting and ending indices. //Assign Array to variable $A=$arr; //Test Output //print_r($A) . "<p>"; //echo "<p>"; $size=count($A); $val=""; function binarySearch($value,$starting,$ending) { if($ending<$starting) { return -1; } $mid=intVal(($starting+$ending)/2); global $A; $result=intVal(strcmp($value,$A[$mid])); //echo $result . "<br>"; if($result===0) { return $mid; } else { if($result<0) { $ending=$mid-1; // echo $ending . "<br>"; } else { if($result>0) { $starting=$mid+1; // echo $starting . "<br>"; } }} return binarySearch($value,$starting,$ending); } //________________________________________ print_r(array_values($A)).'<br>'; //_________________________________________ echo "<br>"; //print_r($B); echo "<br>"; //_________________________________________ //echo "Give a word to search:" . "<br>"; //_________________________________________ //Assign $val=$text1; //fclose($fp); $y=binarySearch($val,0,count($A)-1); if($y>=0) { echo $val, " ", "is at position", " ", $y, "\n"; } else { echo $val, " ", "not found in the array, ", "\n"; } ?> This is the table structure (a dummy table anyway): CREATE TABLE IF NOT EXISTS `searchengine` ( `id` int(11) NOT NULL auto_increment, `title` varchar(100) collate latin1_general_ci NOT NULL, `description` text collate latin1_general_ci NOT NULL, `url` varchar(200) collate latin1_general_ci NOT NULL, `keywords` varchar(400) collate latin1_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=9 ; -- -- Dumping data for table `searchengine` -- INSERT INTO `searchengine` VALUES (1, 'Google', 'This is a search engine to find what you need on it.', 'http://www.google.com', 'google search engine'); INSERT INTO `searchengine` VALUES (2, 'phpacademy', 'Free php video tutorials!', 'http://www.phpacademy.info', 'php free videos video tutorial tutorials'); INSERT INTO `searchengine` VALUES (3, 'Yahoo!', 'A search engine. Find what you need!', 'http://www.yahoo.com', 'yahoo search engine'); INSERT INTO `searchengine` VALUES (4, 'Booming Solutions', 'My Solutions ni o!', 'http://www.boomingsolutions.net', 'Boom, Solutions, Booming Solutions, Web Design'); INSERT INTO `searchengine` VALUES (5, 'For All I care O!', 'Ok Now!', 'http://www.boomingsolutions.net', 'Check Me Out'); INSERT INTO `searchengine` VALUES (6, 'Same To This Too O!', 'Says who?', 'http://www.boomingsolutions.net', 'Say I said so o!'); INSERT INTO `searchengine` VALUES (7, 'Boom', 'Same ni!', 'http://www.boomingsolutions.net', 'Boom, Solutions, Booming Solutions, Web Design'); INSERT INTO `searchengine` VALUES (8, 'Solutions', 'I told ya!', 'http://www.boomingsolutions.net', 'Say I said so o!'); Now, these codes are working properly. What it does is that it outputs values from my database and stores them in an array and then searches the input from the user in the array using Binary Search Algorithm. The problem now is this: I want to explode the search term by the user and then run a loop to search through the array and then output all corresponding outputs using SPACE as the delimiter. For instance if the user enters "Booming Solutions and Yahoo are same", then it explodes it by the spaces(as delimiter) to 'Booming', 'Solutions', 'Yahoo', and 'Same' (while ignoring common words like 'and' and 'are'). It then runs a loop using the Binary code algorithm above to display the following outputs: Boom Booming Solutions Solutions Same To This Too O! Yahoo! according to the table structure. Do anyone have an idea on how to go about this please? An urgent reply is needed as I have to present it very soon! |
![]() |
Ideas wanted please , This is actually a Project. thanks! Thanks. |
![]() |
Joomla is a free application , do one really need help on that when the manual is everywhere on the Internet? |
![]() |
I think we have more than 1630 , or maybe 1631 crazy threaders on nairaland , |
![]() |
hmmm , I feel like having it like 1620 to 1621 times or more , I so much miss it , I ain't tired anyway! |
![]() |
I think I have to jump really fast so that I will not be overtaken. I take 04 04 024 01k , This must be the end thereof , and utmost satisfaction too! Ciao! |
![]() |
Home Video (Part2)! lol ![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
This is the thread of the year , no I mean CENTURY! Bravo man, u're da boom! |
![]() |
The truth is that the 2nd guy really loves the lady and very caring too. The most amazing thing here that I discovered is that if u don't really love some1 , its hard 2 force yourself loving dt same person. No1 is painted black here , dts just how it is. The 1st guy has his behaviour too , dts just it. Infact, when d 1st guy came back, d lady was d one telling the 2nd guy about it dt she can never go back 2 him etc. Its just dt d response of d 2nd guy 2 d issue really scared her that she had 2 withdraw. To d extent that he lied and came 2 collect the spare of his house key from her sayg he misplaced his. Meanwhile, b4 then, if there is any little disagreement between them, he changes d house key so d lady is not allowed 2 come in, this he will revert if d issue dies down. ![]() ![]() Yet, d lady still sticked 2 him , thinkg maybe with time, he can change and mayb she will love him 2 , But, wat I just noticed is dt d 2nd guy is an excessively jealous guy , cannot just stand 2 c any guy near d lady , 2 d extent dt he asked her 2 remove all male pictures on her phone , and wen she did not, all hell broke loose (dt was b4 now) , and she had 2 do dt , I don't just know , its a complicated issue , |
![]() |
Can u go back to a former boyfriend and marry him after he stopped calling you for over 2 yrs even wen u do? Such dt at d end of d day, u stopped calg 2 and started a new life afresh. His reasons been that he got misinformed about an issue and was expecting u to tell him. But d lady did not and he decided to withdraw to his shell. In those 2 long yrs, he had a girlfriend and decided 2 call it quits with her. U also had a boyfriend and even though he was not ur kind of man and u were not happy even though u tried loving him all those while , u still find urself crying in the closet. (The guy went all d way to rent a very expensive 3 bedroom apartment as he was convinced and wants 2 marry d lady). Whereas the 1st guy came back one day and started begging sayg he was misinformed and all that, that he wants her back. She told him she had a guy, he told him he has a girl 2 dt he had 2 leave her too since he was not happy , though it hurts.Now, this lady loves d 1st guy very much, but, she was committed 2 d other guy. She even told d other guy about wat was happening and he got mad. Things actually went from good 2 worse, to bad as d 2nd guy stopped trusting her even though she never actually 4 once double-dated him (she was not really in love with him anyway 'coz he was not her kind of man , she stayed with him 'coz, he has done 2 much 4 her willingly in so many ways, by sacrificing his time, money, resources etc on her even though she tried stoppg him most times). Now, d 1st guy is on bended knew saying d lady shld av been open 2 him in d beginning on all issues dt he did not want any problem or fall in2 a trap, dt dt was y he kept distant all those while. He told his friends, 2 beg d lady 4 him and other relevant ppl on this issue while promising he will continue loving her. He even promised marrying her immediately if she consented as he has known d truth 2 all wat caused d mix-up then. The question now is should d lady return to him or stick with d 2nd guy who have now taken things so hard and even calls her names , dirty names , (sayg she is double-dating which she is not. She regretted telling him anything) , ![]() She is in need of answers as this is a critical case in her life now. One more tin is d 2nd guy has turned aggressive sayg he can't stand infidelity etc. The lady's family has intervened and he spoke harsely to them includg d girl's mother , he later regretted as they say its up 2 her 2 decide if she still wants him as she has withdrawn from him 2 as d heat was so much from him dt he almost beat her up. He even spoilled her phone on one occasion after wanting to collect her phone 2 know who was callg her , The 2nd guy has come begging d lady on bended knees also sayg he's sorry that he has now learnt his lesson , but d lady is still adamant sayg she need 2 think over d issue very well , D first guy have also gone 2 d lady family explainig 2 them all wat happened then and y there was break in communication , and y he knows she is d 1 4 him. D lady is in a dilemma , opinions please! |
(1) (of 1 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 100 |