Post Reply 
 
Thread Rating:
  • 1 Votes - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request by Trinit] Basic project to learn coding
Author Message
Shadows Away
Administrator
*******

Posts: 213
Joined: Aug 2009
Reputation: 0
Post: #1
[Request by Trinit] Basic project to learn coding
Since you wanted me to help you

Post the files you have here for me to check them,

Thank you.
07-09-2010 03:32 AM
Find all posts by this user Quote this message in a reply
Trinit Offline
Junior Member
**

Posts: 12
Joined: Aug 2009
Reputation: 2
Post: #2
RE: [Request by Trinit] Basic project to learn coding
Here you are
PHP Code:
<?php
if(!isset($_SESSION['is_logged_in']))
{
$_POST['login_user'] = trim($_POST['adminlogin']);
$_POST['login_user'] = ucfirst(strtolower($_POST['login_user']));
$_POST['login_password'] = md5($_POST['login_password']); 

    if(!empty(
$_POST['login_user'] && !empty($_POST['login_password']))
    {
        
//next code goes here
    
}
?>   <form name="form1" method="post" action="">
  <label>
    Login
    <br>
    <input type="text" name="login_user" id="login_user">
    <br>
    Password<br>
    <input type="text" name="login_password" id="login_password"><br />
    <input type="submit" name="login" id="login" value="Login">
  </label>
</form>
<?php
}

?>

ERROR:
PHP Code:
<?php
if(!isset($_SESSION['is_logged_in']))
{
$_POST['login_user'] = trim($_POST['adminlogin']);
$_POST['login_user'] = ucfirst(strtolower($_POST['login_user']));
$_POST['login_password'] = md5($_POST['login_password']); 

    if(!empty(
$_POST['login_user'] && !empty($_POST['login_password']))
    {
        
$result mysql_query("SELECT * FROM users WHERE user='" $_POST['login_user'] . "');
$fetch = mysql_fetch_array($result);

    }
?>   <form name="
form1" method="post" action="">
  <label>
    Login
    <br>
    <input type="
text" name="login_user" id="login_user">
    <br>
    Password<br>
    <input type="
text" name="login_password" id="login_password"><br />
    <input type="
submit" name="login" id="login" value="Login">
  </label>
</form>
<?php
}

?>


You need to reply to this topic before you can download the attached file(s)!
(This post was last modified: 07-09-2010 03:40 AM by Trinit.)
07-09-2010 03:35 AM
Find all posts by this user Quote this message in a reply
Shadows Away
Administrator
*******

Posts: 213
Joined: Aug 2009
Reputation: 0
Post: #3
RE: [Request by Trinit] Basic project to learn coding
PHP Code:
change
        $result 
mysql_query("SELECT * FROM users WHERE user='" $_POST['login_user'] . "');

to
        $result = mysql_query("
SELECT FROM users WHERE user='" . $_POST['login_user'] . "'"); 
07-09-2010 03:44 AM
Find all posts by this user Quote this message in a reply
Shadows Away
Administrator
*******

Posts: 213
Joined: Aug 2009
Reputation: 0
Post: #4
RE: [Request by Trinit] Basic project to learn coding
reminder for me xP

.button {
border:1px solid #779EB5;
background:#B8D0DE;
-moz-border-radius-topleft: 6px;
-moz-border-radius-topright: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
-moz-border-radius-bottomleft: 6px;
-moz-border-radius-bottomright: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
07-09-2010 03:59 AM
Find all posts by this user Quote this message in a reply
Trinit Offline
Junior Member
**

Posts: 12
Joined: Aug 2009
Reputation: 2
Post: #5
RE: [Request by Trinit] Basic project to learn coding
this too:
color:#B8D0DE;
font-weight:bold;
(This post was last modified: 07-09-2010 04:31 AM by Trinit.)
07-09-2010 04:31 AM
Find all posts by this user Quote this message in a reply
Shadows Away
Administrator
*******

Posts: 213
Joined: Aug 2009
Reputation: 0
Post: #6
RE: [Request by Trinit] Basic project to learn coding
Text is gone when I added the part you just posted :/
07-09-2010 05:22 AM
Find all posts by this user Quote this message in a reply
Trinit Offline
Junior Member
**

Posts: 12
Joined: Aug 2009
Reputation: 2
Post: #7
RE: [Request by Trinit] Basic project to learn coding
color:#B8D0DE;
font-weight:bold; this?
07-09-2010 05:36 AM
Find all posts by this user Quote this message in a reply
Shadows Away
Administrator
*******

Posts: 213
Joined: Aug 2009
Reputation: 0
Post: #8
RE: [Request by Trinit] Basic project to learn coding
Yeah, the text dissapears from the button when I put that
07-09-2010 05:43 AM
Find all posts by this user Quote this message in a reply
Trinit Offline
Junior Member
**

Posts: 12
Joined: Aug 2009
Reputation: 2
Post: #9
RE: [Request by Trinit] Basic project to learn coding
Try putting only color and not font-weight
07-09-2010 05:44 AM
Find all posts by this user Quote this message in a reply
Shadows Away
Administrator
*******

Posts: 213
Joined: Aug 2009
Reputation: 0
Post: #10
RE: [Request by Trinit] Basic project to learn coding
It's okay like this, btw when will you be ready to continue it? Wink.
07-22-2010 02:57 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)