|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Tutorial Mistake
There is a mistake in the tutorial located at: http://codewalkers.com/tutorials.php?show=9&page=7
It's missing a bracket here "firstname varchar25)," I noticed it and fixed it so I continue with the tut but if it's fixed it should help fellow newbies. |
|
#2
|
|||
|
|||
|
RE: Tutorial Mistake
Fixed now...thanks!
|
|
#3
|
|||
|
|||
|
RE: Tutorial Mistake
In tutotial: "Using Sessions in PHP", the code for login.php (on the 3rd page of the tutorial) needs session_start() added.
I hope I'm not missing something...I spent a few hours figuring this one out hehe |
|
#4
|
|||
|
|||
|
RE: Tutorial Mistake
Added that. Thanks!
|
|
#5
|
|||
|
|||
|
RE: Tutorial Mistake/help
I'm having a problem getting this tutorial to work correctly.
First, there needs to be a semi-colon after line 9; Header ("Location: ./index.php") of login.php The other error i get is: Warning: Cannot add header information - headers already sent by (output started at /Library/WebServer/Documents/functions.php:47 //which is the end of the file, btw) in /Library/WebServer/Documents/entry.php on line 9 If I do an include(); or meta-refresh to different file, it works no problem. It only errors when using the original Header() code. I can get around it, but being a new user to php sessions and the Header function, I'd like to know why it doesn't work. Or if this is a mistake on the author's part. The code does everything else it's supposed to do except this. Thanks for any help. If you'd like me to post this somewhere else, let me know. D |
|
#6
|
|||
|
|||
|
RE: Tutorial Mistake
make sure that there are no extra carriage returns or spaces at the end of the include file. The error you are getting indicates that output has already been sent to the browser prior to the header call. Probably just an extra carriage return at the end of the file.
|
|
#7
|
|||
|
|||
|
RE: Tutorial Mistake
also, you never mention which tutorial it is!!!
|
|
#8
|
|||
|
|||
|
RE: RE: Tutorial Mistake
Quote:
Blindeddie--Thanks, man! That seemed to work. I went through all the files and made sure there weren't any extra carriage returns, lines, spaces or gremlins after ' ?>' That's the first time I've run into that problem. I'll have to add that to my check list when solving php problems. Also, the tutorial I'm referring to is "Using Sessions in PHP" which is linked in the first post, mentioned in the third post and above all, what this thread is all about. Thanks again. D |
|
#9
|
|||
|
|||
|
RE: Tutorial Mistake
when I click on that link I go to the tutorial entitled
Create dynamic sites with PHP & MySQL not the tutorial entitled Using Sessions in PHP The thread is entitled 'Tutorial Mistake' not 'Problem with Using Sessions in PHP Tutorial mistake', so I hope you understand my confusion... |
|
#10
|
|||
|
|||
|
RE: Tutorial Mistake
Yes, that would be confusing. I thought all posts in this thread were for the "Using Sessions" tutorial.
I did a search for that tutorial and this is what it returned. Oh well. |
|
#11
|
|||
|
|||
|
RE: Tutorial Mistake
the first
Code:
<?PHP at the top of the code snippet on http://codewalkers.com/tutorials/46/19.html should not be there. same with the last Code:
?> thanks for the great tutorial. |
|
#12
|
|||
|
|||
|
RE: RE: Tutorial Mistake
Quote:
still a problem |
|
#13
|
|||
|
|||
|
RE: Tutorial Mistake
Fixed...thanks!
|
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > Tutorial Mistake |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|