344 Posted Topics
Re: It would be helpful to see your code so we could tell you what you're doing wrong. However, the correct element to use in html/mc-multiplayer/index.php or html/mc-multiplayer/header.php (where I assume your link tag would really be) should be <link rel="stylesheet" type="text/css" href="style/style.css /> You're not using a `<base>` tag, are … | |
Re: > I need the full html codings or a full example on how to develop this system. Sure, and we need whatever you're getting paid since we're doing all the work for you. It's more polite, and you'll get a much more useful response, if try it yourself and ask … | |
Re: Can you clarify what is in idtext? Is that a reference to the actual button, or some other element? | |
Re: This is good advice by amir. Usually I'll just create a separate directory and make a new WP installation there. Or I'll make a new subdomain for testing. Then you can use htpasswd with .htaccess to protect the directory. If you want you can create a new database for this … | |
Re: > how can i put the other 20 onto another page You mean onto two more pages, right? So Page 1 has 12, Page 2 has 12, and Page 3 has 8. The way you do this is by passing parameters to the next page indicating what items you wish … | |
Re: Line 18: Change `$_POST[$refId]` to `$_POST['refID'].` PS - only one instance of a specific HTML id should be used on a given page. In your second file, all your file inputs have the same id value. This is invalid HTML. | |
Re: Get FTP access to the server from your hosting company, and upload the original code to the correct directory (probably [your web directory]/wp-content/themes/[your-theme-name]/). Then get advice about your changes before you put them up if you're not sure what you're doing. | |
Re: The only differences I see are these: Your border-left and border-top are 1px wide on this page. On other pages they are 2px. On other pages you have `padding: 0 10px 10px;` for the main content div. On this one there is no padding. That may make it look like … | |
Re: > <?php require ("menubar.html"); ?> For this to work, menubar.html must be in the same folder as your Just Tell page. Is this so? | |
Re: My bad, I thought you said "Also you have your" >< You have to include jQuery _before_ script.js, or script.js will not be able to recognize jQuery code. | |
Re: GliderPilot's suggestion worked for me. Did you remove the `<script>` element in the body? Here's the full code that works for me: <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <script> var script = document.createElement('script'); script.type = 'text/javascript'; script.onload=scriptLoaded; script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js'; document.getElementsByTagName('head')[0].appendChild(script); function scriptLoaded() { $('#main').click(function(){ alert('hi'); }); } </script> … | |
Re: No offense intended, but people get paid to turn images/PSDs into HTML. Like JorgeM said, I'd be surprised if anyone would just convert the image to HTML for you. You're far more likely to get help if you build it yourself, then ask for tips to tweak things here and … | |
Re: Is there a reason you are using <select> <option></option> </select> <a href="..."></a> Instead of <form> <select> <option></option> </select> <input type="submit [or button]" /> </form> ? The second would make things easier on you. The way you're doing it now requires JavaScript to pass the value correctly. Putting `$size` into the … | |
Re: This thread belongs in the [JavaScript / DHTML / AJAX](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) forum. | |
Re: Do a `var_dump($row)` and see what gets output for the index ArtistDate | |
Re: While we're waiting on your reply, you might consider cleaning up your HTML: Line 6. `<a href="logout.php">` Line 9. `<a href="register.php">` Line 84. `maxlength="50" value="<?php echo $location ?" />` Lines 89 - 123. None of the option tags have a corresponding closing `</option>` tag. Example: <option selected></option> <option>Athletics</option> <option>Badminton</option> etc. … | |
Re: > Let me know what are the basic needs to upgrade my website development PHP lets you program dynamic websites. You'll need to know HTML and CSS. You should be familiar with C syntax. If you want database-driven applications, you need to be familiar with Structured Query Language (SQL), and … | |
Re: As a general rule (unless they've fixed this, which it seems they haven't), you shouldn't switch back and forth between HTML and Visual view for a given post. So if you have a post or page you created in HTML view, keep working on that page in HTML view. If … | |
Re: http://lmgtfy.com/?q=wordpress+theme+development+tutorial | |
Re: > try this The code doesn't need the \", and there's also a typo in `getElementById("img**cou**")`. The OP originally used `*imgcont*`. To the OP: Are you declaring `i` outside of the function? Otherwise `i` loses its value every time you exit the function, so it'll always return the same value, … | |
Re: Check the HTML that is being printed out to make sure it looks correct. Every row starts with a `<tr>`. A `</tr>` ends the row. Based on your request, each row should have 4 columns in it, i.e., four pairs of `<td>...</td>`. If this is not the case, something in … | |
Re: Is this all the code for the page? If so, there are a lot of issues with this code that need to be addressed. > echo "<td><input size='5'type='text' on='cal_electic_permit()' id=";echo $row['fee_desc'];" />"; You're missing an `echo` for the `" />";`. > numRec = eval(document.permit.Receptacles.value) > recfee = eval(document.permit.qty_1.value) > document.electric_fee.value … | |
Re: In order for you to be able to access data at `$_SESSION['username']`, you have to have assigned data to there previously. It worked for `$_SESSION['loggedin']` because you assigned a value to it on line 33. To store the username, you can add this after line 33: $_SESSION['username'] = $username; ![]() | |
Re: > Check your error logs As an alternative, you can enable on-page error reporting. You should remove this/comment it out once you're done debugging your page. ini_set('display_errors',1); error_reporting(E_ALL); EDIT: Forgot to add that this won't work if you're getting a fatal error on the page, but you can create a … | |
![]() | Re: <option selected="selected"><?php echo $bikes['Model']; ?></option> ![]() |
Re: Are you using `file_get_contents()`? If so, have you tried using `fopen()` followed by `fgets()` or `fgetcsv()`? I haven't tried it myself, but from what I've read `fopen()` doesn't actually load the file into memory, and you can use `fgets()` or `fgetcsv()` to get one line at a time: > When … | |
Re: How do you know it's not working? What other jQuery are you running that isn't working? Any jQuery code you run needs the jQuery library to already be included before the code can function. Therefore you have 2 options: Place the code after your `<script src...>` tag Or make the … | |
Re: You need a (sub)versioning tool. http://tortoisesvn.net/about.html is one. https://github.com/ is free if you don't mind keeping your code open source. | |
Re: As the above two said, we're not here to write your code for you from scratch. However assuming you can code, here's a concept to point you in the right direction: 1. Two radio buttons for gender, one with ID male, the other with ID female. 2. Two separate DIVs … | |
Re: With all due respect, I'm rather confused by the previous reply (and its up-voting), as it is flat out incorrect. Compiler? PHP is originally an interpreted language. Yes there are compilers, but they are not required for running PHP scripts. Further, the code the OP posted is most likely *not* … | |
Re: I got this working when running IE9 in IE8 mode (browser and standards) $('#cell').click(function() { $('.hide_if_no').toggle(this.checked); }); Here's the JSFiddle: http://jsfiddle.net/PhfJB/1/ P.S. - Dani, in your `.on()` calls above, shouldn't the second parameters for each call be `input#cell:checked` and `input#cell:not(:checked)`? I think we need to check if the `#cell` checkbox … | |
Re: In your PHP code your keys for the $_POST var are all lower-case (e.g., `$_POST['email']`). In your HTML though, the names of the fields are all capitalized (e.g., `name="Email"`). You should change all the name attributes to lowercase, like `name="email"` | |
Re: jilkin, do you have any fields in your database that store the user's role? You could use this at the top of every page to check if the user is authorized to access that page. For example, let's say we have admin-index.php: // admin-index.php // Only administrators should have access … | |
Re: The array you're trying to access is `$_POST['check']`. You can use `foreach($_POST['check'] as $value)` or $size_arr = count($_POST['check']); for($i=0; $i < $size_arr; $i++) { ... } | |
Re: Do you mean the yellow border? And are you getting this in Chrome only? If so, looks like this is a default style for focused items in Chrome. To override, simply add to your stylesheet: :focus { outline: 0; } | |
Re: There's a couple of ways to do this. You'll need JavaScript for this. I see you already have jQuery installed, so I'll use that. First thing I did is restructure your HTML a bit. Take everything from `<div class="whyppp">` to *its closing `</div>` tag*, and replace it with the following … | |
Re: The lines are coming from borders on the link items in the menus (*see* style.css.php, line 122). My recommendation is that you add `class="first"` to the first `<a>` tag in each menu, and `class="last"` to the last `<a>` tag in each menu. Then in your CSS, create new rules: div.menu … | |
Re: http://www.daniweb.com/web-development/php/threads/191031/faq-supplied-argument-not-valid-resource ![]() | |
Re: I'm not having a problem in FF or Chrome. In IE I am getting a bunch of extra space above the Navigation. Is that what you mean? It seems it's being caused by the empty `<span id="top"></span>`. Is that there for a reason? You shouldn't have two different elements with … | |
Re: Well, this is far from the best way to go about this, but for the sake of not throwing new code at you and keeping what you already have, let's try this. Note I'm editing line 8-15 above (*not* line 16, leave that there): if (element.src.match("http://i1255.photobucket.com/albums/hh638/BoredAmethyst/01_06_13_prev_zps02f525de.jpg")) { element.src="http://i1255.photobucket.com/albums/hh638/BoredAmethyst/09_04_13_prev_zpsddbbd58c.jpg"; } else … | |
Re: Hmm, you'd need JavaScript for this to work. Do you know JS? I don't have time to write the code right now and test, but here's probably how I'd do it: 1. Originally set .well's position to relative 2. Get the original y-coordinate of the top of the menu 3. … | |
Re: Hello, OK so there are two problems here. The first, to directly address the wrong placement of the bottom border, is that your **content_bottom** div is *inside* your **content** div. It needs to be between the **content** div and the **footer** div. <div class="content"> <!-- content code --> </div> <div … | |
Re: If you are indeed working with WordPress, as it seems, then you might be able to adjust the logo size from your admin panel, depending on how you uploaded the photo. If you uploaded it to the WordPress Media Library, you can go there, find the image, and select Edit. … | |
Re: To store the name of the category instead of outputting it straight to the screen, use [URL="http://codex.wordpress.org/Function_Reference/get_the_category"]get_the_category()[/URL] to retrieve the categories for the current post. I think getting the link will depend on your permalinks settings: [code=PHP] <?php $current_post_categories = get_the_category(); // store category objects for current post in an … | |
Re: > i what to make a web game but i don't know were to start :?: This is like saying "I want to climb mount Everest but I don't know where to start." You didn't tell us if you know anything about climbing, have any gear, have the time and … | |
Re: > proof read like a high school English teacher +1. The things my clients send me... It's like they had their eyes closed and fingers taped together when they were typing up content. There are points where I'm sure they've fallen asleep typing, 'cause paragraphs just end mid-sentence. I also … | |
Re: Link didn't work. I'm on my phone now, if I get a chance tomorrow and no one beats me to it I'll take a swing at it. Just as a note, I think if you absolutely position something, you won't be able to horizontally center it without specifying exact pixels | |
I have some web forms that contain several normal fields, and at least one upload field each. Upon submission, the contents of the form are e-mailed to the recipient. When I fill out the form *without* including a file for upload, it works correctly. I get an e-mail that, when … | |
Re: At a glance, I can see this issue: Your code on line 1 executes the query "SELECT * FROM image WHERE user_id = $id". Then it stores the result of the query in $sql. On line two you're trying to execute another query, but you're passing it the result of … | |
Re: Once more, lmgtfy saves the day! Seriously though, you should always check php.net if you already know the name of the function you're working with. The documentation is great -- if I can understand it, anyone can <.< |
The End.