WebMind's Posts
Nairaland Forum › WebMind's Profile › WebMind's Posts
I am new and hungry for experience anyone wanting a collabo is free to approach. |
CapedBaldy:Yes you will have to edit codes to add contents. Wordpress is better but you can host your HTML/CSS based blog for free on google drive like I did here: https://webmind.imfast.io/no-script2/index.html |
fineboynl:no. |
fineboynl:Yes. Confirmed. Thanks. In case you have any other such tasks, I am available. I do very clean designs. I have two as topics. if you view my topics they are there. Again, Thanks. |
N1000. Thanks. |
fineboynl:You should have told of the error you said mine generated. I know that my own i s very easy and accurate. Probably some environment variable mismatch errors. |
fineboynl:mine or yours? |
fineboynl:N500 ? |
fineboynl:Airtel. Make it double that amount. |
fineboynl:What is the bold about. |
fineboynl:You sure you didn't use my own? just reach on the number in my profile. Whatsapp. I know what I provided works just that I later became involve with the other guy who came along on the topic and my attention was divided. I was suppose to ask for the error you said mine gave, but even you didn't bother showing it to me. |
CotenantNIG:Are you still interested or not? |
fineboynl:Which code is your code? remind me please. |
fineboynl:The HTML doesn't fall from heaven, it has to be generated somewhere and that's what the solutions I uploaded are for. If you didn't use what I gave you then how I know what to modify, since the one you are using isn't here? Just listen to yourself sir. Incase you don't know, the whole process starts from the DB, the PHP uses the data from DB to generate a valid HTML that is passed to client or browser. The HTML also contains CSS that adds styling to the HTML. Styling or CSS controls things like Color, background, text size, rounded borders, borders, shadows and aesthetics generally. |
You want me to write the PHP in such a way it will only have space for aeroplane logo in the last item. I will do that and get back to you, but first which of the three solutions I posted did you modify to get this output? I need to know so I know the one to adjust. Second issue I can see is the the issue of environment. The environment you are writing the code in has some CSS code that's forcing the items to display anyhow the way they appear on your uploaded screenshots. I will try and do that but that will be difficult only because I don't have direct access to your server(phpmyadmin set up). Get it? |
If detection of first and/or last items on a array/list is what you are after, the logic below will work dynamically for any array/list, but your explanations are just too ambiguous so far. $i = 0; $len = count($array); foreach ($array as $item) { if ($i == 0) { // Code for the first item here. } else if ($i == $len - 1) { // code for the last item here } // … $i++; } Explanation: Variable $i is set at 0(zero) for a start and will increase as your iteration runs through the items. $len is the length of the array and will help you know the last item on the array or list(in your case, Locations are the items). Inside the foreach statement. If you are not clear just let me know. |
fineboynl:How do you expect me to understand what you are talking about without a picture? You said you had the locations in chronological order so why are they scattering. Can you post your HTML output or at least attach them here? Please try and be clear with what you want on time. |
fineboynl:don't. |
fineboynl:In my post or the output in your HTML output in your browser? |
fineboynl:OK. Do and get back pls. I uploaded 2 in the post as attachment based on the php one you posted here. then added the one in plain text at the last minute. |
CotenantNIG:It has been on since yesterday. right now it is on. |
fineboynl:Please have you seen the one I write? Please let me know if I need more adjustment to it or not. |
CotenantNIG:Where is the result sheet data? |
the solution <div id="table"> <div class="container out"> <div class="container in"> <h5>From what you posted, here is the PHP that I think can give you what you want ( Use control+U to view the HTML on PC )</h5> <ul class=""> <?php $locations = get_locations_details(); foreach($locations as $loc) { $current_city = $loc['city']; $date = $loc['date']; $location_message = $loc['message']; ?> <li class=""> <h4 class="title"> <?php echo $current_city; ?> </h4> <span><strong> <?php echo $date; ?> </strong> at <?php echo $date; ?> </span><br> <p> <?php echo $location_message; ?> </p> </li> <?php } ?> </ul> </div> </div> </div> |
CotenantNIG:OK. what is it like. Though I am quite exhausted with the back and forth of fineboynl, It is never to early to start thinking about it. As for the whatsapp contact, it isn't up right now, why not text me on the number in my user account. II heard the networks are giving free SMS for the restriction of movement, so use that for now please and bare with me. |
@fineboynl, I did something in HTML and zipped it. I will try and upload it now or in midnight. I hope it solves the challenge. |
CotenantNIG:Hello sir/ma, how may I help? |
CotenantNIG:Hello sir/ma, how may I help? |
If what you want is a HTML that looks like that first pix you uploaded then I will go into my system (PC) and try to come up with your request (according to what I understand). I just I fully understand what you want before going ahead to write HTML. What I am about to do is take the HTML you displayed and write mine that can render like it. Please correct me if I am wrong. |
fineboynl:You should have stated that since now. You never mentioned it. Even now that you are, the details you are supplying isn't complete. What do you have on ground? Do you have the list of locations(Abuja, sortinghub, Lagos, pH) in chronological order already? |
fineboynl:Seem like you want the locations sorted by the date in chronological order then displayed on the HTML in that order and finally the last location gets an aeroplane logo? Right? |
fineboynl:Take a look at you diagram ( the last one ). You say you want plane logo on last item( which I believe is Abuja) and it already there. But going by your last comment, I will suggest this : For(Location L : LocationList){ <li> <h4 class="title"> L.name </h4> <strong>L.date</strong> L.time <br> <p> L.comment </p> </li> } From what I understand in you post far that what you need. |