User Profile

Collapse

Profile Sidebar

Collapse
punk86
punk86
Last Activity: Jan 16 '10, 06:06 AM
Joined: Jan 5 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • punk86
    started a topic Help for Login
    in PHP

    Help for Login

    Hi,
    i can register and login without fail.
    However i notice that my inputs are not record into the database.
    I do not know the reason.
    Can someone guide me into login and register.
    Actually im quite confuse with the codings

    login.php
    Code:
    <?php
    session_start ();
    			$HOST = 'localhost';
    			$USERNAME = 'root';
    			$PASSWORD = '';
    			$DB = 'c203';
    			$username
    ...
    See more | Go to post

  • punk86
    replied to help for broken link
    in PHP
    ic... i really need to buck up in learning all this.. tks a million Frinny :)
    See more | Go to post

    Leave a comment:


  • punk86
    replied to help for broken link
    in PHP
    Hmmm,the code doesnt work >.<

    the picture now has become this :

    <img src='uploads/images.jpg' style='height:1 50px; width:150px />
    uploads/images.jpg

    <img src='uploads/images.jpg' style='height:1 50px; width:150px />
    uploads/images.jpg
    See more | Go to post

    Leave a comment:


  • punk86
    replied to parsing error
    in PHP
    Now the error msg is "FUNCTION c203.SHA1 does not exist".

    My database is c203... and SHA1 is a correct function...

    How come?
    See more | Go to post

    Leave a comment:


  • punk86
    replied to help for broken link
    in PHP
    Cos now the pictures all are displayed according to the original size....
    I want them to have a fixed size for every uploads...
    i tried using html method, the width and height thingy but failed..so confusing
    I guess i cant fix it till now... lol
    See more | Go to post

    Leave a comment:


  • punk86
    replied to parsing error
    in PHP
    ic... manage to solve it. Thanks alot...
    But now i bump into another error

    "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM stars WHERE username=''AND password = SHA1 ('')' at line 1"

    I did some editing to my codes already.
    So this is the latest

    Code:
    <?php
    session_start ();
    			$HOST =
    ...
    See more | Go to post
    Last edited by Atli; Jan 6 '10, 07:30 PM. Reason: Changed [quote] to [code] tags.

    Leave a comment:


  • punk86
    started a topic parsing error
    in PHP

    parsing error

    I have this login codings.
    which it have a parsing error at line 9 which starts from the $query.
    can anyone help? i have problems with parsing errors. :(


    Code:
    <?php 
    
    session_start (); 
    
    $username = $_POST['username']; 
    $password = $_POST['password']; 
    
    $link = mysqli_connect ($HOST,$USERNAME,$PASSWORD,$DB); 
    $query = "SELECT id,username, FROM StarGazer
    ...
    See more | Go to post

  • punk86
    replied to help for broken link
    in PHP
    Hi Frinny, tks for the codes.. it works !!! It displays out the picture, just that i need to find how to constraint it into a table. >.<
    See more | Go to post

    Leave a comment:


  • punk86
    started a topic help for broken link
    in PHP

    help for broken link

    Hi, i been working on this codes but i keep getting broken links for the pictures.
    Im using apache.
    Need help for this please.
    I think its just the codes in my index.php is wrong and i do not know what is the solution.

    Code for my addstar.php
    Code:
    <?php
    $HOST = 'localhost';
    $USERNAME = 'root';
    $PASSWORD = '';
    $DB = 'c203';
    	
    $link = mysqli_connect($HOST,$USERNAME,$PASSWORD,$DB)
    ...
    See more | Go to post
No activity results to display
Show More
Working...