Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. 1 - you are missing a closing form tag here. 2 - you want to post each single ticket with a separate booking number. That means a customer with 3 tickets has 3 booking numbers? Really? How will you tie the tickets to the purchaser?
  2. What do you have to show us so far?
  3. Really? I'm going to click on your link and open a potentially harmful zip file? Plus - since you zipped it up it probably is a large file of a large script which you then expect people to read thru and understand. How about isolating the part of the code that is giving you the problem and then asking for help with that and then posting the code right here in the forum, using the proper code tags?
  4. As my signature suggests, turn on php error checking and see what your script then shows you. Leave programming? What? You thought this stuff was easy?
  5. That's the problem when one chooses to download someone else's script. You have bugs in them and have to figure them out. As for forum help - we usually try to help those who help themselves by writing their own code. In your case you are taking the easy way out here. First you copy someone's code. Then you want someone else to fix it for you. Not my intent when reading the forums. I will say this tho - when you get the "header already sent" message it means you are trying to send a header to the client but that something has already been sent and a header must one of the first things to be sent. You have to find where you are sending some output - anything at all - and stop it from being sent first. It could be as simple as a blank line outside of php mode, or a space character that shouldn't be there. Have to go thru all the code to find it. Try exiting your script just prior to the line that is triggering the error message and then go view the source code sent to your client and see what it there.
  6. You want to pass a value in thru the calling url. Something like: http://domain.com/page.php?incfile=myvars1.php Or http://domain.com/page.php?incfile=myvars2.php What's to prevent the user from using the wrong value in their url? Perhaps you should consider putting the value in the login database so that when the user logs in you can get their value from the login process and set it up as a session variable.
  7. As you said, write some code. The forum is for people who actually are trying to write code. It is not here to just figure out what you are talking about it and come up with your solution for you. Try to code it. If you can't then try to learn by reading and researching and becoming a programmer. Or go to the forum designated for professional help and pay someone to write your code for you. You might also re-read your post and correct the language so that it tells us what you are talking about. I know I'm confused by your post.
  8. Use an outer join in your query. Look it up. PS - this is a good example of what happens when a programmer makes assumptions and doesn't explicitly check the results of things like query executions, file opens, etc. Always, always, always check things.
  9. 0 should not be the problem unless you got no results from your query. Test the query result for true and try echoing out the row count value to see what you have.
  10. I wouldn't do it. Not knowing how this stuff runs and how to set it up securely and safely and properly is the kind of stuff that people get paid big bucks for. If you hired someone to develop this for you, why are you not hiring someone to run it for you? Either consider outside help again or start reading.
  11. During development you should NOT be hiding any errors. YOu should be programming around them - that's what good coders do. Remove the @ signs and be sure you have php error checking turned on and see what your script might be trying to tell you. And of course your filenames could be a problem if you are looking for the wrong case in the name.
  12. You get WHAT error? "it does" and "it don't" do not tell us much about your problem.
  13. When something "didn't work" it usually helps all concerned if the voicer of that meaningless comment provides some backup as to WTH he/she is describing. Someone who was nice enough to provide a goodly chunk of code to you deserves more of a response than this so that he/she can help possibly debug it or to further discuss with you the problem. Jeez!
  14. Try turning on error checking so that any sql errors will be displayed for you.
  15. Since you are building your query string with double quotes you don't need to double quote out of the string for each variable. values('$var','$var2','$var3'.....)
  16. "I decided to create an install.tmp file..." - Sounds backwards
  17. Your sms doesn't handle html most likely.
  18. The complexity of this code you have written (?) is such that I think you s/b able to solve it. You are using an index that doesn't yet exist. Figure it out.
  19. I think a link should show up for you only since it is your post.
  20. So this question should be marked 'answered'?
  21. IN your second query you call the 'query' function. In your first query you never made a call to the query function, hence no update.
  22. My previous question re: testing your query result was not answered. Do you in fact have code that tests the result of your query function call? Show us that code and also the complete query statement that you are trying to execute. Use an echo if you have to in case you are building it with php values in it. Something like this code: $q = 'select (stuff) from (table) where (condition)'; $qresult = $pdo->query($q); // test if query ran if (!$qresult) { echo "Error - could not execute query #1. Query is<br> $q"; exit(); } // process valid query results here. Note: the parens in the query statement are only there for example.
×
×
  • 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.