474 Posted Topics
Re: $result = mysql_query("SELECT email FROM users WHERE [B]email='$name'",[/B]$db); Your form is not passing any variable called $name, and also you haven't even collected the data from the form at this point - your $_POST bits come after this, so even if it was a variable on the form, you can't … | |
Re: You need multiple tables to do this properly. person--<loans>--equipment person stores people details, with a PK = PersonID equipment stores ALL the stuff you loan out, with a PK of eqipID, and includes a field called eType for type of item (plus other fields you may need) for example equipment … | |
Re: I had similar problems with server2go and it seems very difficult / impossible to add things to a database on it. I too played withits config file for hours of endless confusion. I switched to using usbwebserver ([url]http://www.usbwebserver.net/en/[/url]) which completely wipes the floor with server2go. I now use it as … | |
Re: Short words are ignored, the default minimum length is 4 characters. You can change the min and max word length with the variables ft_min_word_len and ft_max_word_len according to [url]http://www.petefreitag.com/item/477.cfm[/url] so try 'SOM ' - note the space after som | |
Re: Suggest you go read up on the son of suckerfish way of making menus. Your way will fail with javascript disabled and requires you to write lots of code for each link. Suckerfish is sooooo much easier to use. just add the twelve line script via an external javascript file … | |
Re: The blink tag was invented as a joke, when someone at Netscape said can you make the text flash on and off. It is highly NOT recommended for a variety of usability reasons. It is considered one of the signs of a true beginner. | |
Re: I was just about to recommend the same book! (Second hand from one of the charity bookshops on Amazon gets you great bargains!) Books are better than little two page tutorials on a simple sub-topic. Online tutorials could be written by another beginner, books aren't. | |
Re: Just give each link a title, which will appear as a tooltip for you with absolutely no effort required. No special tooltip code required what so ever. [code] <a href="images/friends/arnie.jpg" rel="lightbox[friends]" title="This will show up as a tool tip when the mouse is hovering"><span class="classic">This is my friend arnie, click … | |
Re: If you drop the angled bars with home, about, etc, you can simply set the rest of the image as the background to a wrapper div, and then set content and header divs inside that which correspond to the positions of the areas you will use for your content. Then … | |
![]() | Re: Javascript mouse followers / mouse trails were considered cool - in 1999. It's 2010 according to my calendar... |
Re: IE6 currently has a market share of between 4 - 6% of the browsers used world wide... | |
Re: [QUOTE=Cool&Awesome;1399684]Hi Shanenin, I see in css that for most of the text containing tags font-size is not defined in the first place, and where it is defined, it's in relative values (small, 90%) so pretty much everything about sizing is left to browsers to decide, and we all know IE... … | |
![]() | Re: Treat all user input that interacts with the database as an attack!!! Check it carefully for signs of an attack. ![]() |
Re: Don't you just love memorising 2800+ lines of code then juggling it around in your mind to spot the answer!!! If the page had been online and an url supplied, it would have been soooo much easier to use web developer toolbar to test edit it with no problems and … | |
Re: Read this very carefully [B]You can not put one style definition nested inside another one!!!![/B] So CSS that looks [B]anything[/B] like this .something { .someotherthing{ } } is AUTOMATICALLY wrong and totally ignored. Each style has to be defined separately .something { } .someotherthing{ } .anotherthing { } Is that … | |
![]() | |
Re: Try putting a few spaces into that monster long "word" and you'll soon see things are okay! It's your test "word" that is the problem!!! Not the code. Never test a layout with a word like that. | |
Re: #wrapper{ background: #ffffff url('../images/axis-y_bkgrd.jpg') repeat-y fixed center top; margin:0 auto; overflow:visible; width:710px; } Should have overflow:hidden; overflow:visible means that you can see it overflowing from the div, with the div itself stopping where its own content stops.. hidden means that it doesn't overflow out of the div, but stays inside … | |
Re: As a scientist I can give only one answer - [B]do the experiment! [/B] Make a couple of templates, one simple, one a little bit more complex, and see if the client can use them. It's as easy as that. If the answer is yes, get to work on the … | |
![]() | Re: PHP is server side only. All processing takes place there and only the results of the processing (an html page usually) are sent to the client. ![]() |
Re: Buttons are hard to style, and tend to look different in different browsers. Buttons are meant to be part of a data collection form, and should not really be used for ordinary links - that's what the "<input type=button" is saying. Input, as in data input. You hear people talking … | |
Re: [url]http://cssbasics.com[/url] [url]http://htmldog.com[/url] [url]http://websitetips.com/css/tutorials/menus/[/url] [url]http://www.westciv.com/style_master/hands_on_tutorial_sm/index.html[/url] | |
Re: Hiding your menu in a tiny little line at the absolute bottom of the page is a bad idea. It's so bad that you've had to add a note to tell people where it is - put it near the top, make it bigger, and change your a:hover and a:visited … | |
Re: start with a browser reset. some people recommend huge resets, but I settle for the simplest one that works. body { margin:0; padding:0 } Next don't bother adding padding to any div itself, add it to the bits you add inside the div. That usually gets round lots of little … | |
Re: If you copy anything at all from a word doc, you must MUST [B]MUST[/B] paste it into something like notepad (Or any decent text editor, which little old notepad is definitely not), the copy it from there into dreamweaver or any other program you happen to use. This will dump … | |
Re: The order of data in your table is totally and utterly irrelevant. Extract you data as required via a query and include an ORDER BY clause. Display it on your web page and fiddle around with the display using PHP. No need at all to "re-order" a table. This is … | |
Re: don't use tiny fonts anywhere! They are hard to read | |
Re: Sorry, but it crashes and burns when the content gets a bit long and then sits over the top of the footer which doesn't move downwards. Try adding 25 - 30 or so lines of fake content to see this. Number of lines depends on the size of your screen. … | |
Re: Well you can't expect to learn PHP and database theory overnight! There are a lot of basic concepts about programming, about database design, theory and normalisation, and using SQL that you have to learn. They will all take time, but learning is fun. Some people jump straight in with, as … | |
Re: I've just tried this on a page of my own with a video on it. I had to change both parts where it said width... height... (your line 2 and line 6) Although it got bigger, if I didn't change the values in proportion, I got a white area top … | |
Re: divs don't really inherit a width - they are all 100% wide unless you state otherwise. Okay, 100% of the width of their parent container, so it's sort of inheritance. You should give your div a width that suits the image size you intend to use. Eg image is 350px … | |
Re: That's right, that's exactly how browsers print things. Unless you tell them otherwise. You can't write it in the code, you have to tell your own personal browser to print the background image. Web pages aren't actually intended for printing, but for viewing on a PC. With a black and … | |
Re: Technically that's not a hack, above, as a hack exploits an error to get a result. Filter is IE only proprietary code, the same way that when dealing with older browsers for shadows we use some proprietary code for them, like this -moz-box-shadow: 4px 4px 4px #a6c6d1; <-- proprietary mozilla … | |
Re: Like this [code] <pre><code>//Do a bit of code debugging ||-- Check Array vals document.write ("<ul>"); for (i=1;i<array.length;i++) { str += "<li>Value of array " + i + " is: " +array[i] + "</li>"; } document.write(str); document.write ("</ul>"); </code></pre> [/code] <pre> is for pre-formatted stuff and retains the white space that … | |
Re: is UserID meant to be a field? because you're not creating that field in this table. | |
Re: One other helpful tip is when making a div, avoid adding padding to it as it will be inherited by the paragraphs, links, divs inside it as well. I find that if I add any padding required directly to the element in question - the paragraph or whatever inside it, … | |
Re: The emails are sent by the program/script referred to in the action part of the form, in this case that's requestsubmitted.asp That's probably where the problem is, assuming that people complete the form and things go wrong on clicking the send button. Forms are actually totally dead inert objects unless … | |
| |
Re: And never use reserved words as your tag ids or classes! eg body is a reserved word in html, and you use it as an id. It is VERY bad practice to do that. You can set the background-color to anything - to the body, an h1, h2, p, ul, … | |
Re: Sorting column names is never required. You specify the order you wish the columns to be displayed in your sql query or, on a php powered web page, in your php. You are totally wasting your time trying to do this, it serves no useful purpose. | |
Re: Normally you would export the data from your spreadsheet first. Most people say use a csv file, but as your data can easily include a comma in a text field, this is not the best format. Use tab delimited text instead, available as a file type option in Excel. Then … | |
Re: Reserve: yes/no AND selected: yes/no are probably attributes of a player, not an entity. So from all the players that belong to a team, some are selected and of those, some are reserves. However, I'm doing this from your very limited description of your homework ;) homework? yes, it's a … | |
Re: You don't "install" sql. It is build into the database. You install the database, that's all. | |
Re: I found this bit of jquery yesterday! [url]http://www.keyframesandcode.com/code/development/javascript/jquery-highlight-plugin/[/url] which does several useful things. | |
Re: MySQL Manager Lite is a free database management tool from EMS. [url]http://www.sqlmanager.net/products/mysql/manager[/url] scroll down the page to see the free version's download I use this regularly for a routine task I have to do. HeidiSQL is highly recommended by one expert I know of. [url]http://www.heidisql.com/[/url] for some strange reason it … | |
![]() | Re: To center a page, first it must have the entire content inside the outermost div, which must have a width applied in the css. Then you add margin:auto to that div's css and that's it done. eg assuming like most people your outermost div has the id = "wrapper" (it's … ![]() |
Re: A script that takes three minutes to process 65 entries??? What on earth is it doing in all that time? | |
Re: You simply do [B]NOT[/B] insert anything in alphabetical order (or any other order for that matter). The order the data is stored in a database is totally and utterly irrelevant. What matters is what you do when you [B]retrieve[/B] the data, and what data you retrieve of course. To get … | |
Re: As you are selecting both dates before and dates after, you can do this in a single query by missing out the date condition completely and just sorting by the date!!! IE SELECT name, date FROM events ORDER BY date | |
Re: [QUOTE=freddiecool;1321100]Hi, I have read that strict xhtml is better than transitional xhtml for viewing the web for the visually impaired but can anyone tell me what the difference is? How is strict xhtml better than transitional xhtml. Thanks inadvance.[/QUOTE] It isn't. YOU are the one that makes a page better … |
The End.