-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
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?
-
How to interrupt function execution after X seconds?
ginerjm replied to helices's topic in PHP Coding Help
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. -
How to interrupt function execution after X seconds?
ginerjm replied to helices's topic in PHP Coding Help
Would have been nice if you posted it in the proper tags. -
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.
-
How to interrupt function execution after X seconds?
ginerjm replied to helices's topic in PHP Coding Help
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! -
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.
-
If you post the RELEVANT code here (not the whole 16kb) we could help you by looking at it
-
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.
-
You won't show us the contents of the arguments? Why?
-
Can we see all the relevant code? Maybe an echo of the arguments in the mail() call?
-
what is "Fatal error: Unsupported operand types in" mean?
ginerjm replied to sigmahokies's topic in PHP Coding Help
Be sure you have php error checking turned on so that you can read any error messages that arrive.- 9 replies
-
- vertical data
- php
-
(and 3 more)
Tagged with:
-
Usually the from address must be from the same domain that this email is being sent from. Is your domain jms.co.uk?
-
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?
-
One 'uploads' code here by pasting the RELEVANT code inside of php tags - 'php' wrapped in [] to start and [/] to end.
-
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.
-
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.
-
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.
-
Post the relevant code and give us the exact error message and line number
-
I think I was pretty clear. Obviously there is a communication problem here.
-
Perhaps you mean to type here $_POST['abc']?
-
$_post['abc'] does not exist unless you are naming one of you input fields that way.
-
Actually $_post['abc'] is probably undefined and contains nothing.
-
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?
-
Sessions? How to secure pages for only logged in users
ginerjm replied to FatesCall's topic in PHP Coding Help
session_start s/b the first thing you put in a script