Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. Please use the proper forum tags to post the RELEVANT code here for us to view. Many of us don't go to other sites for fear of the risks. Show us the html form for the dropdown and the php code that receives it, validates it and where the failure occurs. Have you done any debugging to see what you are getting from your form yet?
  2. Wild guess but you have a loop that is doing something for you but you have allowed it to continue on too long without ending and that's is causing the excess memory usage. Check your foreach or while loops to be sure that they will reach an 'end point' at some time and not keep on forever.
  3. Have you read the notes in the manual under proc_open function? I don't know a lot about pipes and such but the language there sounds like it describes the problem you are having.
  4. Would have been nice if you posted it in the proper tags.
  5. For the output simply do a new query that retrieves the user's data and build your table from that. This avoids being concerned about capturing other data from the input and ensures that you get the absolute current correct data from the db.
  6. Nice attitude to someone who is only trying to help. How are we supposed to know about the size of your code and the implications of asking to see 'it'? Sheesh!
  7. What do you mean by ' isn't currently working '? Could it be because you aren't using it correctly? Check the manuals for proper examples.
  8. If you post the RELEVANT code here (not the whole 16kb) we could help you by looking at it
  9. Because the 31 row occurs first, the statement fails? Is that what you really mean? If committeeid is 31 and 1 in your two rows, why would the 31 even be selected? Is your getcolumnval method flawed in some way? PS - you have way too many php tags in this snippet. You don't need to turn it on and turn it off all the time.
  10. You won't show us the contents of the arguments? Why?
  11. Can we see all the relevant code? Maybe an echo of the arguments in the mail() call?
  12. Be sure you have php error checking turned on so that you can read any error messages that arrive.
  13. Usually the from address must be from the same domain that this email is being sent from. Is your domain jms.co.uk?
  14. The code you posted is flawed since all those define calls are not in php mode. Furthermore all you have shown us is some 'setup' stuff and no actual business logic. Is there something you want us to examine and help with?
  15. One 'uploads' code here by pasting the RELEVANT code inside of php tags - 'php' wrapped in [] to start and [/] to end.
  16. As long as you realize that if 'core' is your master class and 'one' and 'two' are classes that extend 'core', you can't use just 'core' and access the methods that classes 'one' or 'two' define. You made it sound like that in your reply to my post.
  17. Your use of the terms 'horizontal table' and vertical table confuse me. What I see is that you want to place all images belonging to a 'player' in one row next to the players name/id/?. That is apparent and easily doable with one query. Your use of group by in your query is probably not right. IMO you simply need an order by since you are not using any summary operators in your query that you need to use a group by clause. The tricky part of your output is going to be building the row but not finishing it until you encounter a record with a new player value. At that point you close the last td element and the row and begin a new row, output the player and then begin the td element for the file and any ensuing files in the following records. Simply requires that you retain a 'last_player' value and check it with each new record.
  18. The reason to have a class that extends another class is to add some functionality to the parent class ie, the first class. Your goal of having a class called 'core' that will use all the classes extended from it is IMHO a bit backwards. Yes the 'core' class can be used by all your scripts but the functionality of the child classes that extend it will not be available unless you include them and construct objects of each child class. Then those items will have all the functionality of the specific class they belong to as well as the 'core' class.
  19. Post the relevant code and give us the exact error message and line number
  20. I think I was pretty clear. Obviously there is a communication problem here.
  21. Perhaps you mean to type here $_POST['abc']?
  22. $_post['abc'] does not exist unless you are naming one of you input fields that way.
  23. Actually $_post['abc'] is probably undefined and contains nothing.
  24. Somewhat rudimentary but seems like it should do what you want to do - if I understand your question. What do you see as the problem? ps - stop using the MySQL_* functions. Simply read the manual and notice all the warnings about them. Really. Also - where is $used defined? Is error checking turned on so you will catch errors while developing this?
  25. session_start s/b the first thing you put in a script
×
×
  • 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.