Suche auf lima-city
-
in: Html Quelltext in PHP
geschrieben von computercomputer
danke dir
is ja logisch
hätte man auch selbst drauf kommen können -
in: Html Quelltext in PHP
geschrieben von computercomputer
Hallo Leute ich hab mal wieder nen problem:
ich habe diesen quelltext<?php session_start(); //allows session include "config.php"; echo "<center>"; if($logged[id]) { //welcomes the member echo "Hallo $logged[username]<br><br>"; //shows the user menu -----------------------hier soll normaler html quelltext rein----------------------------------------------------------------- }else //if there trying to login if(isset($_GET['login'])) { //removes sql injections from the data $username= htmlspecialchars(addslashes($_POST[username])); //encrypts the password $password = sha1(md5(md5(sha1(md5(sha1(sha1(md5($_POST[password])))))))); //gets the username data from the members database $uinfo = mysql_query("SELECT * FROM `members` WHERE `username` = '$username'") or die(mysql_error()); //see if the user exists $checkuser = mysql_num_rows($uinfo); //if user name not found in database error if($checkuser == '0') { echo "Username not found"; }else{ //fetch the sql $udata = mysql_fetch_array($uinfo); //checks see if the account is verified if($udata[userlevel] == 1) { echo "This account had not been verified."; } //if it is continue else //if the db password and the logged in password are the same login if($udata[password] == $password) { $query = mysql_query("SELECT * FROM `members` WHERE `username` = '$username'") or die(mysql_error()); //fetchs the sql $user = mysql_fetch_array($query); //sets the logged session $_SESSION['id'] = "$user[id]"; $_SESSION['password'] = "$user[password]"; echo "You are now logged in, Please wait. . ."; //redirects them echo "<meta http-equiv='Refresh' content='2; URL=login.php'/>"; } //wrong password else{ echo "Incorrect username or password!"; } } }else{ //If not the above show the login form echo "<form action='login.php?login' method='post'> <table width='312'> <tr> <td width='120'></td> <td width='180'><input type='text' name='username' size='30' maxlength='25'></td> </tr> <tr> <td></td> <td><input type='password' name='password' size='30' maxlength='25'></td> </tr> <tr> <td colspan='2'><center><input type='submit' value='Login'></center></td> </tr> </table> </form>"; } echo "<center>"; ?>
also ich möchte das bei erfolgreichem login eine ganz normale html seite angezeigt wird. wie geht das??? -
in: Mysql Login --Fehler!
geschrieben von computercomputer
so ist es bei mir
$dbhost = "mysql.lima-city.de";
$dbname = "db_142053_1";
$dbuser = "USER142053";
$dbpass = "geheim";
was ist daran falsch? -
in: Mysql Login --Fehler!
geschrieben von computercomputer
Access denied for user 'www-data'@'localhost
aber in die angaben zur datenbank sind richtig ! -
in: Mysql Login --Fehler!
geschrieben von computercomputer
Hallo ich habe mir von dieserhttp://www.trap17.com/forums/Php-mysql-Login-register-t9487.html Website ein Login geholt
ich habe alles so übernommen, nur datenbank pw, host, name und db- name angepasst. doch wenn ich mich einloggen will kommt:
Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/webpages/lima-city/computercomputer/html/new/Login.php on line 16 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/webpages/lima-city/computercomputer/html/new/Login.php on line 16 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/webpages/lima-city/computercomputer/html/new/Login.php on line 16 Login failed. If you have not already, please signup. Otherwise, check your spelling and login again.
beim registrieren kommt der "fehler":Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/webpages/lima-city/computercomputer/html/new/register.php on line 25 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/webpages/lima-city/computercomputer/html/new/register.php on line 32 You are now registered. Login.
was kann ich da machen? oder hat jemand ein fehlerfreises mysql loginscript mit regristrierungsfunktion?
danke -
in: Alternative zu ifrrames
geschrieben von computercomputer
sry das ich mich erst so spät wiedermelde
das klappt auch nicht dann ist navi immer unter dem background könnte vielleicht mal jemand den fertien quelltext /css code reinschreiben? weil entweder mache ich was falsch oder die lösung von cockie klappt nicht
vielen dank -
in: Alternative zu ifrrames
geschrieben von computercomputer
ich glaub ich bin zu doof dafür
hier mein quelltext:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html><head><title>background-position</title> <link rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript" src="chrome.js"></script> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.bgpos.js"></script> </head> <body> <div id="body"> <div id="background"> <div id="MainMenu"> <div id="tab"> <ul> <li><a href="home.html"><span>Home</span></a></li> <li><a href="about.html"><span>About</span></a></li> <li><a href="contact.html"><span>Contact</span></a></li> </ul> </div> </div></div> <div style="clear:both; text-align:center; padding:10px;"></div> <script type="text/javascript"> jQuery(function(){ jQuery("#tab a") .css( {backgroundPosition: "right 0"} ) .mouseover(function(){ jQuery(this).stop().animate({backgroundPosition:"(right -33px)"}, {duration:400}) }) .mouseout(function(){ jQuery(this).stop().animate({backgroundPosition:"(right 0)"}, {duration:400}) }) jQuery("#tab a span") .css( {backgroundPosition: "left 0"} ) .mouseover(function(){ jQuery(this).stop().animate({backgroundPosition:"(0 -33px)"}, {duration:400}) }) .mouseout(function(){ jQuery(this).stop().animate({backgroundPosition:"(left 0)"}, {duration:400}) }) }); </script> </body></html>
und meine css datei:#background { background-image:url(images/img03.jpg); background-repeat:no-repeat; height:720px; width:1152; border-width:0px;} #MainMenu { width:150px; background:#FFF url border:0; margin:0; } #tab { top:0; height:0; margin-right: 50px; } #tab ul { list-style:none; float:left; margin:0; padding:0; } #tab li { float:left; clear:both; margin:0; padding:0; } #tab a { background:url(images/bright_110.gif) no-repeat right top; text-decoration:none; width:180px; border:0; display:block; float:left; margin:0; padding:0; } #tab a span { display:block; background:url no-repeat left top; font-family:\"Trebuchet MS\", Arial, Helvetica, sans-serif; font-size:13px; color:#FFF; font-weight:700; line-height:33px; padding:0 25px; } #tab a:hover,#tab li.item_active a { background-position:right bottom; } #tab a:hover span,#tab li.item_active a span { background-position:left bottom; color:#FFF; font-weight:700; font-style:normal; text-decoration:none; } .dropmenudiv { position:absolute; top:0; float:left; display:block; visibility:hidden; border:0; background:#FFF url(images/bmid_110.gif); color:#FFF; z-index:100; text-decoration:none; padding:0; } .dropmenudiv ul { list-style:none; margin:0; padding:0; } .dropmenudiv li { display:inline; margin:0; padding:0; } .dropmenudiv a:link,.dropmenudiv a:visited { width:180px; display:block; border:0; color:#FFF; background:url(images/bleft_110.gif) no-repeat left top; font-weight:700; font-style:normal; text-decoration:none; margin:0; padding:0; } .dropmenudiv a span { display:block; line-height:33px; background:url(images/bright_110.gif) no-repeat right top; font-family:\"Trebuchet MS\", Arial, Helvetica, sans-serif; font-size:13px; color:#FFF; float:none; padding:0 25px; } .dropmenudiv a:hover { border:0; background-position:left bottom; font-weight:700; font-style:normal; text-decoration:none; color:#FFF; } .dropmenudiv a:hover span { background-position:right bottom; color:#FFF; font-weight:700;
"tab" ist bei mir das menü, das menü klebt aber immer noch links oben was habe ich falsch gemacht? -
in: Alternative zu ifrrames
geschrieben von computercomputer
also so?
<div id="body"> hier kommt seiteninhalt hin</div>
und dann in der css beim menü mit padding oder wie?
ich kenn mich nur wenig mit css aus -
in: Alternative zu ifrrames
geschrieben von computercomputer
Geht mal bitte auf die seite: http://computercomputer.lima-city.de/start.html (ohne iframe)
ihr seht rechts einen halbtransparenten kasten da soll das menü drin sein
wenn ich in css ohne iframe die angabe position: absolute top xx px right xx px mache verruscht die navigation aus dem halbtransparenten kasten bei verschiedenen bildschirm auflösungen.
oder kann man das anders mit css machen?
ich weiß dass ich mich etwas komisch ausdrücke ;) -
in: Alternative zu ifrrames
geschrieben von computercomputer
Hallo ich habe mal wieder ein problem: ich habe mir eine website erstellt: http://computercomputer.lima-city.de/index.html
damit die navigation nicht bei unterschiedlichen bildschirmauflösungen aus dem halbtransparenten kasten rutscht habe ich die ganze seite in ein iframe getan. Aber das kann nunmal keine Lösung seien. Gibt es noch irgendeinanderes Element das wie eine art rahmen ist und dass ich zu diesem rahmen einen abstand definieren kann?
ich hoffe ihr versteht was ich meine
danke -
in: Menü positionieren
geschrieben von computercomputer
Ok danke
ich werde mal meine hp überprüfen und korrigieren
edit: ich merke gerade das bei telelos lösung es bei anderen auflösungen verrutscht. wie kann ich das verhindern?
edit2: ich habe es jetzt in einen iframe getan und es klappt -
in: Menü positionieren
geschrieben von computercomputer
danke dir, es klappt jetzt
und mir gehts es nicht darum dass die seite berühmt wird und ich bin ja erst anfänger
und freunde werden sicher nicht rummeckern"bäh, du hast ein div nicht geschlossen"
oder haben die genannten fehler auch auswirkung auf die darstellung? -
in: Menü positionieren
geschrieben von computercomputer
#MainMenu { width:150px; background:#FFF url(images/bmid_110.gif); border:0; margin:0; position:absolute;right:10px; }
so sieht das jetzt bei mir aus doch das menü klebt immer noch links oben
@dcot<style> #MainMenu { width:150px; background:#FFF url(images/bmid_110.gif); border:0; margin:0; } #tab { top:0; height:0; margin:0; } #tab ul { list-style:none; float:left; margin:0; padding:0; } #tab li { float:left; clear:both; margin:0; padding:0; } #tab a { background:url(images/bright_110.gif) no-repeat right top; text-decoration:none; width:180px; border:0; display:block; float:left; margin:0; padding:0; } #tab a span { display:block; background:url(images/bleft_110.gif) no-repeat left top; font-family:\"Trebuchet MS\", Arial, Helvetica, sans-serif; font-size:13px; color:#FFF; font-weight:700; line-height:33px; padding:0 25px; } #tab a:hover,#tab li.item_active a { background-position:right bottom; } #tab a:hover span,#tab li.item_active a span { background-position:left bottom; color:#FFF; font-weight:700; font-style:normal; text-decoration:none; } .dropmenudiv { position:absolute; top:0; float:left; display:block; visibility:hidden; border:0; background:#FFF url(images/bmid_110.gif); color:#FFF; z-index:100; text-decoration:none; padding:0; } .dropmenudiv ul { list-style:none; margin:0; padding:0; } .dropmenudiv li { display:inline; margin:0; padding:0; } .dropmenudiv a:link,.dropmenudiv a:visited { width:180px; display:block; border:0; color:#FFF; background:url(images/bleft_110.gif) no-repeat left top; font-weight:700; font-style:normal; text-decoration:none; margin:0; padding:0; } .dropmenudiv a span { display:block; line-height:33px; background:url(images/bright_110.gif) no-repeat right top; font-family:\"Trebuchet MS\", Arial, Helvetica, sans-serif; font-size:13px; color:#FFF; float:none; padding:0 25px; } .dropmenudiv a:hover { border:0; background-position:left bottom; font-weight:700; font-style:normal; text-decoration:none; color:#FFF; } .dropmenudiv a:hover span { background-position:right bottom; color:#FFF; font-weight:700; } </style>
hättest doch auch in quellcode gucken können? -
in: Menü positionieren
geschrieben von computercomputer
#background { background-image:url(images/img01.jpg); background-repeat:no-repeat; background-position: center center; background-color:0d0d0f; height:768px;
^^ sehr große datei -
in: Menü positionieren
geschrieben von computercomputer
hallo ich arbeite gerade an meiner ersten website
http://computercomputer.lima-city.de/index.html
ich habe mir auf einer internetseite ein menü erstellt,dieses soll aber nicht links oben in der ecke sein sondern rechts in dem halbtransparenten kasten.
wie mache ich das? ich hoffe ihr könnt mir helfen vielen dank