Login session

Thread Solved

Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: Login session

 
0
  #21
Apr 1st, 2008
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.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 154
Reputation: Suomedia is an unknown quantity at this point 
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Login session

 
0
  #22
Apr 1st, 2008
Attach your files in a zip using the attachment option when posting your next message (the paper clip).


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,435
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 232
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: Login session

 
0
  #23
Apr 1st, 2008
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.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 154
Reputation: Suomedia is an unknown quantity at this point 
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Login session

 
0
  #24
Apr 1st, 2008
Originally Posted by ShawnCplus View Post
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
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,435
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 232
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: Login session

 
0
  #25
Apr 1st, 2008
Anyway, aside from that
  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.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 63
Reputation: sukhy_1 is an unknown quantity at this point 
Solved Threads: 3
sukhy_1 sukhy_1 is offline Offline
Junior Poster in Training

Re: Login session

 
0
  #26
Apr 2nd, 2008
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

  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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,435
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 232
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: Login session

 
0
  #27
Apr 2nd, 2008
Give this a shot
  1. <input type='text' name='PickupAddressPostCode' value='<?=$row['PickupAddressCode'];' />
Last edited by ShawnCplus; Apr 2nd, 2008 at 10:03 am.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: Login session

 
0
  #28
Apr 2nd, 2008
Originally Posted by ShawnCplus View Post
Give this a shot
  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.,
  1. while($row = mysql_fetch_array($result)){
  2. echo "<input type='text' name='PickupAddressPostcode' value='".$row['PickupAddressCode']."'>";
  3. }
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 63
Reputation: sukhy_1 is an unknown quantity at this point 
Solved Threads: 3
sukhy_1 sukhy_1 is offline Offline
Junior Poster in Training

Re: Login session

 
0
  #29
Apr 2nd, 2008
still aint working coming up causing an error on the next textbox.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: Login session

 
0
  #30
Apr 2nd, 2008
Can you post your latest code which showed PickupAddressPostcode on top ?
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 3614 | Replies: 29
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC