-
Posts
15,289 -
Joined
-
Last visited
-
Days Won
436
Everything posted by requinix
-
Best way to set up a "Checkout Transaction"?
requinix replied to SaranacLake's topic in PHP Coding Help
Depending on your business needs, sure: you could do all of those at the same time. But you're approaching this like it's all-or-nothing. It isn't. You can create the user regardless of the transaction. You can record the order regardless of whether the payment goes through. Don't treat it like it's all one big operation that you have to rollback/cancel if any one step fails - make each part work in its own right, just like if the user was in control of each step. -
https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html#option_mysqldump_result-file
-
Pretty sure we are not understanding each other. Exactly what are you trying to do and/or understand?
-
Then I was understanding you correctly. It is not possible. Not through PHP or Javascript or anything other than installing software on the user's computer.
-
Amendment to what I said: you probably got a DVD of LynxOS. Different thing. Going for Debian? Read the guide. I don't see where it says 32-bit.
-
It is not possible for some website on the internet to get the name of your computer. I don't know what you're doing or looking at.
-
By installing software.
-
You cannot get the name of the computer. The internet does not work that way.
-
Lynx is a web browser, not an operating system. If you want to install Linux then do it. There are tons of them out there. Ubuntu and Debian are probably the most popular, and they're pretty easy to use. And driver support has grown a lot in the last 10-20 years, though you might need extra steps depending on your graphics card. If you want to install Unix then I recommend against it. For now. Until you get more familiar with everything.
-
Don't use $GLOBALS. Forget it exists. There is never a good reason to use it. Pretend you never saw it.
-
Your video markup has an ID. The Javascript code tries to use an ID. They don't match.
-
That could work. If it didn't then there was a problem with it. Well yes, but this isn't about admin. This is about everything that the rule tries to run on. Make sure that it only runs on something if it does not exist. This is just A Good Thing To Do, but it will also solve your problem.
-
This is one of those things people tend to forget: mod_rewrite will apply your rules, but it starts over again with the new URL too. Use a couple RewriteConds to make sure that the thing you are rewriting does not exist as a file or directory.
-
Look at the new HTML you're trying to insert. Does it say anything about video URLs? Check what I said again:
-
Then there is only one video. The error is something else. Could it be that you need to pass the ID of the <video> on the page?
-
There is only one video on the page, yes or no?
-
There's only one single video there. What do you mean?
-
I mean from the page you're working with. If there are more videos then there is code that is outputting them and it isn't included in what you posted.
-
Then there are more changes besides just the player that will need to be made. What's the rest of the code?
-
Of course.
-
Makes sense to me. Does it make sense to you?
-
...ah. IDs need to be unique on the page. Get rid of the one you have there and apply your event handler using some other selector.
-
I know you said you're learning Javascript and want to understand what's going on, but this really is one of those times that using jQuery is helpful. You can't easily determine the original HTML because it's mostly gone by the time your code is running (the browser turned it into objects in memory instead), but you can clone the elements and add the copy into the page. The downside is that you'll be cloning the objects as they exist at that moment, including whatever changes the user has made to them like by typing in the textbox or selecting a menu item. But ignore that for the moment. Try using jQuery to find the row element, clone it, and add it wherever.
-
You say it should go into the header but what I see makes me question that. I can't say for sure that the header is the wrong place, just that I'm not sure it isn't. What you posted does not include the header. As in the <head>. But fortunately putting stuff into the header is a discouraged practice anyways. You have a <div class="video-player-container"> that holds stuff for the video. You have some <script>s related to it. Put the scripts after the video.
-
So to be absolutely clear, your code is var button2 = $(event.relatedTarget) console.log(button2[0]); console.log(button2.data('userid')) console.log(event.relatedTarget) and the first and third outputs show two different elements?