@zootechdrum I would consider how you would convert a value to roman.You would look at the numberif > 1000 then write M and subtract 1000And do this for various values.you could put these various values into parallel arraysvar numeric = [1000, 900, 500, 400, ...]var roman = ['M', 'CM', D, CD, ...]while the number is greater than the value in numeric add the value in roman and subtract

align-self is for vertical alignment, not horizontal. I may be able to set the :last-child object to a flex item, flex direction to column, and then finally align-self, but then I would reach a simmilar problem, whree it will be aligned to the left of the parent container, not to the 'centered left ' of the other items.

Honestly looks like I'm going to have to hack it to get it to work correctly

Hi! I am trying to do a css animation, but have some issues. I am trying to make an animation so that when I hover over the card, the yellow background get into place nicely and then text appear. You can see my codepen right here: https://codepen.io/danideicide/pen/Qrbjpp

Hello guys I'm a newbie in PHP and have an assignment due in the afternoon.Actually i have to create a store that use a session array to retrieve data input in a form, and display it . But the shopping cart has to be built with MVC.So here is a little details of the assignement:in the first place we have only a navbar that appears where there is two link ( both are dropdowns menu): Order and ProductWhen you click on ORDER the dropdown menu appears and you can read "Create" and "List" .When you click on PRODUCT the dropdown menu appears and you can read "Create".

When you click on " Create" from the PRODUCT 's DROPDOWN you are redirect to a new page. On this new page there is a form where you can input the reference, name, price and quantity of the product you want to add and there is a save button too.When you click on save the informations are save in a array stored in data.php. Naturally before they get stored the information input have to check if they are valid first.

When you click on " Create" from theORDER 's DROPDOWN, there is a form with two buttons that appears in the same page where you can input information about your order. And when you click on "ADD", a table appear in which you can read the order you entered . when you click on "Save", the informations are save in a array "product" stored in data.php.

When you click on " List" from the ORDER 's DROPDOWN you are redirect to a new page. On this new page there is a table where you can see the list of your order the reference, name, price and quantity of the product you want to add and there is a save button too.And in each row there is a Details button. When you click on it an other table appears where you can see the elements ordered in that day and the Total

And i need help to know how to start this MVC model in the best way possible. All help appreciated and thanks for everything.

@sfshameem5 You're still mutating the same array you're looping on. Also, splice() is prob not a good method to use here since if you remove the ith element, next time it'll splice ith+2 instead of ith+1 element due to its index being changed but i remaining the same.

Can someone please tell me why do we have to give the value of the attribute "value "in here if we want to use them in if($_POST['btn_submit']=="btn_connexion") <button type="submit" name="btn_submit" value="btn_connexion" class="btn btn-primary">Connexion</button>

@aita-kane Using the value in that code helps distinguish the button from others with the same name. Otherwise, it wouldn't be needed. I'm guessing you must need that because other buttons also have name="btn_submit"

@niniyzni To solve that, try using a for loop and a counter to generate a new string. Loop through the initial string one letter at a time, add each letter to the new string. If the next letter is the same as the current letter, increase the counter, else, update the new string with the counter value and reset it.

Hi y'all, I'm trying to clone Twitter's "who to follow" sidebar, but not sure what you call the sort of behavior where you can close one suggestion and another shows up in place of it. Closest thing I could think of is pagination, but I'm having trouble figuring out a good search term. Image example:https://cl.ly/0h2b41210V28

@niniyzni Also being new to JS I would not use any libraries until you know what you really need from them. Vanilla JS has several array iterators, you can make an object (has map) of the string in just a few lines with reduce

Could somebody check my code? I am working on Wiki viewer project and I got some problems. Once user type something in the search bar, the API supposed to bring the information but I think there is a problem related to CORS. what am I doing wrong? Thank you for you time and attention.

@ExpressyCode If you console.log the api address right before you call it you will see that the geoLocation function has not returned yet, console.log('https://fcc-weather-api.glitch.me/api/current?lat=' + lat + '&lon=' + lon);==="https://fcc-weather-api.glitch.me/api/current?lat=&lon="

this is because the xml request code is being fired before the geolocation function can return