Jump to content

Trium918

Members
  • Posts

    883
  • Joined

  • Last visited

Everything posted by Trium918

  1. When you insert the the password what is the data type and how many characters, varhar()?
  2. No, there is no CSS with in the code I provided. There were no CSS needed. I am sure CSS will be needed to change the background to an image. For instance: body{ background-image:url(image) } I was wondering how can I use the code that I provided in my first post to change the background so that an image is displayed instead. Do you follow me? Note: By using a form that is submitted to the php engine.
  3. Is it possible to use php and css together. Ok, I am trying to change the background of the html page. I can change the color, but how would I insert an image? <?php // input for background color $background = $_POST['background']; ?> <!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=iso-8859-1" /> <title>Edit Background</title> </head> <?php echo "<body bgcolor=\"$background\">"; ?> <form method="post" action="change_background.php"> <table border="1" align="center"> <tr> <td align="center"> <input type="text" name="background" /><br /> <input type="submit" name="submit" value="Change Background"/> </td> </tr> </table> </form> </body> </html>
  4. How are you storing you passwords into the database?
  5. The password that you enter into the form isn't matching the password stored in the database.
  6. Both work! Style should have been style. Big differences. @import url(./superiun.css ); and @import url(../superiun.css );
  7. This doesn't work either. @import url(style/superiun.css );
  8. What type of processor do you have? What is the size?
  9. Like? I will install java,visual basic.net,C++,and C. Things of that nature. I am more focus on the components such as memory, processor etc...
  10. So I cannot use ../ or ./? When can I used them?
  11. I don't understand! All I am trying to do is access the the content inside of the style folder.
  12. I would love to learn the fundamentals hacking! lol Fun Dam Mental
  13. I am looking to purchase a notebook computer and I was wondering what type of notebook computer would be great for running a variety of different programs. Note: The name of the computer means nothing. I am more focus on the components. Such as memory, processor, etc... I really hate a slow computer!
  14. index.php and a folder named style are in the same directory. Style contains a CSS file called test.css. I am trying to access test.css from index.php by using ../ Which would be the equivalent to? @import url(style/superiun.css ); @import url(./superiun.css ); or @import url(../superiun.css );
  15. Linux hands down.There's the first uninformed post in the thread.Nah. I could have made a big 10 page long post explaining my reasoning behind it, it's just that that would have taken a long time and noone would have read it anyways. You would be surprise about how many people who would actual read it!
  16. I'll help you tomorrow? We will get it working, ok?
  17. No, I was wondering how to organize my files and folders on shared hosting account. I understand that is is different from a dedicated server, but I don't know what the structure would be.
  18. How do you protect them for the users?
  19. Like adding something similar to music sharing to my website. I guess it would be listed under music sharing. Similar to myspace. How are they able to provide music to the users with any legal dispute?
  20. What version of apache are you running? The thing that I donnot understand is why would redundant code work? The sessions are being register when I am using the script below. <?php function login($user_name, $password) // check username and password with db // if yes, return true // else return false { // connect to db $conn = db_connect(); if (!$conn) return 0; $result = mysql_query("SELECT * FROM members_info WHERE user_name='$user_name' AND password=MD5('$password')"); if ($result){ $sql1="SELECT members_id,last_visit FROM members_info WHERE user_name='$user_name'"; $result1=mysql_query($sql1); $row=mysql_fetch_assoc($result1); $last=$row['last_visit']; $membersid=$row['members_id']; $_SESSION['membersid'] = $membersid; #Display date as 5/8/2007 format $last = date('n/d/Y', strtotime($last)); $_SESSION['last']=$last; //use the session variable to hold the previous last visit date. $sql="UPDATE members_info SET last_visit=NOW() WHERE user_name='$user_name'"; //now only update it $result2=mysql_query($sql); } if (!$result) return 0; if (mysql_num_rows($result)>0) return 1; else return 0; } ?>
  21. I knew google was going to come up. Trust me, I have been looking for advertisements, and the results were google adsence and something with yahoo. I really didn't find anything relative to music, videos, books. Hell, I even called amazon customer services looking for the books.
  22. Does anyone know where I can look on the net for resources. Ok, I would like to provide a variety of different features to my users. For instance, books, music, video etc....
×
×
  • 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.