- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 96
- Posts with Upvotes
- 84
- Upvoting Members
- 70
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 5
Re: Just to add onto GliderPilot's post, it's important that you make sure the string is uniform in how it separates e-mail addresses. In your code `person-1@here.com` and `person_2@there.net` are separated by a comma followed by a space, while `person_2@there.net` and `person.3@wayoverthere.com` are separated by a semicolon and a space. It … | |
Re: You can start with making sure you have a valid XML sitemap and submitting it to Google Webmaster Tools and Bing Webmaster Tools. | |
Hello, I'm hoping for some help with a regex that has me stumped. My skill with regex is rather rudimentary. To start, here are a couple of example URLs, and whether I want to match them or not: collection/col1 // MATCH collection/col2 // FAIL collection/col1/products/pro1 // FAIL My criteria: * … | |
Re: 1. As far as I recall, IF statements don't have their own scope in PHP. What is the URL you are visiting? If you are getting this error, chances are `$_GET["img_id"])` isn't set. 2. You're referencing `$img_id` on line 18, but you never initialized this variable 3. You're including the … | |
Hello, I'm just starting off with Ruby, but I have a task that landed on my desk that I need a quick answer for, and haven't been able to find a solution online. I appreciate any help I can get. I need to know if a value in one array … | |
Re: You'll need to use an exchange rate API, then parse/decode the results. Google and Yahoo each have APIs (a quick search should turn up more info), and another resource I found is https://openexchangerates.org/ EDIT: Just saw diafol's response. Sorry, had this tab open for a while before I got to … | |
Re: [QUOTE=Tickon;1242972]Ok, I'll give it a try, I'm not familiar with php yet, anyway to get around it?[/QUOTE] There is a difference between static sites and dynamic sites. Static sites stay the same until the author manually changes the code. A dynamic site changes based on certain events. Adding a comment … | |
Re: You don't close your statement that starts on line 64. Look at lines 65 and 66: 65. type='s 66. while ($row = mysql_fetch_array($result)) { I'm not sure where you're going on line 65 (I think a submit button), but you need to close it up with something like [icode]type='submit' />";[/icode]. … | |
Re: Are you sure you mean Photoshop and not Dreamweaver? You can't edit a website in Photoshop, it's an image editor. Dreamweaver is a web development editor: you can open your site resources in it, view them in design view if desired, and edit them there. Though honestly, I find it … | |
Re: Where's your form code? PS - you should probably be using mysqli: http://php.net/manual/en/book.mysqli.php | |
| |
Re: How are you checking for "all"? If your requirement variable for "country" isn't set, meaning it should accept all countries, then [icode]if($myCountry == $taskCountry)[/icode] won't work because [icode]$taskCountry[/icode] is not set to anything. For example, if [icode]$myCountry[/icode] is set to "USA" then you will be attempting to validate [icode]"USA" == … | |
Re: Are you sending caching headers? You can check in the Net/Network panel of your browser dev tools when you view the site... | |
Hi folks, I have a situation that's most easily explained via example, I think. So here goes. Let's say I have the following URLs: 1. /page.asp?id=123 2. /page.asp?id=123&category=ABC 3. /page.asp?id=123&category=ABC&var3=X&var4=Y I need these pages redirected. Currently links 1, and 2 redirect correctly. Option 3 though can have an arbitrary number … | |
Re: Why not use page=0, page=1, etc. instead of start=8, start=16, etc.? This way the number of items you show per page can change, which is better user experience if your users want to load more items on a page. $items_per_page = (!empty($_GET['show'])) ? $_GET['show'] : 8; // user selection or … | |
Hi all, I'm wondering if anyone's had experience with the WordPress Importer tool. I'm having trouble importing my WXR file through the tool. It works well for the most part, but when I get to the author assignment section, there are some issues. Under Assign Authors I only see `Import … | |
Re: You can use the onclick attribute as pritaeas suggested, together with the JavaScript `confirm()` function to give a popup with Yes or No options: echo "<td><a href=\"delete_members.php?id=".$row['id']."\" onclick="return confirm('Are you sure you wish to delete this item?');">Delete</a></td>"; If the user clicks Yes, the function returns `true`, and the link is … | |
Re: Please don't take this the wrong way, but where are you getting this code from? This code needs some serious help. Opening tags that aren't closed, self-terminating DIVs that serve no purpose, using *input buttons* for main nav? I've been writing HTML for a while now and I've never seen … | |
Hello, I have a Macbook Pro w/ Retina display (A1502), running Win 7 on bootcamp. I also have 2 [LG 25UM64](https://www.google.com/shopping/product/264296052983113163) monitors. The optimal resolution for these monitors is 2560x1080. However, so far as I can tell I can only hit this resolution if I'm connected through HDMI, for which … | |
Re: You may want to store a delimiting character between each set of numbers. This way you can use the `explode()` function so you don't have to know exactly where one substring ends and another begins. For example, let's say you choose a comma `,` as your delimiter, your code is: … | |
Re: This would be really hard to do without knowing your platform, database schema, or any of your code. | |
Re: I think any site that collects login information should be using SSL. Most people will repeat the same login information (username/email, password, and that specific pairing), between multiple sites. If you request this information from a user, you should be protecting it. That said, my company's considering to switch over … | |
Re: Good topic. I haven't worked on too many big "from scratch" projects so I'm looking forward to some interesting responses here. For me, the first item is figuring out what the project is about, and if there's a cost-effective platform out there that I can use as a framework. This … | |
Re: Agreed, I'd go with a background image, especially since you're already using a fixed width so you know just how wide the image has to be. Notice how when you use box-shadow you get the shadow along the top as well -- you probably don't want that. You have to … | |
Re: Personally if you're using Apache I'd just use htpasswd with .htaccess | |
Re: Try this for `gallery_loader()`: // Updated gallery_loader with ability to loop through multiple DB results. public function gallery_loader() { $sql="SELECT * FROM gallery WHERE id=1"; // IF YOU LEAVE id=1 you will only retrieve a single image. This code will still work, though. $query=mysql_query($sql); $i = 0; $slides = array(); … | |
Re: Use jquery's `.css()` to get the current value of a style property for an element. Similarly, adjusting a style with `.css()` will apply it to the element as an inline style. http://jsfiddle.net/QSg6k/1/ | |
Re: I'm wondering if this is some new black hat trend? I've noticed a number of users on here recently that post (especially in the SEO forum) one- or two-line questions about items that their profile/sig indicate they should already know, and never follow up on responses. | |
Re: Well for starters in update-profile-action.php you refer to `$_POST["profileimg"]`, but the field in update-profile.php has `name="image"` Next, you don't access the image file with $_POST, you use $_FILES and associated indexes/functions. And you don't actually store the image in the database, you just store the path (or just the filename) … | |
Re: @Ajay, the id of the `<input>` and the `<a>` being the same shouldn't be an issue. If I'm understanding OP correctly, the `<a>` is supposed to replace the `<input>`, so there will not be duplication. @OP: The `value` attribute is not valid in an anchor tag, though I don't think … |