943,865 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 4382
  • PHP RSS
You are currently viewing page 3 of this multi-page discussion thread; Jump to the first page
Apr 1st, 2008
0

Re: Login session

Hmm.. Seems good.. But, the only problem I can think off is, either $_SESSION['myusername'] is empty or the query returns records with null values.
Oh, hey btw, use { } for your while loop.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Apr 1st, 2008
0

Re: Login session

Attach your files in a zip using the attachment option when posting your next message (the paper clip).


Matti Ressler
Suomedia
Reputation Points: 15
Solved Threads: 19
Junior Poster
Suomedia is offline Offline
154 posts
since Mar 2008
Apr 1st, 2008
0

Re: Login session

As per the rules, Suomedia, it's good to keep things on the site. Solving problems through PMs, email and sending attachments makes things cumbersome and difficult to search through if someone else is sharing the problem.
Sponsor
Reputation Points: 520
Solved Threads: 268
Code Monkey
ShawnCplus is offline Offline
1,564 posts
since Apr 2005
Apr 1st, 2008
0

Re: Login session

Click to Expand / Collapse  Quote originally posted by ShawnCplus ...
As per the rules, Suomedia, it's good to keep things on the site. Solving problems through PMs, email and sending attachments makes things cumbersome and difficult to search through if someone else is sharing the problem.

It is on site. This forum is designed to allow attachments to posts so that the threads are not cluttered with mile long posts of code (more than one file in this case).

Please leave moderating to the moderators


Matti Ressler
Suomedia
Reputation Points: 15
Solved Threads: 19
Junior Poster
Suomedia is offline Offline
154 posts
since Mar 2008
Apr 1st, 2008
0

Re: Login session

Anyway, aside from that
PHP Syntax (Toggle Plain Text)
  1. Notice: Undefined variable: sql in /home/book2.php on line 16
  2.  
  3. Notice: Undefined variable: a_row in /home/book2.php on line 33
  4.  
  5. Notice: Undefined variable: a_row in /home/book.php on line 34
The first error is happening because echo $sql; should be echo $query .
The second and third are happening because $a_row should be $row
Last edited by ShawnCplus; Apr 1st, 2008 at 8:41 pm.
Sponsor
Reputation Points: 520
Solved Threads: 268
Code Monkey
ShawnCplus is offline Offline
1,564 posts
since Apr 2005
Apr 2nd, 2008
0

Re: Login session

Hello its all working now but the postcode dont appear in the textbox it appears at the top of the page, even though ive used

php Syntax (Toggle Plain Text)
  1. <input type="text" name="PickupAddressPostCode" value="<?php echo $row['PickupAddressPostCode']; ?>" />
Last edited by peter_budo; Apr 3rd, 2008 at 11:00 am. Reason: Please [code] tags not [quote] tags to highlight code
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
sukhy_1 is offline Offline
63 posts
since Mar 2008
Apr 2nd, 2008
0

Re: Login session

Give this a shot
html Syntax (Toggle Plain Text)
  1. <input type='text' name='PickupAddressPostCode' value='<?=$row['PickupAddressCode'];' />
Last edited by ShawnCplus; Apr 2nd, 2008 at 10:03 am.
Sponsor
Reputation Points: 520
Solved Threads: 268
Code Monkey
ShawnCplus is offline Offline
1,564 posts
since Apr 2005
Apr 2nd, 2008
0

Re: Login session

Click to Expand / Collapse  Quote originally posted by ShawnCplus ...
Give this a shot
html Syntax (Toggle Plain Text)
  1. <input type='text' name='PickupAddressPostCode' value='<?=$row['PickupAddressCode'];' />
Umm.. doesn't make any difference since <?php echo $row['PickupAddressCode'] is same as <?=$row['PickupAddressCode']; ?> .. Why not have your input box in the loop itself ? ie.,
php Syntax (Toggle Plain Text)
  1. while($row = mysql_fetch_array($result)){
  2. echo "<input type='text' name='PickupAddressPostcode' value='".$row['PickupAddressCode']."'>";
  3. }
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Apr 2nd, 2008
0

Re: Login session

still aint working coming up causing an error on the next textbox.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
sukhy_1 is offline Offline
63 posts
since Mar 2008
Apr 2nd, 2008
0

Re: Login session

Can you post your latest code which showed PickupAddressPostcode on top ?
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Prase error..Pls help.. simple script..
Next Thread in PHP Forum Timeline: Updating Profile





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC