Jump to content

Archadian28

Member
  • Posts

    62
  • Joined

  • Last visited

Posts posted by Archadian28

  1. What seems to be the problem? And why in God's name are you using iframes? Also, put this at the top of your css file.

     

    * { margin: 0 0; padding: 0 0; }

     

    I believe this is mainly for IE since IE automatically tries to add margin and padding. * selects all elements. Put it at the top of the code.

  2. Yes it is ok. You can use min-width, max-width, min-height and max-height to control the size. Also you might want to use overflow: auto as well which adds a scroll bar if the content is larger than the container its in. So the scroll bar doesn't show up in the main div you will want to set the overflow: hidden on the main div and overflow: auto on your fixed background so the scroll bar shows up on the right side of the screen rather than in your main div.

  3. It isn't working if, for one, you are using something someone else wrote and you copied it. If the columns in the DB don't match up to the code, its not going to work. If you have the wrong username, host, password and DB name, its not going to work. If your PHP code is not able to retrieve the data your form is passing through...guess what, its not going to work. All you need is your form and write your PHP code which Ben and I explained above to retrieve the value from the textbox then do a SELECT to your DB and use the...yes the LIKE %$textbox% to pull the records of everything "$textbox" ($textbox = the name of the textbox in the form and the $_GET or $_POST) matches in your database then display it to a table. If Ben doesn't understand whats going on in that code its time to get a new script :P.

  4. you aren't even getting the value from $_GET['textfield']. Since that is the name of your input text box... what is $_GET['pageNum_Recordset1']?

     

    
    <body>
    <form id="form1" name="form1" method="get" action="search_results.php">
    <label for="textfield"></label>
    <input type="text" name="textfield" id="textfield" />
    <input type="submit" name="button" id="button" value="search" />
    </form>
    </body>
    </html>
    
    

     

    method="get"

    name="textfield"

     

    your form method is using GET so you would use $_GET and your text field is name="textfield" so it would be $_GET['textfield'] and you might want to use htmlentities() function to keep ppl from injecting unwanted code into your database.

     

    If you are trying to search for something in your database by using a text field you have to use LIKE...

     

    
    $search = $_GET['textfield'];
    
    "SELECT * FROM table LIKE '%$search%'"
    
    

     

    Or you could use a while() and put an if() inside of the while statement but that would be unneeded code. Just use LIKE i've given you numerous example and if you search google.com for MySQLi LIKE you will get many more.

  5. Its not a big deal, it won't effect anything you are doing but if you look in the bar above where you type the code you should see "setup" or something like that. I think DW just needs to sync up with the webroot folder (www).

  6. I just disabled the submenu when ur on the page. ex: If you are on the portfolio page the submenu will be hidden for the Portfolio navigation with this:

     

    $("ul.portfolio li").hide();

     

    That works for me, i just didn't want it to seem like i had broken links :)

  7. In order to do that you have to have a local test server. Then you put in the URL, username password, etc. to set it up. Either way you need a test server so its just easier going to the web browser and typing localhost in the web address bar. I use dreamweaver as well, and by the time you get the live view setup in dreamweaver you could just open a browser :) it does the samething :P. But here is a tutorial to set it up: http://www.adobe.com/devnet/dreamweaver/articles/setup_testing_server.html

  8. You can setup your webpage any way that you want, but most if not all of users expect the main navigation to be at the top of the page. The functionality on the website works, but, as Ben said, the design and content could use a little work :). Good Job though!

  9. the title of your page can be whatever you want it to be. Maybe you should try WampServer (WAMP) and put all of your web files in the www folder once its installed. I personally use Apache 2.2.19 and PHP 2.3.6 but thats only because i know how to customize it to what i want it to do. Since you are just starting out WAMP can do everything for you all you have to do is save your main page as index.php because thats the default page that PHP reads in each folder. Save that script you posted as index.php in the www folder (after you install WAMP) and then type "localhost" in your web address bar WITHOUT the quotes.

×
×
  • Create New...