474 Posted Topics

Member Avatar for samaniac

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

Member Avatar for drjohn
0
158
Member Avatar for rienada

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 …

Member Avatar for drjohn
0
141
Member Avatar for snefmoo

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 …

Member Avatar for drjohn
0
846
Member Avatar for slyme

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

Member Avatar for erickci
0
423
Member Avatar for shaikanwar14

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 …

Member Avatar for Armadillo
0
173
Member Avatar for enam

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.

Member Avatar for enam
0
480
Member Avatar for tecktalk

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.

Member Avatar for terabyte
0
131
Member Avatar for nedsnurb

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 …

Member Avatar for nedsnurb
0
110
Member Avatar for imKEN

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 …

Member Avatar for macgurl70
0
136
Member Avatar for Moirae

Javascript mouse followers / mouse trails were considered cool - in 1999. It's 2010 according to my calendar...

Member Avatar for almostbob
0
97
Member Avatar for youlichika
Member Avatar for youlichika
0
161
Member Avatar for shanenin

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

Member Avatar for drjohn
0
173
Member Avatar for feoperro

Treat all user input that interacts with the database as an attack!!! Check it carefully for signs of an attack.

Member Avatar for diafol
0
98
Member Avatar for Hell Bomb

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 …

Member Avatar for drjohn
0
426
Member Avatar for chinee

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 …

Member Avatar for chinee
0
378
Member Avatar for hurt138
Member Avatar for trpsjt2008

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.

Member Avatar for Kraai
0
137
Member Avatar for dwlamb_001

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

Member Avatar for dwlamb_001
0
78
Member Avatar for TLCJohn

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 …

Member Avatar for drjohn
0
57
Member Avatar for feoperro

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.

Member Avatar for feoperro
0
219
Member Avatar for Griffin54

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 …

Member Avatar for logoonlinepros
0
160
Member Avatar for Siberian

[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]

Member Avatar for menchester03
0
208
Member Avatar for GiddyupGilbert

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 …

Member Avatar for GiddyupGilbert
0
117
Member Avatar for nikita.chandra

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 …

Member Avatar for drjohn
0
382
Member Avatar for NewOrder

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 …

Member Avatar for drjohn
0
134
Member Avatar for Pinchanzee

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 …

Member Avatar for drjohn
0
175
Member Avatar for LogicWeb
Member Avatar for Biome
0
151
Member Avatar for isotope

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

Member Avatar for Cool&Awesome
0
121
Member Avatar for caps_lock

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 …

Member Avatar for drjohn
0
140
Member Avatar for PsychicTide

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 …

Member Avatar for PsychicTide
0
110
Member Avatar for Abysinian

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 …

Member Avatar for Abysinian
0
115
Member Avatar for dantadin

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 …

Member Avatar for drjohn
0
114
Member Avatar for nikita.chandra

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 …

Member Avatar for teedoff
0
126
Member Avatar for NewOrder

Like this [code] <pre><code>//Do a bit of code debugging ||-- Check Array vals document.write ("&lt;ul&gt;"); for (i=1;i&lt;array.length;i++) { str += "&lt;li&gt;Value of array " + i + " is: " +array[i] + "&lt;/li&gt;"; } document.write(str); document.write ("&lt;/ul&gt;"); </code></pre> [/code] <pre> is for pre-formatted stuff and retains the white space that …

Member Avatar for NewOrder
0
157
Member Avatar for ben.matthews18

is UserID meant to be a field? because you're not creating that field in this table.

Member Avatar for drjohn
0
105
Member Avatar for iLoveNoodle

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

Member Avatar for drjohn
0
135
Member Avatar for kcott

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 …

Member Avatar for drjohn
0
127
Member Avatar for mushget
Member Avatar for stonest123

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

Member Avatar for pakishpk
0
402
Member Avatar for prasu

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.

Member Avatar for drjohn
0
1K
Member Avatar for jackparsana

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 …

Member Avatar for Bruce100
0
243
Member Avatar for timkonu

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 …

Member Avatar for timkonu
0
82
Member Avatar for gurushankar

You don't "install" sql. It is build into the database. You install the database, that's all.

Member Avatar for smvinothkumar
0
74
Member Avatar for bella422316

I found this bit of jquery yesterday! [url]http://www.keyframesandcode.com/code/development/javascript/jquery-highlight-plugin/[/url] which does several useful things.

Member Avatar for drjohn
0
185
Member Avatar for manim

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 …

Member Avatar for drjohn
0
150
Member Avatar for P0lT10n

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 …

Member Avatar for P0lT10n
0
173
Member Avatar for danimal132

A script that takes three minutes to process 65 entries??? What on earth is it doing in all that time?

Member Avatar for drjohn
0
177
Member Avatar for erin2010

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 …

Member Avatar for brandonrunyon
0
146
Member Avatar for axfv

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

Member Avatar for drjohn
0
172
Member Avatar for freddiecool

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

Member Avatar for drjohn
0
98

The End.