474 Posted Topics
Re: It is normal to set the css for body first, as these are going to be global styles that you will then alter later for specific ids and classes. Using tables for layout is soooo last century. Literally. | |
Re: $name=$_POST('name'); echo $name; is the standard way, as you can get access to the $_POST array values and then process them eg trim leading/trailing spaces, addslashes, remove html, convert to a date, check for illegal characters, etc, etc from the variable you pass the value to. You shouldn't get into … | |
Re: include('deliverycosts.php'); then have your calculation rules in deliverycosts.php as a function and call that function after getting total order. in the function, you could have a switch case to detect which outlet it was, and then have all the costs defined in each case. | |
Re: The order of the columns in the database is totally and utterly unimportant. You set the order you wish them to be displayed in in your sql query or in your php code that handles the result. eg SELECT sname, fname, membnum, age FROM or SELECT membnum, fname, sname, age … | |
Re: If you are using php, [code] /* assuming your query returns to $result $numRows = mysql_num_rows($result); [/code] There is an online manual for php... If at the command line, it is returned at the end of the query output Or in mysql, you can select count(*) as the only thing … | |
Re: [code] ALTER TABLE tablename MODIFY columnname VARCHAR(50) [/code] Or if you have phpMyAdmin, select the database, the table, and Structure, then click on the edit icon (the pencil thingy) for the column and just set the new value. | |
Re: you'd really have to show us the table schemas before we can answer which fields to use in the join. also it gets a bit easier to read if you use table aliases eg [code] SELECT m.fname, m.sname, s.game, l.league FROM membership as m JOIN gameplayed as g ON m.mid=g.mid … | |
Re: If you are at the mysql command line, enter SHOW TABLES .This lists all your tables To see the fields you have created, try SHOW COLUMNS FROM tablename. To insert data into a table at the command line INSERT INTO tablename (list of its fields) VALUES (list of the values, … | |
Re: goto is a throw-back to the 1960s and is generally considered a bad thing. It generated what is called spaghetti code and programmers are advised to avoid using it. It was a much loathed method of causing problems and has been expunged from almost all programming languages due to endless … ![]() | |
Re: The likeliest reason you see no error is because you are not asking to see any errors... so alter the end of your query code [code] mysql_query("INSERT INTO iin_users (username, first_name, last_name, email, birthday, street_address, apt_number, city, state, zip_code, password) VALUES ( '$username', '$first_name, '$last_name', '$email', '$birthday', '$street_address', '$apt_number', '$city', … | |
Re: IE6 currently has about 10% of the market in browsers, so you may not need to worry about this for very long. | |
Re: The above suggestion is probably not valid html. What you have to do is fake the appearance of a div, or rather a block of text as that is probably what you want to do. And yo also want to start with plain html, rather than wrapping it up in … | |
Re: The html files belong in the folder htdocs, which should have been created when you installed the wamp. Each site you create should have its own folder inside htdocs. If you are hosting your own site on your own computer, you need a static ip address, but as your link … | |
Re: re Friend_ID, Reg_ID, Reg_ID_2 as fields Friend_ID is not needed, the joint key of Reg_ID, Reg_ID_2 would be unique, AND you'd have to declare it unique if you did it your way, otherwise someone could be listed two or three times as friend of the same person. But using the … | |
Re: html 4.01 was published in December 1999, and the last errata to the published details was may 2001 according to [url]http://en.wikipedia.org/wiki/HTML[/url] So it covers the current version that we all use. XHTML is a dead end that offers nothing of use beyond HTML, because it is almost always served as … | |
Re: Unicode is not a font, it is a character set. Fonts are on-screen shapes applied to the characters present in the character set. The character set controls the number and type of characters you can use. (the alphabet(s) it can use) To change the character set of a given column, … | |
Re: check you have a doctype and are not forcing IE into quirks mode. Check what is actually being presented by the web site via View source. if that's different to what your original template had, not sure what to suggest. | |
Re: no you can't query a database without the database engine being present! | |
Re: shouldn't let them store two items in one field!!! one field for things like dj1, another of things like band2 databases with two or more things in the same field are not normalised. you may need a link table to hold a series on event, band links, the design of … | |
Re: You could use a google calendar and save yourself a bit of effort. Only problem there is that people can jump the queue by deleting someone if the list is full. So I too suspect that overall you want a simple MySQL database and some PHP programming to allow people … | |
Re: Or instead of concatenating, do this in your programming language which handles the web page layout, probably PHP. This gives you a bit more control as you can then do things with the individual dates, but still display then on the page the way you want. | |
Re: You can do it the easy way and the correct way - most people do it the easy way. Simply use the primary key from one table as a field in the other table. there is now a simple relationship established, enabling you to carry out joins. However relational integrity … |
The End.