Jump to content

divinedesigns1

Members
  • Posts

    1,200
  • Joined

  • Last visited

About divinedesigns1

  • Birthday 08/20/1988

Previous Fields

  • Languages
    English

Profile Information

  • Gender
    Male
  • Location
    Dubai & NJ
  • Interests
    Interested in learning PHP, Javascript, Jquery, SQL,and Flash, would like to gain more knowledge in HTML/XHTML/HTML 5, CSS/CSS3 or both. At the moment im learning PHP

Recent Profile Visitors

45,194 profile views

divinedesigns1's Achievements

Dedicated Member

Dedicated Member (4/7)

91

Reputation

  1. i mean when i put into the database 10.00 it only displayed the 10 and no i didnt had the option of doing that in the database
  2. if i want to display a price in my database which numeric should i used? i tried decimal but that didn't kept the whole price any help will be appreciated as always
  3. so use the ajax to get the information from the php to then call the ajax in javascript? if i understand correctly, thanks
  4. if I have a PHP function can I call it in a javascript function? I am pulling the information from a database using PHP? or do I have to use java for this?
  5. how can i link a function to a php form so it can run the function on submit i know you have to add the function in the action="" but is there anything i need add to make this work correctly?
  6. hey guys how can i not display the whole like to my include file if its in my admin folder? include "admin/asset/functions.php"; <---- how it is being included at the moment i would like the admin part to not be added, is there a way of doing this?
  7. does anyone have any idea why magento wouldnt display the new theme once you create it? im using 2.2.1 i followed all the steps and nada, if need more information lemme know and ill post the files fyi: no error displayed
  8. I got it working, I also try a similar outcome between a status and its comment and both seem to render find 😄 thanks for the help
  9. this sound way better than what i just did, now i just have to adjust my database to make this work, thank a lot dsonesuk
  10. so i been messing around with php to find a way to generate menus using php *im bored, so yeah better do something* anyway i decided to do it this way function menu() { include "config.php"; $mainMenu = mysqli_query($con, "SELECT * FROM `main-menu`") or die('Error: ' . mysqli_error($con)); if($mainMenu){ ?> <ul> <?php while($mainRow = mysqli_fetch_assoc($mainMenu)){ $menuId = $mainRow['id']; $commonName = $mainRow['actualName']; $menuName = $mainRow['name']; $menuTags = '<li><a href="' . $menuName . '">' . $commonName; echo $menuTags; } // check if there's any submenus $subMenu = mysqli_query($con, "SELECT * FROM `sub-menu` WHERE `sub-id`=$menuId") or die('Error: ' . mysqli_error($con)); if($subMenu){ while($subRow = mysqli_fetch_assoc($subMenu)){ $subId = $subRow['sub-id']; $subName = $subRow['sub-name']; $subConame = $subRow['actualNames']; $subMain = $subRow['main-menu-id']; $actualMenu = '<ul>'; $actualMenu .= '<li><a href="' . $subName . '">' . $subConame . '</li>'; $actualMenu .= '</ul></li>'; echo $actualMenu; } } } ?> </ul> <?php } ?> i was wonder if there is another way of doing this, because im only getting one of the sub menu instead of both of them so currently the menu looks like this Home Services Service 1 it suppose to look like this instead Home Services Service 1 Service 2 any idea of what im doing wrong? as always your response is appreciated greatly
  11. hey so i had this topic up here before but cant find it. does anyone know how i can go about detecting the webpage im on using php?
×
×
  • Create New...