Jump to content

cssfreakie

Staff Alumni
  • Posts

    1,674
  • Joined

  • Last visited

Everything posted by cssfreakie

  1. You could very well have made a little type. try the following: SELECT * from teachers join subjects on teachers.teacher_id = subjects.teacher_id and main_subject = 'Maths' and sub_subject = 'Elementary Maths' This should give 1 result. Note the spelling of Elementary Maths... Also note I added a primary key for Subjects. Also i don't see the logic of storing an isbn number in there (they are bound to a book), nor why you don't make a sub table for sub_subjects I made a little dump on my local host you can directly try import it in phpmyadmin to test. -- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 15, 2011 at 01:52 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `teachersDB` -- -- -------------------------------------------------------- -- -- Table structure for table `subjects` -- CREATE TABLE IF NOT EXISTS `subjects` ( `subject_id` int(11) NOT NULL AUTO_INCREMENT, `teacher_id` int(11) NOT NULL, `main_subject` varchar(50) NOT NULL, `sub_subject` varchar(50) NOT NULL, `isbn` int(13) NOT NULL, PRIMARY KEY (`subject_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `subjects` -- INSERT INTO `subjects` (`subject_id`, `teacher_id`, `main_subject`, `sub_subject`, `isbn`) VALUES (1, 1, 'Maths', 'Elementary Maths', 452635), (2, 1, 'Maths', 'Algebra', 452336), (3, 2, 'English', 'Grammer', 645455), (4, 2, 'English', 'Vocabulary', 7435435); -- -------------------------------------------------------- -- -- Table structure for table `teachers` -- CREATE TABLE IF NOT EXISTS `teachers` ( `teacher_id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(50) NOT NULL, `last_name` varchar(50) NOT NULL, `state` varchar(2) NOT NULL, PRIMARY KEY (`teacher_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `teachers` -- INSERT INTO `teachers` (`teacher_id`, `first_name`, `last_name`, `state`) VALUES (1, 'test', 'T', 'HI'), (2, 'test', 'T2', 'LA');
  2. Apart from padding spelled with a Capital It all looks pretty valid. So i think it's just a path to image issue. maybe try: #news_display td.news { background: url(images/table_top.gif); width:200px; padding:2px; color:white; } If you have this online somewhere I can have a look P.s. Note though unless you have no other background color, you will never see the white colored text
  3. Books are pretty much always better, but if you rather try an online tutorial: you might want to check out: http://www.phpfreaks.com/forums/index.php?topic=110530.msg1576012#msg1576012 Besides that the 'css sticky' is pretty useful, and besides that most links in the css recources part are.
  4. *coughhorizontalrule* in chinese you pronounce the R as L
  5. you made a small error: this: background-image:url('..images/menu_bar.png'); should be background-image:url('../images/menu_bar.png');
  6. Besides your lack of manner, you indeed mentioned it afterwards. Most people that come here create stuff themselves and have trouble with it and seek assistance. If you were just here in order to let someone else do the coding, you should consider the freelance forum. So yes I assumed that you created that unless otherwise stated ... Besides that you linked to a template with tables, and you pasted some code with excessive (ab)use of tables. So if you're saying "what are you talking about" exactly that! And so I recommended not to use tables and have a look at something more efficient.
  7. lol dude... And where on earth did I had to read in your post that you didn't make that thing you linked to?? good luck with your future questions
  8. the above example works but assumes there is only 1 field in your form (because it uses an #id), which on average is pretty unlikely. Now you could make a class, but if you want to change all fields by default with a background color, do the following input[type="text"]{ background:#f4a; /* pink */ }
  9. first of all stop using tables for the pure purpose of creating a template. Second you mind want to have at the bottom of this topic. The exact same technique can be applied. Insted of images (as given in that topic) you can use divs. http://www.phpfreaks.com/forums/index.php?topic=335645.msg1582132#msg1582132 At the very bottom of that post i link to a blog post i made to make it more clear. Anyway it will require you to read abit, because if you are using tables you are already on the wrong track .
  10. That is the worst advice to give to anyone. As far as to make this work, assign width to each <td> so don't forget the middle one.
  11. Nice, please mark the topic solved button left corner
  12. ad to your td vertical-align: top; that should do the trick td { width: 14%; height: 14%; vertical-align:top; }
  13. I recommend to make a new topic for a new problem, besides that I still recommend you read the sticky. It's only 6 points that can (if you apply them) solve most common cross browser issues. Besides that, I also recommend you link to an online example of the thing you say has issues.
  14. Make sure you set the right type text/css for css and text/javascript for javascript
  15. as you can see they use a darker line of 1 pixel and a white line of 1 pixel. In css we have the border property to do that for us. In this case it could very well be 2 div's (or any other type of container) that are floated next to each other. http://www.w3.org/TR/CSS2/box.html#border-properties If you need help applying it to your code let me know.
  16. yeah it's hard to spot but this might give a hint Error Line 6, Column 12: there is no attribute "ref" PLease spent some time on this, don't bombard the forum,or even the same topic with all these snippets.
  17. That is not interesting that is how it works. But for some reason people fail in reading the sticky and comments made in other posts. Also you did not spot the hint given, why the validator is not accepting your php. If i say that it tests the code that is shown in your browser does that ring a bell? Spend some time on this stuff yourself you have crap loads to clean up and i repeat we are not here to clean up garbage. We are happy to help, but if you want things to look similar crossbrowser the first thing you need to do besides reading the sticky is to remove all errors
  18. Are you serious? You have 54 errors and you are saying 'so what'? We are not here to clean up your garbage. Besides that the validator tells you precisely what is wrong and what might cause it. So it should be easy to clean it up. Apart from that you are showing us which is a server side script, and the fun thing about this forum is that it requires client side code. Besides that, You may want to spent the whole day reading about using a valid doctype and how to use one. I can already see that is 1 problem next to the 54 mark up errors. Also you may want to spend some time in reading the sticky which says "read before posting" And i have a feeling that last thing is said earlier... So unless someone is willing to clear up al those errors i would if i were you in the meanwhile clean up those errors. -edit: PFMaBiSmAd is a faster typer -edit:2 I just read your wondering why the validator does not like you php. I already gave a hint above. -edit 3: Are you serious? you still have a topic out there with the exact same stuff. And weird enough your response there is exactly the same: "whatever man" Not even is it rude to not respond to people offering there help/time, but you also completely ignore what they say. You really have no idea. I hope you do what is recommend above...
  19. Well if you have an online example of your code i am pretty sure the reason why it happens is spot-able. Happy to look at it
  20. can you change isSet to isset, and tell what happens?
  21. always better to seperate style from logic, and to behonest the above could have been done smoother by setting a class variable. that would save 2 span tags
  22. It shows up fine here. (firefox 4 )MAybe try out my testing file. Note though i added table tags and since you use width as attribute i also added a transitional doctype. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link type="text/css" rel="stylesheet" href="css/style.css" /> <title></title> <style type="text/css"> .tbl-col { background-color : #FFDA99; color : #C00000; font-size : 15px; font-style : italic; font-weight : bold; height : 25px; text-align : center; } .cnr-tl { border-top-left-radius : 10px; -moz-border-radius-topleft : 10px; -webkit-border-top-left-radius : 10px; } .cnr-tr { border-top-right-radius : 10px; -moz-border-radius-topright : 10px; -webkit-border-top-right-radius : 10px; } </style> </head> <body> <table> <tr> <td width="12%" class="tbl-col cnr-tl">Col 1</td> <td width="20%" class="tbl-col">Col 2</td> <td width="20%" class="tbl-col">Col 3</td> <td width="30%" class="tbl-col">Col 4</td> <td width="12%" class="tbl-col cnr-tr">Col 5</td> </tr> </table> </body> </html> Give it a try
  23. place the <li> that the javascript is using above the other <li>'s So that is the one with class is 'back' <ul id="2" class="menu"> <li class="back" style="left: 72px; width: 61px; overflow: hidden;"><div class="left"></div</li> <li class="current"><a href="#">Home</a></li> <li><a target="_self" href="play.php">Play!</a></li> <li><a onclick="showElement('pageOverlay', 'loginBox')" id="account" href="#">My Account</a></li> <li><a href="#">Members</a></li> <li><a href="#">Top Players</a></li> <li><a href="#">Logout</a></li> </ul> Besides that rename your ID never start with a number *mark it solved when fixed please, cheers! cssfreakie P.s i just copy pasted it, all you need to do is change the order of the original <li>'s like above, nothing more the inline values are inherited from the javascript.
  24. I don't see anything other that pops out... do you have an online example? easier to see what is going wrong
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.