Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,207,872 members, 8,000,678 topics. Date: Tuesday, 12 November 2024 at 01:34 PM |
Nairaland Forum / Mby247's Profile / Mby247's Posts
(1) (of 1 pages)
Properties / Re: How Do I Raise Fund From This Properties. by mby247: 3:10pm On May 01, 2012 |
Iϯ iȿ located in Ogun state. The twin ground floor iȿ both plastered. |
Properties / How Do I Raise Fund From This Properties. by mby247: 8:58am On May 01, 2012 |
I need an advice from good minded people. While I was abroad, I managed to erect 3 Build, all lined together. 2 is a twin upstair flat (2 x 2 Bedroom ground and up floor) and 1 4 Bedroom Aprt with all rooms having toilet. I have plasterd the ground floor for the twin building. Now am back and presently broke. No savings cos all i earned while abroad was channel to this project. I hope of raise fund is from this building. Should I put the complete ground floor for rent? I intend roofing all same time so has to boycott additional fees from Omo Onile's. I need candid advice. How do I raise fund from this properties. |
Programming / Re: I Need Help Pls On My Php Script by mby247: 10:15am On Jun 07, 2010 |
Dear friend, Thanks for the assistance and help. Must greatful and I really appreciate. The main problem am having is, I got 2 tables in a database, am I correct if I write it this way? //Connect To Database $hostname='localhost'; $username='fooexample'; $password='xxxxxx'; $dbname='fooexample'; $usertable='ECMY4572957'; $usertable2='FTYX34555867'; $usertable3='FTYS56869456'; $usertable4='GTVX34554367'; Also how to I run each table independently, the logic is it is a shipping website and the table are tracking history for each customer. I want them to be able to view the tracking history on the table without them seeing the order table. As you can see below the script if for the first table, so I do I go about with the other tables? Can you please explain. mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.'); mysql_select_db($dbname); //This array contains all correct tracking numbers $track_number = $_POST['track_number']; if(empty($track_number)){ die('<b>Please go back & enter tracking number</b>'); } else if(strlen($track_number) <= 0 || strlen($track_number) > 15){ die('<b>Invalid tracking number, please go back</b>'); } else{ $correct_tracking_numbers=array(ECMY4572957, BHSZ006933); if(in_array($track_number,$correct_tracking_numbers)){ $query = 'SELECT * FROM ' . $usertable; $result = mysql_query($query) or die(mysql_error()); echo "<b>Container Number: ECMY4572957</b>"; echo "<br>"; echo "<br>"; echo "<b>B/L Number: BHSZ006933</b>"; echo "<br>"; echo "<br>"; echo "<b>Estimated Delivery: 14 Days</b>"; echo "<br>"; echo "<br>"; echo "<b>Port of Loading : Port Klang, Malaysia</b>"; echo "<br>"; echo "<br>"; echo "<b>Port of Transshipment : Port Moresby, Papau New Guinea</b>"; echo "<br>"; echo "<br>"; echo "<b>Port of Discharge/Unloading: Port Honiara, Solomon Island</b>"; echo "<br>"; echo "<br>"; echo "<b>NOTE</b>:<i>Container to be transshipped with another Shipping Line in Papau New Guinea. Once container is <br>transshipped, we would advice the delivery carrier and their Agent contact details in Solomon Island.</i></br>"; echo "<br>"; echo "<br>"; echo "<b>SHIPMENT HISTORY</b>"; echo "<br>"; echo "<table border='5'> <tr> <th>Date/Time</th> <th>Event</th> <th>Location</th> <th>Details</th> <th>Type of Move</th> </tr>"; while($row = mysql_fetch_array($result)){ echo "<tr>"; echo "<td>" . $row['Date/Time'] . "</td>"; echo "<td>" . $row['Event'] . "</td>"; echo "<td>" . $row['Location'] . "</td>"; echo "<td>" . $row['Details'] . "</td>"; echo "<td>" . $row['Type of Move'] . "</td>"; echo "</tr>"; } echo "</table>"; echo "<br>"; echo "<br>"; echo "<br>"; echo "<br>"; echo "<br>"; }else{ echo '<b>The tracking number is invalid, Please go back & enter a Valid Tracking Number!</b>'; } } ?> </body> </html> |
Programming / I Need Help Pls On My Php Script by mby247: 8:24pm On Jun 05, 2010 |
Pls I need help. I got two tables on a database but I dont know how to run them independently. Please find below our script. It is a shipping tracking website. All I want is each table to run independently once tracked. ------------------------------------------------- <?php //Connect To Database $hostname='localhost.com'; $username='forexample'; $password='xxxx'; $dbname='example'; $usertable='ECMY4572957'; mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.'); mysql_select_db($dbname); //This array contains all correct tracking numbers $track_number = $_POST['track_number']; if(empty($track_number)){ die('<b>Please go back & enter tracking number</b>'); } else if(strlen($track_number) <= 0 || strlen($track_number) > 15){ die('<b>Invalid tracking number, please go back</b>'); } else{ $correct_tracking_numbers=array(ECMY4572957, BHSZ006933); if(in_array($track_number,$correct_tracking_numbers)){ $query = 'SELECT * FROM ' . $usertable; $result = mysql_query($query) or die(mysql_error()); echo "<table border='5'> <tr> <th>Date/Time</th> <th>Event</th> <th>Location</th> <th>Details</th> <th>Type of Move</th> </tr>"; while($row = mysql_fetch_array($result)){ echo "<tr>"; echo "<td>" . $row['Date/Time'] . "</td>"; echo "<td>" . $row['Event'] . "</td>"; echo "<td>" . $row['Location'] . "</td>"; echo "<td>" . $row['Details'] . "</td>"; echo "<td>" . $row['Type of Move'] . "</td>"; echo "</tr>"; } echo "</table>"; echo "<br>"; echo "<br>"; echo "<br>"; echo "<br>"; echo "<br>"; }else{ echo '<b>The tracking number is invalid, Please go back & enter a Valid Tracking Number!</b>'; } } ?> </body> </html> How do I write or connect the second usertable to the php file as the first script which is working fine once tracked? The table name is "FTYX34555867". I don't know how to run or write multiple table on same database. All I need is, how to connect multiplt tables so each table can run different tracking number. Am stress as am not getting it well. Please help me. |
Romance / Re: Can I Trust Her? by mby247: 10:19am On Apr 30, 2010 |
Aproko: Yes at first she told me she is engage and wen I ask about the bf, she would be like "Leave my bf outta this and discuss something else". I do cherish her so much. Of lately, she don't reply to my msgs anymore cos wen last I spoke to her I told her I feel some1 wanna take her from me n she reaffirm her commitment n love for me. I owez for or in love with "V" babes but I have no choice than to respect there stand and decision for why they wanna keep it and wen and whom they wan to give it to. But like Phoneixchi said, if she is for me, let thy will be done, hehe. So am just keeping my mind n tot nw away from the insecurity cos I know she is in an environment with lot of guys out there in sch and if she really loves me as she claim, she would be there and wait for me. Thanks all for ur opinion and contribution. |
Romance / Re: Do Nigerians Always Marry Each Other? by mby247: 2:11pm On Apr 28, 2010 |
Damysa: Am born in 9ja with rubber spoon and not silver spoon. As a youth, am striving to make a good future for myself and next generation because I pass thru hell in my childhood age. So wateva I suffer to establish is for my next generation to enjoy cos 9ja of tomorow won't be easy, so if they live abroad and sell my sweat just to enjoy in a develop country wat is my aim of suffering and struggle? No be waste? or wat is my aim of struggling if there is no child to enjoy nor be there to look over and manage my investment wen they all base abroad? We all have diff perception on how we see this issue but for me, home is home even if it is slum I would ever go back there. Ask urself, why OBJ no go abroad go dey enjoy the money wen him embezzle? Look at the likes of Adenuga, dangote and other prominent and rich guys in 9ja. Mind u, their children r all base in 9ja and manage there investments. I know 4 sure ur children would ever live when they r grown up but how would you feel if they sell ur investment, take the money to a foreign land and blow it all. Na wetin fit bring them come back 9ja again wen there is nothing to fall back on for livelihood? To me I see them like bastard!!. Simple. |
Romance / Re: Do Nigerians Always Marry Each Other? by mby247: 4:28am On Apr 28, 2010 |
Basically I think I have to agree with Uju arguement all thru. I live in diaspora and I date a non-nigerian but I don't see myself getting married to her due to so many factors. Experience they say is a teacher and "wetin u no know pass U". I can't renounce my country n citizenship just because of a girl and vice versa and moreover, if u marry n give birth abroad, someday U would come back home for real and ur wife might not wanna come with you because of the hardship n economic situation back home and your children would be a citizen of another country cos they where born. Wat is the joy of a mother or a father to see it children/grandchild around? Wat is ur aim investing back home when you know your children wont come 2 nigeria to manage wen you are no more? Though some country encourage dual citizenship while some don't but I bet, your children can't and won't wanna stay in Nigeria after seeing all goods of life in an advance country. There are so many issues to look at wen marry a non-nigeria as it doesn't end in relationship but future ahead. Culture, tradition, distance as to do with it. I see interracial marriage as something that separate family cos I won't leave in your country forever and like her and my children would prefer living in a develop society so wat are you to do in this case?. If any1 is ready to sacrifice and renounce is country for love, think over it cos 1 day U would wanna go back to the same slum you where born or the same silverspoon you once eat with and that alone break marriage. |
Romance / Re: Can I Trust Her? by mby247: 6:08pm On Apr 26, 2010 |
pheonixChi: Thanks for the posts. I really appreciate but I would like to let u know why am doing this as am not trying to instill such seed in her mind. I really treasure her so much and owez respect her so much even to the extent tat I have not seen her "Pant". She is "V" and ask for my understand n respect and I am giving her the full respect and support. Of recent, their family got some financial problems and she told me she is desperate of helping out to as far as doing "Runs gal". I discourage her of such tot with harsh words and advice her. So I decided to play pranks on her which is responding postively. She is this person tat as told me "Am no more interested" twice. Wat if meeting guys turns out for her to fall in love with them? |
Romance / Can I Trust Her? by mby247: 8:02pm On Apr 24, 2010 |
I was cherish n love my gf so much but I am losing the trust I have for her. Am in diaspora and my gf is a student in the UNI outside Lag. she is a regular facebooker and I decided to open a new facebook with diff pic n account and try to ask her out and she as been responding pretty fine. Giving me her contact number, where she stays and we plan of meeting and she is give a positive response about that. I am being to think, she would be seeing other guys back in sch if she can fall cheap despite claiming she is "In a relationship". I think am getting jealous here, can some1 advice me here pls, no insult. |
(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. 46 |