Jump to content

pb1uk

Member
  • Posts

    71
  • Joined

  • Last visited

Everything posted by pb1uk

  1. I have changed the css for the categories div (sidebar) to #categories { float: left; width: 195px; margin-left: 3px; margin-bottom: 3px; height:100%; background-color:#000; position:absolute; } Now the sidebar overlaps the footer! Is there a way to make it stop at the footer?
  2. Hi, Sorry the <b> tags were meant to show what i had added, obviously got that wrong! I've changing the background colour to black but the categories div still doesn't go down to the footer. The css for it is: #categories { float: left; width: 195px; margin-left: 3px; margin-bottom: 0px; height:100%; background-color:#000; } so far Do you have any idea why i'm going wrong with that method?
  3. Hi thanks, for the quick response. I haven't got the site online yet, however the template is available from the link on my previous post. I'm using exactly the same in terms of layout just have changed the colour a little. I have used margins and borders elsewhere so can't really turn the background to black. The only difference i have made is to add a div called block in this section of the code <li><a href="http://www.freewebsitetemplates.com">Jeans</a></li> </ul> [b]<div id="block"><p> </p> </div>[/b] </div> <div id="seasonal"> and styled it as in my previous slide. It's really annoying me as i'm sure there's a simple solution!
  4. Hi Everyone, I'm wondering if anyone can help me solve a css problem i have been having, i'm sure it's simple but css isn't my strong point and i've been trying for ages but can't get around it. I'm using a template: from webshapes that can be seen here The problem i've been having, if you look at the list of categories on the lefthand side, there is a small gap between that and the footer. I have tried creating a new div within the categories div and giving it the following properties: #block { float: left; width:195px; margin-top: 1px; background-color: #000; background-repeat: repeat-y; } The top and left line up fine but as i can added more content to the two divs in the middle of the page the new block i've added won't go down to the footer. I have attached a picture of how it looks at the moment. Content on pages across the site i'm doing could go a little over the length of the sidebar or a long way so i need the div to basically cover that blank space no matter what. I hope that makes sense. Any help would be greatly appreciated. Thanks, Peter
  5. Hello all, My problem is php/javascript, so i didn't know which board to post on! I have a table to update all records in a table in a database. The table displays fine and updates ok. However what i'm trying to do is add two values together in order to obtain the value to be input into the database. At the moment my code is: <form name="addgkscores" method="post" action="" > <table border="1"> <tr> <td>id</td> <td>gkname_gk</td> <td>PLD</td> <td>CLN</td> <td>points</td> </tr> <?php while($row_rs_test=mysql_fetch_array($rs_test)) { ?> <tr> <td><?php echo $row_rs_test['gkid_gk']; ?></td> <td><?php echo $row_rs_test['gkname_gk']; ?></td> <td><input type="text" id="p" size="3" value="0" /></td> <td><input type="text" id="c" size="3" value="0" /></td> <td><input name="foo[<?php echo $row_rs_test['gkid_gk']; ?>]" type="text" id="test" value="<?php echo $row_rs_test["$scoreweek"]; ?>" /></td> </tr> <?php } ?> </table> <input type="hidden" name="week" value="<?php echo $scoreweek; ?>"> <input type="button" name="addbutton" onclick="calculatescores(p.value, c.value)" value="add"/> <input type="submit" value="Insert scores" name="submit"/> </form> This is what i have upto now. I need to add the value of p to the value of c and return this value in the column id="test". I haven't included my javascript function as it doesn't work! I can get two fields to add up and return it in a blank field but because this is a dynamic table there are around 30 records in this table to update and i'm not sure how to do this for each one. I've searched around for a solution but have been unable to find anything. Any help would be brilliant. Thanks, pb1uk
  6. Hello all, I have a registration page on my website for users to sign up to use the site. It was setup using the insert record form wizard in Dreamweaver cs4 and works fine. What i would like to do is that when the user hits the button to insert the record into the database, they also receive an email with their registration details. I have searched around and have been unable to find a a method of how to achieve this. The only methods i found us ASP and my site is in PHP. Any help or advice would be grealty appreciated, Thanks, Peter
  7. Hi, Sorry for my late response, but the above worked a treat thank you Krillz
  8. Hello all, I'm having a problem with adding up the values that are displayed in a table. I won't copying and paste all my source code here as there is a lot of it and i think people could understand my problem abother way. If you look at the following link: http://www.w3schools.com/PHP/php_ajax_database.asp This shows a drop down menu which when selected brings information held in a database based on the selection. My code is adapted from that of the link above, except i have two drop down menus both accessing different tables in the database. What i'm trying to do is when the user selects an option from the drop down menus, in a table below the total age is summed. For example from the link above if the user selected Peter Griffin from the first menu and Lois Griffin from the second menu in a table below their combined age would be calaculated (in this example 40+41 so 81 would be displayed below) I've searched high and low and this has been causing me problems for weeks now, any help or adivce would be greatly appreciated. Thanks for taking the time to read this. Pete
  9. In the the table of players i have: playerid - unique id stored as an integer playername - players name playervalue - players value playerclubid - unique id of players club The form is being enterred into the team table of the database. The labels for the drop down menu are got from playername and the id actually enterred into the team database for each player is got from playerid. What i need to do is dynamically populate a cell in a table based on the selection made from the drop down menu. This value will not be enterred into teams database it is merely being used to calculate the total value of the team. Is that the kind of thing you need to know?
  10. Thanks for the response. The dropdown menu is already populated with values from the player database. The label is given from the name and the value that is submitted to the database table is the players id. I do need it to be so the page doesn't have to be reloaded, so think ajax is the way to go. Imagine a form with a drop down menu: (col 1) (col 2) (col 3) Select player: |dropdown menu| ??? what i need to happen is when a player is selected from the menu their value appears in the column of the table where the question marks are. I notice of those links and i've seen a few places where you state option1, option 2 etc which would be ok, however i have hundreds of players in the database so this would take ages and i'm sure there's a much more efficient way to do it.
  11. Hello all, I'm having a bit of head scratching problem that i just can't get my head around. I'm using Dreamweaver CS4 and phpmyadmin for my site. I have a form that inputs a record into a table in my database. The form is a user picking a fantasy sports team. A user selects a player from a drop down menu. The players name is got from a recordset that accesses the player database, with the values coming from the id field and the values from the name, so a user selects a player by there name and not there unique id value. The code for this is as follows: GoalKeeper: <?php do { ?> <?php echo $row_rs_pt_gk['gkname_gk']?> <?php } while ($row_rs_pt_gk = mysql_fetch_assoc($rs_pt_gk)); ?> The form is displayed as a table. In a row that i have added below i would like to display the players value, however this will not be input into the database, it's purely there so the the overall value of the team can be calculated, as the teams total value must not exceed a certain amount. I need the players value to be shown for the correct player. So for example if the user changes there choice from the menu of player name the players value will change to the player selected. I guess i need to use some kind of onclick javascript function, but i haven't used javascript before and i'm not even sure if it's the correct way to go. Any help or advice would really be appreciated as i just can't seem to get my head around it, Thanks, pb1uk
  12. The form is only for adding a player to a fantasy game and will only be used by the administrator. For other forms on my site, how would i achieve what you've stated above?
  13. I have managed to solve the problem, thanks for the point in the right direction. I put in the following function: function CopyValue(obj1, obj2) { var visibleField = obj1; obj2.value = visibleField.value; } then add the following command: onSubmit="CopyValue(clubid_gk, clubkit_gks)" and finally the hidden field code:
  14. I'm entering a player into the database. Thevalue enterred by the user if the club that the player plays for and is submitted as an integer value into the database. The hidden value is the club kit id. It has to be the same so the kit matches the club if that makes sense. Is there a way to do it with a line of php code?
  15. Hello all, I'm experiencing a problem with a form on my website. The form inserts a record into a table in my database. I have a field where the user enters a value. I need the same value to be input into a hidden field on the form. My code is: For the visible field: Player value: currently for the hidden field: The question marks are where i can't figure it out
  16. Hello all, Apologies if something similar has been posted elsewhere. I was wondering if anyone knows of any good sources of free customisable web templates? I know typing it into a search engine brings lots of results, but it would be good to get some recommendations for tried and tested sites. Thanks in advance
  17. Thanks. How could i set the value to what the user had just enterred in the field above? I did forget to add the php code for after inserting: $insertGoTo = "pickteam.php";
  18. Hello all, I'm currently in the process of making a fantasy football website in Dreamweaver and phpmyadmin. When a user visits the site and wants to enter the competition they click register which brings up the register page. There they can fill out the form containing details username, password etc. When they click the register button at the bottom of the form their details are put into the users table in the database and they are passed onto the next page where they are asked to pick their team. The team details are kept in a seperate table in the database. What i'm trying to do is pass the username that is created in the register from to the pick team page as a parameter. Currently the code for my button is as follows: In another section of the site i have passed a parameter with a link as follows: but i'm not sure how to pass a parameter using a submit button, can anyone help me please?
  19. Thanks ever so much. I used the rssinclude site and it's perfect, just what i was looking for
  20. Hi, I've had a look at the bbc pages, but i'm unsure of how to use a news reader. I've tried but can't seem to get them to work. I think what i need is just a little section of code possibly javascript to link to the feed. I've never used on written any java before so it's all a bit foreign to me!
  21. Hello all, I'm new to forum and to web design in general. I'm still getting to know the subject and am feeling my way around. I'm currently working on my first site in Dreamweaver cs4. I have a div setup as a right hand tool bar for adverts and other bits and pieces like that to go. What i'm trying to do is put an rss feed in there from the bbc website. I'm not sure i have explained what i meant very well, so here's a link to an example of what i'm trying to achieve: www.footballmanager.co.uk if you visit the site and scoll down a little on the right hand side there's a news feed from the bbc sport website showing the latest football headlines. I was wondering if anyone knows of a way i could do something similar to this? I've been looking at rss feeds and news reader software in general but i don't really understand what to do with them and how to make them work on my site. Any help, advice or a point in the right direction would be greatly appreciated. Thanks, Peter
×
×
  • Create New...