-
Posts
15,290 -
Joined
-
Last visited
-
Days Won
436
Everything posted by requinix
-
SQL Database Display problem in php 7.0
requinix replied to bakertaylor28's topic in PHP Coding Help
You're putting the entire table in there. The only thing you need you need to repeat is the data row (that being the second <tr> and what's inside it). You'll also have a bit of a problem with where your code is. The loop is before your <html> so you can't put the table row in there. Instead you need to move the loop itself. That also means moving the mysqli_close, since you can't very well read the query results once you've closed the connection. The good news is that you don't need to close the connection in the first place. PHP will do it for you when the script ends. -
SQL Database Display problem in php 7.0
requinix replied to bakertaylor28's topic in PHP Coding Help
That's true, as far as I can tell what you're talking about. But that loop you have only uses some variables. Every time through the loop it updates those same five variables to have five new values. By the time the loop ends, all you have left is whatever the five latest values were - everything that happened before is lost. You've got a loop that can go through all the results. You've got some HTML for a table row. Instead of using the loop for some variables, use the loop for the table row. -
I don't see anything mobile in that code. If you want to use the desktop video then adjust the URL the "mobile side" uses. Probably using the above code as a reference.
-
SQL Database Display problem in php 7.0
requinix replied to bakertaylor28's topic in PHP Coding Help
Have you considered using a loop? A loop very much like the one already written in there? -
SQL Database Display problem in php 7.0
requinix replied to bakertaylor28's topic in PHP Coding Help
Besides the header, your table has exactly one row in it. If you want to display multiple data rows then you're going to need multiple table rows too. -
I would be extremely surprised if you could not. Unless they renamed it, the field will be called "custom" something.
-
When you submit the information to PayPal, you can give them some custom data. I suggest an order ID.
-
How I can display dropdown menu list based on my JSON response object?
requinix replied to prohor's topic in Javascript Help
The response isn't HTML. You can't just shove it into that html variable. jQuery, right? Forget building HTML strings manually. That sucks. If you give the $ function some element, such as that <option> you wrote up there, then jQuery will create it as a new element for you. And you can .appendTo the <select>. Then similarly, you can create blank options without anything, use functions like .val() and .text() to modify them according to how you want each (tip: that means a loop) to look given the response data, and append them to the <select> as well. Note that since you're appending new elements, you'll probably want to .empty() the dropdown before you start adding things to it. Give that a shot. If you have problems, post the code you wrote and a description of how it goes wrong. -
You've only posted, and most likely looked at, the script that does conversions. Did you look at everything else too?
-
Again, you haven't gone into any sort of detail about anything regarding these dropdowns so I have no idea what it is you need to do. Besides... use Javascript? If you want more detailed advice then you'll have to start posting code and markup and whatever you have, along with a complete description of what sort of "data matching/comparison" you're talking about.
-
It's not like the experience is entirely unusable... Make the scanner so it gets the data from the QR code. Use Javascript to do whatever it takes to validate with the dropdowns - I have no idea what this part is since you didn't go into much detail about it. Then either you submit a form or you send an AJAX request to the server to store "the timestamp" (what timestamp?) in the database. Break the whole thing down into discrete steps: scanning the QR code is one, validating with the dropdowns is another, scanning the second QR code is a third, and so on. Work on each step in turn.
-
Store it using YYYY-MM-DD. Always. If you want to display it differently then you can display it differently.
-
Yeah, sure, it sounds all very possible. What do you need recommended? Sounds like you already know what you need to do.
-
It can be hard to know what the problem is when we cannot see the page in our own web browser, but You have float:left for your images but not for the pagination links. float is not very good and CSS has better options for how to display items. For example, try display:inline-block instead of float:left.
-
"cannot get it to work" means nothing. What do you expect it to do and what does it actually do? Are there any error messages? On the subject of error messages, you need to check for errors with the file upload before you try to do anything with it. Addressing this in your code now will likely help you identify the problem.
-
Yeah, pretty sure you've got a custom subnet for the VM images. They need to be bridged with the host so they're all connected to the same 192.168.1.x network. That's the only way anyone outside of the host will be able to connect: if they're on the same network.
-
The first bit of code, that does not appear to be for the Contact button. It looks like it handles the "Ask a question about this print" and "Back to: Prints" links. The part responsible should be somewhere in <?php echo $this->product->event->afterDisplayTitle ?> <?php if (is_array($this->productDisplayShipments)) { echo '<div class="vm-product-shipments">'; foreach ($this->productDisplayShipments as $productDisplayShipment) { echo '<div class="vm-product-shipment">'; echo $productDisplayShipment . '<br />'; echo '</div>'; } echo '</div>'; } //In case you are not happy using everywhere the same price display fromat, just create your own layout //in override /html/fields and use as first parameter the name of your file echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$this->product,'currency'=>$this->currency)); echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'ontop')); echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'normal')); because that's what comes after the title H2 and before the Info heading. I suspect it's one of the customfields layouts, given that there are two of those and you have a problem of two identical buttons, but the screenshots are missing things like shipping information or prices so I'm not entirely sure. What link? Where is the URL coming from?
-
... For one, percent and weight are not interchangeable units. I can't imagine why a thing is being labelled with a "kg" unit when it's supposed to be a percentage. It doesn't make any sense. It isn't the sort of problem that should exist. For two, I can't imagine why someone has a thing in a (shopping?) cart that is measured in percentages. Sweeping this problem under the rug is not the answer. You need to deal with the fact that WP or whatever is attaching incorrect units to the items. Because there's a really, really good chance that the wrong units are a symptom of a larger problem.
-
Did VM Server get its IP address from the same place that PC1 and PC2 did? Does the VM Server have its port 80/443 exposed publicly?
-
Do you have any suggestions for how we might be able to find out what "doesn't work" could possibly mean?
-
grammer/spell correction for text in div?
requinix replied to HelgeMattig's topic in Third Party Scripts
If you can find a third-party service, or perhaps better a library you can download and install, that is capable of this then you can work it into your PHP (or Javascript?) code. So the first step is to look around and see what your options are. -
Sessions are for sharing data between pages. This does not involve sharing data between pages. Sessions are not appropriate. Don't get ahead of yourself. You're imagining stuff that does not need to exist. Breadcrumbs for a user CP page? You don't need anything "universal" to do that. It's Forum -> User CP. That's it. There's nothing fancy there: just a link, an arrow, and some text. You can write exactly that on your page. Breadcrumbs for things like threads and lists are potentially trickier because you don't always know the hierarchy. Threads are in subforums, but what are subforums in? Other subforums? You don't have that information ahead of time. Don't bother with anything universal. You don't need it. Just get breadcrumbs on thread pages working.
-
It's fine, don't mind it. Sounds like the breadcrumbs for thread #3 would be: Name of your site or Forums or something > Whatever the name of the parent thread list #1 is > The title of thread #3. If thread list #1 was contained inside another list then it would go: Name of the site or whatever > Name of the grandparent thread list > Name of the parent thread list #1 > Title of the thread #3.
-
Ah, okay, wrong "folders". Forget those. And don't mind what the URL looks like. But the link could be useful. You've got a topic #3. Does it belong in a forum? What is it part of? That thing is going to be part of the breadcrumb.