Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. You're having another issue? With what? A variable? Is there a message with that problem? Give us a hand if you want our help.
  2. I dont' see these new lines in your previous code posting (which needs to be posted properly next time!). Have you changed things? And as QOC says - names need to match. Quick lesson: The name attributes of input elements are what you need to look for in your $_POST array upon receiving the submit from the client. That's the connection.
  3. So - I'm guessing that you didn't write this code yourself since you can't even be bothered to look up how to do what I suggested, since you state that you 'echo' statements aren't showing anything. Being new to PHP (or any language) means that you have to do some homework, some reading, some learning, some attempt to comprehend what you are trying to achieve. Not just post some code that you gleaned and can't figure out and ask for someone else to teach you. Make the effort!
  4. I suggested adding some echo statements to show you what the values you are using really are. Add a limit=1 to your query and work through the problem looking at what your code is producing and what it has to work with. That's how one debugs a problem.
  5. Add some debugging echos to check the values that you are calculating and that could help you figure out the problem.
  6. To become a programmer you have to have an eye for detail. Look carefully at your lines and you will see your error. As for the div by zero - perhaps you should check the incoming parms to your functions to be sure that they are valid or simply check the values to be used in your calc before using them.
  7. Since this is homework I'll simply tell you that you are missing a semi. Basic mistake - happens all the time.
  8. You're using a pow function to calculate a payment amount? Seems odd. The error is the extra comma in your first pow call.
  9. Hard to make sense out of what you want with the incomplete code you provided. Are you viewing this code in a browser or a text editor? You say 'view source'. Does that mean you are using the browser's 'view source' command? If so, a <br> will not cause a line break (at least not in IE) so if that is the problem, then you have a \n char in the code already. I'm confused as to your reason for worrying about what the 'view source' gives you for format too. Why does it matter since most people aren't going to see this? Besides - removing the <br> and inserting the \n is going to ruin the html formatting of the page.
  10. You ask: I would like to setup something ... which will allow me to securely store usernames and passwords for accessing databases and remote servers without needing to have them stored in the file system. Shouldn't username and passwords be coming from the users? And why would anything be stored in the file system when you have a db? If you want to access a remote server you could store the credentials in a table and let your appl go get it. That s/b pretty secure - especially once the user (?) logs in correctly.
  11. Is this an sql question? Perhaps you want to try a different forum? Sounds like a situation for a CASE statement.
  12. Uhhh, This is a forum where we help you with the code you are trying to write. So - you should take a stab at writing your idea in code and testing it asking for help in perfecting it. btw 1 - your url should look use ampersands instead of + signs for the second and third parms. As for the rest of your explanation of what you want to do, I'm a bit confused. Your url provides one value for each parm but you want to get "groups of divs" out of each one? Hmmm...
  13. Creating a pdf is not that hard. Try FPDF - pretty easy to learn and powerful.
  14. Do these docs have to be Word docs when you place them on the server? Why not convert them to PDF format and then nobody can alter your source (Word) doc? Not sure but the PDF format may itself have a RO option so that no software can modify them.
  15. I don't understand what you are asking. What's a database post that can be parsed?
  16. Simply query the location table for the item id and the max date
  17. Have you tried reading a manual on how to use the things you are trying to use? Just browsed thru all the posts here and it seems that you are learning PHP line by line as each forum member gives you an answer. Probably not the best way to learn technology.
  18. In addition to Gizmola's advice I suggest that you do NOT store the actual image files (.jpg,.png,.gif, etc.) in a table. No need for that. Store the location/name of the image file in your record and save the image file in that place. If the images are going to be displayed on your html pages, then store them in the web-accessible tree. As for your paths - if you have control over the images and directory structure I would keep the path to the folder(s) as a constant for your appl and just use a relative path in the record. Then when things get moved around for some reason you simply create a new tree and copy the old one under it and then modify the appl constant to point to the new location. All the relative paths in the records will still work just fine.
  19. You cannot mix the use of mysqli_* and MySQL_* functions. Drop the latter since they are deprecated. See the manual
  20. Where to start? 1 - post code in the forum properly using the tags as described in the rules. 2 - Learn at least a LITTLE bit about php - specifically that it is case-sensitive. That means that $_post['tracking'] is invalid. 3 - Turn on php error checking in all your scripts during development so that things like #2 show up as the errors that they are. 4 - When writing code put statements on separate lines. Makes reading them much easier as well as editing later on. Yes - do as Barand suggested but also do try to do some of the things that I just posted before you post more code here. It will greatly help your cause.
  21. Well, some of us don't look at other sites. Can't imagine why you can't post code here.
  22. If you post your code perhaps we can help you.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.