344 Posted Topics

Member Avatar for davidjennings

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 …

Member Avatar for davidjennings
0
378
Member Avatar for davidjennings

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.

Member Avatar for davidjennings
0
363
Member Avatar for webreaker
Member Avatar for EvolutionFallen
0
258
Member Avatar for trektrak

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.

Member Avatar for trektrak
0
5K
Member Avatar for <M/>
Member Avatar for tqmd1

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 (`.`)

Member Avatar for JorgeM
0
495
Member Avatar for david.faizulaev

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 …

Member Avatar for diafol
0
302
Member Avatar for liza_1

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.

Member Avatar for EvolutionFallen
0
214
Member Avatar for suavedesign

Not sure I understand your meaning of "wrap around the image". Do you mean to put the text on top of the image?

Member Avatar for suavedesign
0
261
Member Avatar for piyalthunder

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.

Member Avatar for EvolutionFallen
0
62
Member Avatar for TIM_M_91

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"); }

Member Avatar for LastMitch
0
145
Member Avatar for saybabs

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.

Member Avatar for EvolutionFallen
0
78
Member Avatar for Hans B

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"?>'; ?>

Member Avatar for Hans B
0
552
Member Avatar for laura301019

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.

Member Avatar for EvolutionFallen
0
114
Member Avatar for shelexelex

@Gaetane don't forget `session_start()` at the top of the page!

Member Avatar for Gaetane
0
352
Member Avatar for CreatorZeus
Member Avatar for guest27

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 …

Member Avatar for JorgeM
0
234
Member Avatar for zobadof

`<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>

Member Avatar for GrazerC0de
0
2K
Member Avatar for Indians

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 …

Member Avatar for Indians
0
280
Member Avatar for noahwilson
Member Avatar for Ann Krizette

Wrong forum??? That aside, it would be difficult to answer this without knowing any of the schema, structure, and code of your program.

Member Avatar for Ann Krizette
0
276
Member Avatar for travis.holt.921_2

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 …

Member Avatar for EvolutionFallen
0
218
Member Avatar for mohammed.ismail

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 …

Member Avatar for EvolutionFallen
0
68
Member Avatar for mohammed.ismail

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) …

Member Avatar for EvolutionFallen
0
92
Member Avatar for alobi

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").

Member Avatar for mmcdonald
0
352
Member Avatar for Violet_82

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.

Member Avatar for Violet_82
0
1K
Member Avatar for davy_yg

(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 …

Member Avatar for EvolutionFallen
0
229
Member Avatar for jotapx

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"; ?

Member Avatar for EvolutionFallen
0
532
Member Avatar for Kim_2

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. …

Member Avatar for EvolutionFallen
0
481
Member Avatar for mughaltent

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.

Member Avatar for trendykarthick
-1
189
Member Avatar for Saleh_1

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 …

Member Avatar for IIM
0
143
Member Avatar for ehpratah

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.

Member Avatar for ehpratah
0
363
Member Avatar for happygeek

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 …

Member Avatar for william.goo.3
1
1K
Member Avatar for Priti_P

I've not used this myself, but I think you need to look into JavaScript's `unload`, `onunload`, and `onbeforeunload` events.

Member Avatar for almostbob
0
151
Member Avatar for best4earn

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?

Member Avatar for best4earn
0
111
Member Avatar for frefre.ewfewf

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.

Member Avatar for JorgeM
0
209
Member Avatar for ghosh22

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 …

Member Avatar for almostbob
0
204
Member Avatar for Pravinraj

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.

Member Avatar for cmps
0
260
Member Avatar for athman

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.

Member Avatar for EvolutionFallen
0
873
Member Avatar for wastedkill

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.

Member Avatar for EvolutionFallen
0
190
Member Avatar for nikk8a

Why not rearrange your sprite so the red X image is far enough below the green arrow so that you don't see it?

Member Avatar for nikk8a
0
200
Member Avatar for Tko_1
Member Avatar for Shikha_1
Re: php

<?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 …

Member Avatar for kkbalwada
0
199
Member Avatar for london-G

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.

Member Avatar for pritaeas
0
139
Member Avatar for f5media

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.

Member Avatar for EvolutionFallen
0
126
Member Avatar for john.jansen.549

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 …

Member Avatar for EvolutionFallen
0
72
Member Avatar for arsharma159
Member Avatar for bradly.spicer

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 …

Member Avatar for bradly.spicer
0
278
Member Avatar for sanbhu2105

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 …

Member Avatar for EvolutionFallen
0
336
Member Avatar for sonicx2218

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.

Member Avatar for EvolutionFallen
0
157

The End.