Jump to content

Selacius

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by Selacius

  1. Awesome. I had a script that did wat I wanted for the most part, it just wouldn't save all the changes. Had to just change a single value to get it to work.
  2. I am curious how I can go about modifying text files using php. I would like to display the files in a text box where i can either remove lines or insert lines then "save" the file and the changes gets saved to this new text file.Any ideas?
  3. maybe try echo $uname[$c];
  4. Figured out the problem with this. When adding values to an array and trying to display the values on a page, start at 0. For example:$array = array(1,2,3,4,5,6);echo $array[1]; //Shows up as 2echo $array[0]; //Shows up as 1
  5. Whenever your inserting php into your javascript your using this: <?=$row[1]?> well your forgetting on important aspect of php, it requires that a ';' be present after every line. Therefore this; <?=$row[1]?> should be replaced by this: <?=$row['1'];?>
  6. So your going to place many of this itemids in your url? Could you give us a bit more information. Im thinking you could possibly do what you want with a for loop, or possibly a while loop. If you told us exactly what you wanted done Im sure we could figure something out for you.
  7. Selacius

    Links

    Use this:<STYLE type="text/css"><!--A:link{color:CCCCCC;text-decoration:none}A:visited{color:CCCCCC;text-decoration:none}A:active{color:CCCCCC;text-decoration:none}A:hover{color:FF0000;text-decoration:none}--></STYLE>CHanging the colors to whatever you want them to be.
  8. I know how to target frames using normal links. If you were to look at the url of the page, then you would see that it opens a DHTML window in that frame. What I am trying to do is have it so that the DHTML window opens in a certain frame instead of the one which it is called from.
  9. With all the problems I am having in trying to get my modeless window to work, I think I will try this one out:http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow.htmThe only problem is, I am using a framed layout and well when I click the link to open this type of window, it opens in my menu frame, which I don't want. Could any of you possibly tell me where I can modify so that the link opens in one of my other frames?Thanks.
  10. Now I have a final question. Why are modeless windows crappy are registering when the page they are displaying is changed? What I mean is if I were to change the content on a page which I previously viewed in a modeless window, then tried to open it again, the old page would still be displayed. How can I fix it so that the newest copy of the page is always displayed?
  11. On all pages, it is fine for me. I see no gap at all on any of the pages. But earlier I did. So it appears as if you did something which fixed it, at least for my browser. I am using IE 6 to view your page.
  12. If you mean that the copyright is preventing the left nav image from spanning the height of the page, well its fixed. I just viewed your site and there isn't a gap anymore between the bottom of the nav image and the bottom of the page.
  13. Alright maybe I did use CSS, but afaik there is no way to make sure that there is no gab between the top of your page and the top of your table without using absolute positioning.
  14. I didn't use CSS to fix your problem. I used DIV layering to fix it.
  15. Just checked out your site, looks good. Not sure what you mean about your problem with the side panel image stopping over the text. All I see in the bottom left corner is that the there is a gap between the end of the image and the end of the page. Also, I notice that the corner piece in the upper left corner is kinda screwy in its position.
  16. Okey, I have read on a few different websites that any links opened from a modeless window, will open in a new window instead of the modeless window. I would like to know if there is a way to solve this issue. If your unsure what a modeless window is, please check this page here:http://www.dynamicdrive.com/dynamicindex8/modelesswin.htm
  17. I could be mistaken but it sounds as if JohnCP was referring to the table not being at the very top of the screen, which my modification will fix. Sorry if I interpreted your question wrong.
  18. This may or may not be a javascript problem in its basis but I have a few questions about javascript and its relation to modeless windows.First,How do I via javascript close a modeless window. I am aware that one could simple press the X on the window, but I would like to actually have a button for the user. Second,Is there a way to fix modeless windows so that any links are opened in said window. Example if I put a form into a modeless window, how can I keep it from opening in a new window when the user submits it?
  19. Replace this code with the code you have at the start, the <table> bit.<div style="position:absolute; top:0px; left:256px"><table border="1" width="75%" cellspacing="0">Now for the left:256px thats centering the table in an 1152x864 screen. So you'd have to change it to fit a 1024x768 screen. To do so, you just take 1024x0.25 (space not taken up by the table). Then divide that answer by 2 (space on each side). So you should replace the 256 with 128. Now I removed the cellpadding="5" because all that does is increase the width of your border which you have set to 0. Also seeing as this is being made in <div> layers, you can't use the align=center in the <table> code. And you can get rid of the style="border-collapse: collapse;" because you previously told it to have a border of 0.
  20. This is the code I am currently using to change the link direction of a button which follows. The only problem is I want the link to open in a new window, and also the new link does not have the *.html ending. Here is the codeCharacter Race:<td colspan=3> <select name="race"> <option> <option value=Humans>Humans <option value=Elves>Elves <option value=Orcs>Orcs <option value=Sprites>Sprites <option value=Treefolk>Treefolk</select><input type="button" onClick="location=document.stats.race.options[document.stats.race.selectedIndex].value;" value="Learn About Race">Now i would change the values to represent the html file but these values are needed in the form which this menu lies in.
  21. Selacius

    PHP and MySQL

    I am assuming your using a host on the internet from the sounds of it to develop these pages of yours. If your just beginning to learn PHP and MYSQL I suggest that you download a personal server from the net which will allow you to develop webpages and view them on your home computer. This is what I do for my many pages I code and it allows for quick, easy modifications and also if the net goes down, I can still do some coding.
  22. Change your <table blah blah> to this:<table width="75%" align="center" border="0" cellspacing="0">
  23. Selacius

    PHP and MySQL

    Whats with the @ sign before $db. I just tried your code on a page of mine and it displayed everything properly. I tried it a few different ways and it worked. I don't see anything else which is causing a problem. Possibly make sure that the tables are named the same. Maybe rename your table and see if that solves the problem.
  24. Can you give us an example? Are you creating tables and wanting to display data within the rows? If so then when your creating your table encompass the whole thing in an echo " statement making sure that at the end of the table code you have ";. And also if there are any quotation marks within the code either remove them if not necessary or preceed them with a \.
×
×
  • Create New...