344 Posted Topics
Re: Just to clarify so you can avoid this in the future: 1. This is just a Notice. Your code/script will still work. When your site is launched you'll probably want to change your error reporting settings to not show these. 2. The Notice is telling you that the array location … | |
Re: Line 47, why are you using `$_GET['Username']` instead of just `$username`? Not related to the solution, but you can probably get rid of line 42. | |
Re: I suspect that the character you used for either the É or é is not in the UTF-8 character set. | |
Re: My only additional advice is to use this to set classes for your TDs instead. This way you can change the actual appearance in your stylesheet. | |
Re: Anyone have any thoughts/opinions about CakePHP? | |
Re: Your `if` statement on line 12 looks a little off. Try this one, I haven't tested: if( charCode < 48 || (charCode > 57 && charCode != 110 && charCode != 190) ) { ... } keycode 110 = `.` on Num Pad keycode 190 = a period (`.`) | |
Re: I'm no pro at manipulating XML with PHP, but reading up on the [DOM extension](http://php.net/manual/en/book.dom.php) may be helpful. You should be able to grab the element you want from the XML, do any further processing you want to, then grab the element you want from the HTML and modify it … ![]() | |
Re: Simply creating a Log In button is a basic HTML question. If you know enough to build the rest of a web page, trying to add a form button should be simple. Show us what you've got and we'll tell you if there's something wrong with it. | |
Re: Not sure I understand your meaning of "wrap around the image". Do you mean to put the text on top of the image? | |
Re: Define "prevous contents". Is this after a form submission? You're probably looking at using cookies and/or sessions. Please give whatever code you have. | |
Re: There are a number of ways to get the current page's filename, here's one you could try (I haven't tested): if(!isset($_SERVER['HTTPS']) && basename($_SERVER['SCRIPT_NAME']) == 'login.php') { header("Location: https://........./login.php"); } ![]() | |
Re: You say you have an issue, which I take it means there's an error or something isn't outputting correctly. Please show us what code you have so far. | |
Re: I'd output the xml tag in an echo statement. My guess is it thinks the `<?` is opening PHP tags. Try: <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?> | |
Re: I agree with paulkd. You could write in the JS to add more text boxes dynamically, but it would probably be much easier to just have them separate them by a delimiter. You could use a textarea and have them put a new address on each line. | |
| |
Re: Try adding `var_dump($row)` on line 38, let us know what it outputs. | |
Re: Line 191: #content has a z-index of 2. Line 61: #menu ul has a z-index of 1. A lower z-index value will place an element behind one with a higher z-index value. Unless specified, children of an element will be affected by their closest ancestor's z-index. Therefore even if the … | |
Re: `<font>` has been deprecated since HTML 4.01. Don't use it. Also, I don't think the old SIZE attribute accepts "px". Use `<span>` instead, and if you must add styling on a per-item basis, add inline styles: <span style="font-size: 150px;">text</span> | |
Re: First off, you've created 9 `<th>`s but have only 8 fields you're pulling from the DB. You're not outputting anything to your Generate Bill column. My recommendation is rather than a foreach loop for outputting your fields, do it the long way. I.e., // Inside your loop... print "<tr>\n"; print … | |
Re: Wrong forum??? That aside, it would be difficult to answer this without knowing any of the schema, structure, and code of your program. | |
Re: Where is your data for `$_GET['location']` coming from? Your form submits via POST (line 1), and it doesn't have any field named "location". You should change line 4 of the form to: <input type="text" name="location" id="location" class="form-control" placeholder="90001" required> Then in zip-checker.php, change `$_GET` to `$_POST`. One other tip. No … | |
Re: I'm a CakePHP novice so hopefully someone will correct me if I'm wrong. You can change any file... Whether or not you should is a different question, as it's usually not a good idea to change core files for platforms/frameworks. I think the first files loaded from the `app/` directory … | |
Re: I like to think of Components as non-member functions for CakePHP Controllers. If you want to reuse certain functions or blocks of code in multiple controllers, you can create a component and add it to all the controllers you want it in. For example, Cake has a component for [Sessions](http://book.cakephp.org/2.0/en/core-libraries/components/sessions.html) … | |
Re: Just to add to the above, there's a typo in your function. It's `mysqli_real_escape_string`, not `mysqli_real_excape_string` (yours has an "x" instead of an "s"). | |
Re: For completeness, the [HTML5 docs](http://www.w3.org/TR/html5/forms.html#the-legend-element) allow "Phrasing content" as children of `<legend>`. The `span` tag is [listed as such](http://www.w3.org/TR/html5/dom.html#phrasing-content-1), so yes it's valid. | |
Re: (X)HTML documentation states that the `<img>` tag requires a non-empty `src` attribute. I'm not sure why you are using background-image when you can just use `<img>` as it's meant to be used. If you open up the Gateway page in Firefox and start inspecting some elements you can see what … | |
Re: pritaeas, is the variable in your response supposed to have backticks? I've never indicated values using them. Shouldn't it be $sql = "DELETE FROM `marcacao` WHERE `marcacao`.`id` = $id"; ? | |
Re: OP, to clarify, is it possible the jpeg has PHP code in it (script to create a dynamic image maybe?). Open the file in Notepad or some text editor to see. Alternatively, please post the code of the page you're trying to open in your browser that's returning the error. … | |
Re: Apparently a big one is signing up to SEO forums with keyword-laced usernames and signature links, asking random SEO questions you already know the answer to, and overall wasting space on the site as well as peoples' time. | |
Re: You should be storing the image's filename in the database. So if you have a table `users` you could add a column `profile_pic`, for example. On your server have a directory storing the images (maybe public_html/images/profilepictures). Then in your PHP code you can combine the directory with the filename to … | |
Re: I have to agree with paulkd, are the checkboxes really necessary? Can't you just check if the value in the input box is not empty, and greater than 0? Also, please provide your HTML and form processing code so we can see where you're having a problem. | |
Re: Shucks. I was going to let this just blow past and use the excuse of "it's just a Wii rip-off" to justify not spending the money I don't really have on this. Shouldn't have read this review -- I really want one now. What about the games? Does the Kinect … | |
Re: I've not used this myself, but I think you need to look into JavaScript's `unload`, `onunload`, and `onbeforeunload` events. | |
Re: What sign up form? Natively, WP does not have a sign-up form -- only a login form. The admin can manage users through the WP backend. Are you using a plugin for some sort of sign-up form? | |
Re: pritaeas is right. Check your rule for `body` on line 5 of **style.css**. You have **overflow:hidden;** as the last property-value pair. Removing that fixes the scrollbar issue. | |
Re: What are you assigning to `frm.Gender`? If it's `document.getElementsByName('Gender')`, then you will be getting back an array. You need to iterate through the array: frm.Gender = document.getElementsByName('Gender'); genderSelected = false; for(var i=0; i < frm.Gender.length; i++) if(frm.Gender[i].checked) genderSelected = true; if(!genderSelected) {alert('Please mention your gender.');frm.Gender.focus();return false;} Note, I haven't tested … | |
Re: You need to choose the tools for the job. If you're using PHP and MySQL, you should look into either the [MySQLi](http://us1.php.net/manual/en/book.mysqli.php) or [PDO](http://php.net/manual/en/ref.pdo-mysql.php) extensions for PHP. These will let PHP connect to your MySQL database. | |
Re: If you are referring to Cisco's [Content Services Switches](http://en.wikipedia.org/wiki/Content_Services_Switch), you are very much in the wrong forum. You might try the Hardware & Software > [Networking](http://www.daniweb.com/hardware-and-software/networking/13) forum. | |
Re: Is $uid expected to be a number or a string? Try adding `echo $uid;` to see what value it outputs. If indeed it's a string, then like chemwile suggested, you would need single quotes in the query. | |
Re: Why not rearrange your sprite so the red X image is far enough below the green arrow so that you don't see it? | |
Re: <?php include("DBconnect.php"); $u="select * from users where username='shikha verma'"; $result = mysql_query($u); if( mysql_num_rows($result) > 0 ) { die("username found"); } ?> Then if you actually need the user's info, you can use mysql_fetch_array(). Please note: 1. The mysql extension is deprecated, consider moving to the [mysqli](http://us1.php.net/manual/en/class.mysqli.php) extentsion 2. You … | |
Re: Did you forget to include http://develop-platform.co.uk/css/vertical_menu_basic.css ? I see you have dcverticalmegamenu.css but it only has two lines of styles in it. | |
Re: As pritaeas said, check for unmatched parentheses or brackets. Making changes to the core files? If you're just trying to change the HTML output of how this class you may want to look into WP's Walker class. | |
Re: Pretty sure you can't declare a function inside a block of code. And even if you could, why would you in this case? Also, your comment says you want to run this again, so I assume `doSomethingElse()` is the function we're in? You should consider using `setInterval()` instead, outside this … | |
Re: What is a "recharge website?" Are you selling something? | |
Re: You should review the validity of your HTML. While it might not solve the issue in this case, it often helps ruling out other items. Try using [http://validator.w3.org](http://validator.w3.org). Some errors I see of the bat: A) Your TEXTAREA tags are self-terminating, yet are followed up with a closing tag. Textareas … | |
Re: Just a note: A `Notice` is not a fatal error message, and should not stop script execution. If you're still not getting the result you expect, the issue is probably elsewhere. On line 57 you try to access `$row`. The variable you used in your loop was `$row1`, **$row** doesn't … | |
![]() | Re: Agreed with C#Jaap. When you have users that need to update content dynamically and don't have programming experience, this is usually a job for a CMS. There are number of them out there including the ones mentioned above. |
The End.