-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
And PS - since you have not bothered to SHOW us this line 210 nor the exact location of this file you have located, how the heck are we supposed to show you exactly what to type? A require line simply points to a file with the exact path along with the filename. So just do it. This is not rocket science it is simply a way to add some already written and tested code that you want to literally include in your current script.
-
If you found the file then you now know where it resides so put THAT path in the require line. As I said - very simple.
-
Thanks for the promo Gizmola, but I probably learned that piece of advice from the very good people right here!
-
OK I made a mistake in this post and have corrected my test code. If you use the blank value for the target attribute it will continue to open new windows for you IF you manage to do the click from the original window and not one of the clones.
-
Have you tried using a target of '_blank' instead of a named target? That should work if you don't want the starting page to be refreshed after each new window is opened.
-
Have you done any thinking on how that might be done? Using the word 'million' 3 times in your last post says to me that you are not really thinking a lot about this task you have defined. If I were doing something like this for a user to open a few windows (< 1000000) I would use a session variable. Maybe a couple of them.
-
You don't have to close any db connections. PHP will do it all the time. Whenver you use that header line you should definitely add an exit() right after it.
-
If you put out a new window with the target attribute you would have to add a button on that to close it when the user wished to. Or let the user simply close it if he remembers to.
-
If you simply want a second window to open then use the target attribute as suggested by Kicken. If you want that second window to do something for you and return you to the original window's control then you need to use AJAX.
-
Do you want the results to show up as their own new window while the original window is still open at the same time? Any special reason?
-
The trick is to actually find that script file and make sure you are looking for it (with your 'require') in that place. Simple as that.
-
Assignment - Web Application - Please I need a solution!!!
ginerjm replied to bwayne's topic in PHP Coding Help
You obviously have not done the class work for this project and you want OUR help (for which we did the classwork years ago!) and you think that is what the members are here to do? What is wrong with your mind? Of course you are not going to get the answer you seek and you will definitely get some criticism. I'm glad that you liked dodgeitorelse3's response. Shows that you perhaps are getting it. And I kind of feel bad for you if you have really ignored your classes and are now in fear of failing. But not bad enough to decipher your issue and offer help. -
Assignment - Web Application - Please I need a solution!!!
ginerjm replied to bwayne's topic in PHP Coding Help
You signed up for a course and now its time to show what you have learned. Well - where is it? Show us your work so far and tell us what is not working. That's how a forum works. And no - we don't do your homework for you. -
I think the real question you should be worried about is which (note how I spelled that) one works. I'm sure you already know that so my work here is done.
-
And - if you are doing math why are you using a string value to do your decrement???
-
Probably validate that it is numeric and then put it into your query?
-
get Table Alias row values - MySQL Query in PHP
ginerjm replied to ajaxStardust's topic in PHP Coding Help
Well at least you won't be wasting the typing and resources to build a separate array when you finally do it. -
get Table Alias row values - MySQL Query in PHP
ginerjm replied to ajaxStardust's topic in PHP Coding Help
Perhaps a simpler less involved output method: $rownum = 0; while($row = $pdoConn->fetch(PDO::FETCH_ASSOC)) { echo " Row $rownum: Name: {$row['Name_value']} Nmbr: {$row['Nmbr_value']}<br> "; $rownum++; } Don't know why you put each value on its own row so I dropped it. You could change the nbsp value to a <br> again if that's what you really wanted. Basically there is no need to process the query results (rows) into another array only to do the output. -
get Table Alias row values - MySQL Query in PHP
ginerjm replied to ajaxStardust's topic in PHP Coding Help
As Barand has asked why not show us the code that is used to run that query and from that we can probably tell you how to access it. And certainly using the PDO interface is a much better choice over mysqli. -
Your numbers function doesn't do anything at all. Get rid of it. Then tell us what you want to do. If you want to use the global construct instead of passing values as arguments, you have to declare the vars in each function that you want them to be known, not just one.
-
When I suggest going all lowercase it is simply because PHP is a case-sensitive language. To avoid having to 'remember' how to spell certain var names because one has chosen to type it differently is a clumsy situation to be in, as you proved to begin this topic. Do what you will but when you continue to have this issue crop up perhaps your mind will change. Certainly, IMHO lowercase is much easier to read than all caps is. (Please don't quote me back my own post. Kind of annoying.)
-
Hmmm... So if you can't change from using uppercase, how the heck did you get a variable named $pdo?
-
Personally I always use lowercase for var names. Never have any confusion that way.
-
You have $pdo and $PDO. What do you think?
-
"so that service can be checked" What service? What are you worried about? Just whether the site can be reached? If the latter, then simply make a small html file called 'index.html' and put some message in it that says "under construction" or something like that.