Jump to content

Rommeo

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by Rommeo

  1. sorry again ; i m really at the beginning of this programming language. So this time ; <p><a href="index.php?page=aboutus">about us</a></p> i think this "page"(page=aboutus) is the field of the "table_pages" in mysql ? right ? -- i have a table that's name is " table_pages" and i have a field there named " pagename " i also have a variable named " $pagename" in my index.php
  2. sorry i m a newbie, index.php?aboutus=yes What is this yes for ? and i wanna do this cause i dont wanna create a lot of pages. i just wanna store them in db, then it would be easier to control the whole page, otherwise when you need to delete a web page you 'll need to delete it from db and "aboutus.php " .if i m not wrong ?
  3. Hi i m new at php programming.. I have a question about creating static pages. What i want to do is ; instead of creating web pages like " aboutus.php " .. ( www.mywebsite.com/aboutus.php ) i want to store that page in Mysql, then i wanna reach it by entering " www.mywebsite.com/?page=aboutus " So does this way have a name ? I ll be glad if you can tell me the way to do this ?-or you can give me the link if there is any tutorial about this ( i could not find any ).. Thanx in advance -- lets say i have stored a page ( title / content /time ) in mysql and i wanna give the link from my index.php page. will it be something like : <p><a href="<?php $pagename="aboutus" ?>">about us</a></p> then how can i take this page and display it :S
  4. Alex_hill yes that was what i mean and thanx for your answer. bronzemonkey thanks for your attention and the link. But why i am asking this question again ? Cause i m coding my styles ordered as you said. But sometimes i forget some tags or i need to add some tags. And dreamweaver automatically adds that tag at the bottom. Like : #header . . #footer #header p with this complicated style it works. no problem... ( assume search-bots are not important. ) and i m trying and changing that tag's place and moving it to the top. it also works..i mix them ..again it works. but i m wondering if it causes a problem with different browsers. or maybe that causes some problems that i dont know. just wondering..
  5. dbrimlow, bronzemonkey, TheFilmGod Thank you for your replies. Now again i'm changing my css file. But i still have some problems about my second question. Does the writing order of the tags make any difference ? ( i know you recommended me the order before but i wanna know if it makes any difference writing out of order. What kind of problems does it cause ? / How do you order your tags ? ) And as you said it's better to use h1 for site name ; So my tags order should be like this ? : i mean should i order my tags : from most important to less important [if h1 is important for search-bot optimization] ( h1 > body > h2 >... >#footer p ) ? or from top to bottom ( #header > h1 >.#leftmenu > #container > #rightmenu >...>#footer >body )? or from biggest to smallest ? ( body > #container > ... #leftmenu > #righetmenu > #footer h1>h2>h3..) ?
  6. Thank you so much for your answers. As you have said, i have declared a "h6" and i solved my problem. i have also 1 more question ; 2-) in my code i defined body at the end of the code and i defined footer at the top of the code. Does it make any difference writing "body" at the end of the code ? or should i write body at the top and the footer at the end. ??
  7. Actually my h1 is like this : h1 { color: #FFFFFF; background-color: #369; text-align: left; margin: 0px; font-size: 14px; font-family: Tahoma, Verdana, Arial; padding-left: 5px; letter-spacing: 4px; padding-top: 2px; padding-bottom: 2px; } So should i write the opposite of these at #footer h1 ?? i dont want these to affect #footer h1.
  8. Hi i m new at css programming and i have some problems. 1-) i have declared "h1" in body. it contains " letter-spacing: 4px;" i also have "#footer" div. and i also have a " #footer h1 " my problem starts here. when i enter the website i also see that my "#footer h1" has also " letter-spacing: 4px;" but in my code i have not written that. how can i prevent the "h1" that i declared in the "body" to affect the "h1" in the "footer". ? i dont want to see 4px letter spacing in footer h1. Codes : h1 { letter-spacing: 4px; } #footer { some stuffs. } #footer h1 { font-family: Tahoma, Verdana, Arial; font-size: 10px; } /* NO letter spacing here */ 2-) in my code i defined body at the end of the code and i defined footer at the top of the code. Does it make any difference writing "body" at the end of the code ? or should i write body at the top and the footer at the end. ?? Thanx in advance. i ll be glad if you can answer any of my questions.
  9. Hello i m new at php and mySql. i have a table which has ; userid(int/autoincrement)||name||surname||info(text)||pass(md5) And to see the some selected fields ( for to try ) i have this code : <?php include 'database.php'; $result=mysql_query("SELECT * FROM userstable") || die ( mysql_error() ); echo "<table border='1'>"; echo "<tr> <th>userid</th> <th>name</th> </tr>"; while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row["userid"]; echo "</td><td>"; echo $row["name"]; echo "</td></tr>"; } echo "</table>"; ?> But code does not work and i get this error : Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /showresults.php on line 15. Can anyone help me ? And is there any other way for to take the datas one by one and to print them ? Thanks in advance.
  10. so primary = unique ? What is the difference if both(primary key & unique) are unique data ? i should use the "unique" data for "memberid" then if it cant store same values... But for other values such as name and date, what should i use ? What i mean with attributes is ; There is a "attriutes" section for each fields. And in this panel wants me to choose the following things ; "armscii8 .. binary .. ujis .. utf8" i think this is a section for choosing the value's language. i m using utf8 and i think i should choose utf8 for name / surname / nickname / adress ? .. am i correct or this thing is for another thing ? this things are not included in the book i m following
  11. Hi i m new about php programming and mysql. i m trying to build a simple membership system. And i created a table using phpmyadmin which have 8 fields like ; memberid || nickname || name || surname || adress || mail || password || dateadded i have set the values of these ( varchar / int etc. ). then my problem starts here.. i have no idea about other things.. So my questions are ; 1- Should i have to change the attributes ? ( to my language for ex ? ) ( i think this is the place that is asking us in what language we will save data. am i correct ? Why do we use this thing then ? ) 2- and another section that wants me to select " unsigned / unsigned zerofill.. etc " again should i have to change here ? and where do we use these ? 3- "Nulll Section ".. a section that wants me to select "null" or "not null" ? What is this for ? Should i change ? 4- For me This is the hardest question i have to ask. Cause i really could not find enough information ( in my language and in english ) about this section that wants me to set values to " primary " / " index " / " unique " and the " default " ..What are these values for ? Where do we use these ? i ll be glad if you can answer any of these questions. Thanx in advance.
×
×
  • 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.