84 Posted Topics

Member Avatar for Daneos

What are you setting the empty slot's value to? Let's say all your empty slots are set to `NULL`, then you can query for those values first SELECT slot_number FROM inventory WHERE slot_item = NULL; /* As per your example, if you have items in 1, 2, 3 and 5, …

Member Avatar for DJBirdi
0
147
Member Avatar for SlashBunny

This is more a JS question, rather than a PHP one. Probably best to do this with checkboxes <div id="filters"> <input type="checkbox" value="small">Small Companies <input type="checkbox" value="big">Big Companies </div> <!-- add a class to the li element --> <ul id="nav" style="float:left, margin: 10 10 0 10;"> <li class="small"><a href="company_1">Company 1</a></li> …

Member Avatar for DJBirdi
0
781
Member Avatar for Sikander Nasar

Waooza! That's one vague question. You're gonna have to tell us a bit more than that buddy. If I say this: "I click on a button, but nothing happens. What am I doing wrong?" ... doesn't make much sense does it?

Member Avatar for DJBirdi
0
133
Member Avatar for lilapontes

Do some reading on SQL's "LIKE" command, that should be a good start. Please don't expect a spoon-fed answer.

Member Avatar for rubberman
0
174
Member Avatar for Excizted

You're on the ball there cereal. Even though there's some bloat code in that java method and I wanna pull my hair out everytime I see Java devs being lazy by catching all and any exceptions instead of method specific ones, all that method is doing is outputting an md5 …

Member Avatar for Excizted
0
1K
Member Avatar for berserk

There are TONS AND TONS of these examples all over about this bud. Here's the first one I found after a quick google search: [Delete multiple rows from mysql with checkbox](http://www.phpeasystep.com/mysql/8.html) Make an attempt at that and if you still have any questions, I would love to help.

Member Avatar for diafol
0
2K
Member Avatar for brugernavn

Now grab a beer and say this to yourself: I don't always solve my own problems, but when I do, I DO IT LIKE A BOSS!

Member Avatar for DJBirdi
0
511
Member Avatar for Dani

Tired of the same old boring flavour of barbeque chips? Visit www.the-most-awesome-kick-azz-mofo-space-invader-bbq-chips.com to get a free bag.

Member Avatar for happygeek
4
211
Member Avatar for sundeep.gurroby
Member Avatar for almostbob
0
204
Member Avatar for nadiam

Try not to let this embarrass you too much ok? You misspelled "javascript" <script type='text/javscript'> <!-- vowels bro/sis, VOWELS! -->

Member Avatar for DJBirdi
0
9K
Member Avatar for jasmine_1234

If you've found exactly what you're looking for with that sourceforge script you mentioned, I can't imagine it would be too difficult to remove authentication from the page you need. If you do decide to go the route urtrivedi suggests and hire a developer, removing authentication from that script might …

Member Avatar for DJBirdi
0
163
Member Avatar for Bharadwajcvrg

Hmmm, this might need a little tinkering but it can be done. Take a look at this: [W3Schools - getUTCDate](http://www.w3schools.com/jsref/jsref_getutcday.asp) First, I would use that to get the current day, then compare the current day to an array to see how far from Friday that day is. The array could …

Member Avatar for DJBirdi
1
240
Member Avatar for developer707

str_pad is a good solution for this, however the code provided by catalinetu won't work because HTML truncates multiple spaces to one space unless you use non-breaking spaces with "&nbsp;" Now the problem with using &nbsp; with str_pad is, as per PHP Manual: "Note: The pad_string may be truncated if …

Member Avatar for developer707
0
1K
Member Avatar for lloydsbackyard
Member Avatar for lloydsbackyard
0
126
Member Avatar for davnlou

Take your `<form>` tag out of the loop bud. Your initializing a new `form` with every item you add in the loop, but you're closing it only once outside the loop . Also, to help you further, show us your add-to-cart.php code.

Member Avatar for DJBirdi
0
346
Member Avatar for sribharath_1

You're asking for two different things bud. You don't want a "code" generator, you want a "markup" generator. Keep in mind however, that if you're going to go this route, it's best if this is a small project since markup generators will give you **A LOT (A LOT, A LOT …

Member Avatar for mesh457
0
152
Member Avatar for Raymond_4

Take a look at the HTML `loop` property. I believe that's what you're looking for. [W3Schools - DOM loop Property](http://www.w3schools.com/tags/av_prop_loop.asp)

Member Avatar for iConqueror
1
185
Member Avatar for DJBirdi

Out of curiousity, if any of you have ever done image watermarking with PHP, I'd love to hear some ideas. PHP's official documentation on watermarking with alpha channels isn't bad but I'm curious about the existence of other libraries that some of you might have used.

Member Avatar for DJBirdi
0
220
Member Avatar for david.roun.7

`session_start()` needs to be before any variable declarations/html. Try putting <?php session_start(); ?> at the top of the page, and delete your line 16.

Member Avatar for DJBirdi
0
324
Member Avatar for SimonIoa

Any specific errors? I believe `UNION` statement has a few very specific requirements. Off the top of my head, two of them are that the `SELECT` statements must have the same number of columns you're quering for, and those columns' data types must match. So instead of using `COUNT(*)` in …

Member Avatar for urtrivedi
0
149
Member Avatar for ekardh

Correct me if I'm wrong but wouldn't overlaying the text with a transparent image make all the text under it un-selectable?

Member Avatar for DJBirdi
0
202
Member Avatar for nadiam

Oh how I wish you had included the HTML as well, instead of me typing a mock table with input fields! :(

Member Avatar for nadiam
0
383
Member Avatar for DJBirdi

Uhhhh, so take a look at my profile. I apparently have one downvoted response but when I click on Posts Voted Down, I get "There are currently no matching articles available. Try back later." I know this is just nitpicking about small things but just wondering if this is a …

Member Avatar for DJBirdi
0
215
Member Avatar for yeeaki
Member Avatar for yeeaki
0
512
Member Avatar for iamthwee

Good lord it's about time! EllisLab made us wait forever for v3. To be honest though, I have a few large projects built on CI and I'm kinda afraid to upgrade because of all the horror stories I've heard about things breaking with framework upgrades. Once a stable version is …

Member Avatar for cereal
0
354
Member Avatar for davy_yg

lol @ "button" ... I had to check this thread out. Here ya go bud, I created a quick sample for you. This should get you started. Click the "Sign In" button and you'll see your container slide down, then go ahead and fill that container with a regular <form>. …

Member Avatar for tapananand
0
243
Member Avatar for showman13

Take a looksie at this: [jQuery Validation Plugin](http://jqueryvalidation.org/) I've used it in the past and it sounds like it meets your needs. Plus it takes care of the smaller issues that sometimes get over-looked such as firing the focus event on any field that was not validated.

Member Avatar for showman13
0
301
Member Avatar for Stein102

Hmmm! Because JS is not server-side, to accomplish this, I think at a very minimum you would need something like a browser plugin. Are you using any sort of scripting language in the back? If you are, you might want to search for...let's say Code39 barcode generators for that language …

Member Avatar for DJBirdi
0
259
Member Avatar for [NOPE]FOREVER
Member Avatar for rjusman90

Welcome to Daniweb rjusman90! Just a quick pointer. It's obvious you don't speak English well but please try to explain what you need in as much details as possible. We can all gather the bits and pieces to figure out what exactly you need help with. Your title and the …

Member Avatar for DJBirdi
0
151
Member Avatar for iamthwee

>Use: http://api.jquery.com/event.stoppropagation/ >It stops the event from "bubbling up". Perfect solution, but don't forget to pass "event" as the function's parameter. Won't work (in some browsers) otherwise. $(".dd-item").click(function(event){ alert($(this).find('.dd3-content').html()); alert($(this).find('.url').html()); event.stopPropagation(); });

Member Avatar for iamthwee
0
176
Member Avatar for EJL242000

The syntax is fine. I was able to create the table using the exact code above copied and pasted. Which versions of PHP and MySQL is the server running?

Member Avatar for cwarn23
0
446
Member Avatar for vishalonne

You can create another function that captures the value of the "5thsub" and then call that function in two different places. One right inside your SetSubject function to capture the value as soon as the field becomes active and the other with an onchange tag in the select statement to …

Member Avatar for DJBirdi
0
293
Member Avatar for navaidstech

You're using too many unnecessary variables bud. Since this is a simple code, the best approach would be to have just one function do all your dirty work (formatting 'n stuff), store what you need in session variables, and use those in the rest of your code. Here, try this …

Member Avatar for navaidstech
0
6K

The End.