porkypie
-
Posts
8 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by porkypie
-
-
Hey, I'm trying to use a tutorial to make a login for my website using this tutorial: http://www.phpeasyst...om/phptu/6.html I'm getting the following error when I try to login:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\.........................\www\login.php on line 9cannot connect The fat underlined line is line 9 This is the code I am using:
<?php$host="localhost"; //$username="root"; //$password=""; //$db_name="westpop"; //$tbl_name="leden"; //mysql_connect("$host", "$username", "$password")or die("cannot connect");mysql_select_db("$db_name")or die("cannot select DB");$myusername=$_POST['myusername'];$mypassword=$_POST['mypassword'];$count=mysql_num_rows($result);if($count==1){session_register("myusername");session_register("mypassword");header("location:login_succes.php");}else {echo "Wrong Username or Password";}?>Anyone able to tell me what i do wrong? Thanks in advance! Porkypie -
hey guys, I seem to have a few problems with my divs. I've added my .html and .css file so you can check my code. It might be a bit messy in those files so i hope it's still understandable. here are my problems. First one: there's a small white space in between the upper 2 black bars. I want this space to be as wide all the way down to the footer. Somehow it won't work and I can't figure out why. It looks like the containing div is messing it up. second problem: the small divs on the right side seem to be a few pixels too big on the right and go outside of the containing div. How can i prevent this from happening? It looks like this is also happening to the 4 bigger divs on the right but I'm not sure. Last problem: The footer is acting weird and i just can't figure out how to fix it. I'm actually thinking all these problems have a single solution to make it all work. But at the moment i am just clueless. I hope some one can help me out here.It would be very appreciated. Thanks in advance! Porkypie style3.csstest.html
-
Ok, there was a . in my CSS and messed it all up. How to delete a topic?
-
Hey, I've added a screenshot to make it easier to for you guys to help me. I'm not sure why this is happening because I haven't changed a thing and it was al perfectly fine before. My web developer program shows my <ul>'s -webkit-padding-start: 40px;. So I've tried to change it to 0 pixels in my CSS file but nothing won't change.Does someone have an idea how I can make the space around the <ul> go away. Thanks in advance! Greets,Porkypie
-
Thanks jardrake! managed to fix it now.
-
Thanks for your time guys! Gonna try it out later today ;-)
-
Hey, I have to use HTML & CSS to make a project for school. I'm a beginner and i'm having a small problem. After a lot of searching on the internet and not finding a solution I decided it woud be best to ask for some help here. I've attached a .css and .html file to this post so you can see what i did . What I want to accomplish is 2 rows with 3 <div>'s next to eachother. Together they should have the same width as the menu and every <div> should have the same size. Also they should be underneath the grey bar and above the footer. As you can see right now there's 6 <div>'s next to each other and they're definitly not the right size. I would really appreciate it if someone could explain me how I can fix the <div>'s so i can make them look like how I want them to (preferably in baby-language). If my story isn't clear enough but you want to help me, don't hesitate to ask Thanks in advance! greets,Porkypie Style.cssTeams.html
PHP code not working
in PHP
Posted
Thanks for the help. It seems something else is wrong with my code. When i try to log in now i get the following message: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\.........................\www\login.php on line 15Wrong Username or Password. This is line 15:$count=mysql_num_rows($result); how do i fix my problem this time? Porkypie