-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
How do I merge two data forms in PHP and make one of them hidden?
ginerjm replied to Anthon9's topic in PHP Coding Help
Then so much for statement you made previously. Good luck with this idea. -
How do I merge two data forms in PHP and make one of them hidden?
ginerjm replied to Anthon9's topic in PHP Coding Help
And what Makes them do it? What if B decides not to? How do you force him? What if he deletes his email and can't recover it? Person A has to re-enter his form and re-send it to the recalcitrant person B? -
How do I merge two data forms in PHP and make one of them hidden?
ginerjm replied to Anthon9's topic in PHP Coding Help
Then DON'T send it to him! If he can't see it, why do you have to send it? -
How do I merge two data forms in PHP and make one of them hidden?
ginerjm replied to Anthon9's topic in PHP Coding Help
Two people cannot fill out two separate forms at the same time in the same client in the same session. And how does B fill out a "hidden" form anyway? Maybe you want to sit back and take a break and re-describe your scenario? Remember we can't see what you are looking at so you have to be very specific in how you describe the activities you want to happen. -
Undefined index error where it should not be
ginerjm replied to Codin2012's topic in PHP Coding Help
Did you read your code? Seems like a lot of un-needed lines. How about this: if (isset($request['controller']) if $request('controller'] == '' $request['controller'] = 'home'; if (isset($request['action']) if ($request['action'] == '') $request['action'] = 'index'; $this->request = $request; But of course both my logic and yours leaves out the test for either one of those elements existing and still being blank. -
Passing from data to PHP to capture variables and run an exe
ginerjm replied to lynns's topic in PHP Coding Help
I'm condescending? And you sit there ignoring my posts from the get-go? What does that make you? And what do you think of Jacques1 after the post (I dont' see it here but my email sent it to me when he posted it) he sent you which I have excerpted below: I gave you the best answer I could as the first to respond. You ignored it and haven't shown any initiative on your own. I give up. Even Jacques1 has apparently reached his limit. In fact he probably retracted his post since it doesn't show up here any more. -
Passing from data to PHP to capture variables and run an exe
ginerjm replied to lynns's topic in PHP Coding Help
Jacques has showed you EXACTLY how to do what he asked. Are you not going to listen to him either? -
Passing from data to PHP to capture variables and run an exe
ginerjm replied to lynns's topic in PHP Coding Help
lynns - The format Jacques JUST showed you is what I have told you about already. And I asked a second time for you to use it. Why didn't you? If you are here to ask for help, why don't you respond to it and pursue the solutions you are given? Did you EVEN read the manual as I first said? Probably not it appears. Too bad. -
Really? I find it hard to believe. Methinks that was sarcasm.
-
Passing from data to PHP to capture variables and run an exe
ginerjm replied to lynns's topic in PHP Coding Help
Show us the code you used to call the exec now. And have you actually looked at the outputs the call returns? -
Here we go again. What does this statement mean? Obviously what? If the $_POST was NOT set what query would you do then??? And this query - what ARE you concatenating here? Why the CONCAT? Your form shows you doing a POST, yet now you are retrieving values form the $_GET array. How is that possible? And now you do two queries to select all of the id values. Why? And finally you question us as to how to update 'articles' yet you aren't even attempting to do anything with 'articles' here. Nothing. And what are you talking about when you say "when someone use filter to filter the table"? Who is the 'someone' since it is your script and you decide what happens. And again - even you are not doing any filtering here. I would almost say that we are struggling to understand your English. But then I look at your php and I have a hard time understanding what you think you are doing there.
-
Passing from data to PHP to capture variables and run an exe
ginerjm replied to lynns's topic in PHP Coding Help
I'll repeat my previous post. Did you read the manual for this command and implement the outputs that you can use to debug it perhaps? -
Undefined index error where it should not be
ginerjm replied to Codin2012's topic in PHP Coding Help
You apparently have produced this variable (a query result perhaps?) before trying to create the new object. But like so many people who are new to PHP (and/or programming) you fail to check the result of that query(?) to see if you have something in that array. Do that and you won't run into this situation. Or you could add some more code to the constructor to allow for an empty argument if that actually makes sense to do, ie, creating the object when you don't have the input for it. -
Undefined index error where it should not be
ginerjm replied to Codin2012's topic in PHP Coding Help
Actually I would do that print of the input argument before calling the constructor, ie, before creating the object. Obviously the item you are passing is either not an array or not an array containing what you think it does. -
Passing from data to PHP to capture variables and run an exe
ginerjm replied to lynns's topic in PHP Coding Help
Have you read the manual on how this command is used? It appears that you can get results from the call, but you are not trying to get them. -
I'm not even going to look at the code. Your URL is definitely not a URL. Just look at it - where's the domain name? Obviously your(?) code is missing something and I think it is up to you to at least TRY to figure out why you don't have a better looking URL. Not us.
-
So many people say the same thing that they can't learn from reading. They refuse to understand that the whole business of IT is based upon highly technical principles that need to be explained by manuals. Without manuals nobody would ever program. You just keep plugging away and asking for help and having people point you to references that will involve reading and maybe, just maybe, you will realize that this business doesn't come easy. As I've said before - it ain't rocket science, but it is a science. That said - good luck with your learning process newbie.
-
How much of the code do you truly understand? Do you understand the individual statements and what each of them contributes? Have you done any reading on how to write PHP and what the basics of assignments, concatenation, quoting (BIG topic!) and such are? It would behoove you to do so before diving into the effort you are describing above. That is - if you truly want to learn PHP.
-
You have the 'arg' value and the true value ('test') available to you in your function. If you can't figure out what to do from there, you need to stop working on this and go back to the book and do some learning.
-
Checking the value of a dropdowns in sql php
ginerjm replied to sarojthapa60's topic in PHP Coding Help
Besides the atrocious arrangement of your html and php code intermixed which is to be avoided, your code is broken. Have you looked at how your output page appears in your browser yet? How many </tbody> tags do you see? There are so many cleaner and easier ways to do what you are doing but you insist on mixing html and php code together. Please help yourself by doing some reading and change things around. An example of cleaner php code: In place of this: $stmt ->execute(); $result = $stmt->fetchAll(); foreach($result as $row) { ?> <tr> <td><?=$row['Ownership'];?></td> <td><?=$row['Capacity'];?></td> <td><a href="edit.php?id=<?=$row['OBJECTID'];?>">Edit </a> </td> </tr> </tbody> <?php } Try this: $stmt ->execute(); while($row=$stmt->fetch()) { echo "<tr>"; echo "<td>{$row['Ownership']}</td>"; echo "<td>{$row['Capacity']}</td>"; echo "<td><a href='edit.php?id='".$row['OBJECTID']."'>Edit</a></td>"; echo "</tr>"; echo "</tbody>"; } Of course that ending tbody tag does NOT belong there but that's your problem. Note that you s/b checking the result of the execute statement to be SURE that your query actually ran. -
Despite the previous concerns about why you are using this strange data format, if you simply stop using the substr function on the input you will get the arg values as well. Of course that is too easy so you muat want something else, but you didn't make that clear in your question.
-
Some pretty old html and deprecated styling here. Have you thought about updating it? As for your question - how about showing us the real code and not all the presentation. Logic please.
-
And you expect outside help to assist you? Good luck.