Search
Left Quote    Every day I get up and look through the Forbes list of the richest people in America. If I
- Robert Orben    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Complete Member System ?
  This user is online  Guest
  Subject: "Complete Member System ?" Posted: @ 7:45 pm on Nov 01 2005   
Unregistered
I've read the tutorial now several times.. great job writing it. I have a question though...

I've put the registration of a new member code into a file named register.php and its giving an error with the junk array.

Parse error: parse error, unexpected '`', expecting ')' in /home/content/e /g/y/egyptdb/ht ml/hotel/regist er.php on line 20

Line 20 is:
$junk = array('.' , ',' , '/' , '\' , '`' , ';' , '[' , ']' , '-','*', '&', '^', '%', '$', '#', '@', '!', '~', '+', '(', ')', '|', '{', '}', '<', '>', '?', ':', '"', '=');

For some reason its having problems parsing some of the characters.. the backtick, the braces, the dollar sign.

Any ideas? I tried escaping them with a backslash to no avail, that just gave another warning.

Thanks!

    Viewed: 16,542 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: Complete Member System ?" Posted: @ 8:18 pm on Nov 01 2005    
Unregistered

I seem to have gotten it to work, I deleted the junk array and rebuilt it myself, musta had a hidden character or something in that that I couldnt see. All works now.

Thanks again for the great tutorial!



    Viewed: 16,532 Times | Reply to This | To top
  This user is offline  Spiterz
  Subject: "re: Complete Member System ?" Posted: @ 8:19 pm on Nov 01 2005    
Member #: 98
Rank: User - (8)
Since: 11/01/05
Posts: 8

Oooh, oculd you post the one you rebuilt? I had to delete a few of the junk things for it to work, may i use yours?




    Viewed: 16,527 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: Complete Member System ?" Posted: @ 8:38 pm on Nov 01 2005    
Unregistered


Code:

$junk = array('.' , ',' , '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '{', '}', '[', ']', '?', '<', '>', '/', '\\', '+', '\='. '\`');



Enjoy!
--Tamarae



    Viewed: 16,524 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: Complete Member System ?" Posted: @ 8:40 pm on Nov 01 2005    
Unregistered

Looks like i missed a couple of characters, but you get the idea



    Viewed: 16,523 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: Complete Member System ?" Posted: @ 8:42 pm on Nov 01 2005    
Unregistered

One more try here, found a typo in the above one as well.. lol, this just isnt my day.


Code:

$junk = array('.' , ',' , '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '{', '}', '[', ']', '?', '<', '>', '/', '\\', '+', '\=', '\`', '~');



    Viewed: 16,521 Times | Reply to This | To top
  This user is offline  Spiterz
  Subject: "re: Complete Member System ?" Posted: @ 11:09 am on Nov 02 2005    
Member #: 98
Rank: User - (8)
Since: 11/01/05
Posts: 8

Thanks




    Viewed: 16,508 Times | Reply to This | To top
  This user is offline  snatchsquad
  Subject: "re: Complete Member System ?" Posted: @ 6:09 pm on Nov 21 2005    
Member #: 95
Rank: User - (6)
Since: 10/25/05
Posts: 6

Hi,
Trying to figure out how to create the system. I created the database.
Just can't figure out what goes where afterwards.
Where do I create the register script? On the registration page? On the page that I want to have password protected?
Just need guidance, and have read all docs regarding. Just not sure where to put all the coding.
Using Frontpage by the way.




free 10 minutes midnighttreats. com use passcode: treatme

    Viewed: 16,418 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Complete Member System ?" Posted: @ 7:14 pm on Nov 22 2005    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

the register script is a page/file of its own (register.php) You make register.php, and put in all of the php code and HTML that makes the form.




-bs0d | AllSyntax.com

    Viewed: 16,404 Times | Reply to This | To top
  This user is offline  sheshazam
  Subject: "re: Complete Member System ?" Posted: @ 7:12 pm on Nov 30 2005    
Member #: 111
Rank: User - (5)
Since: 11/30/05
Posts: 5
From: Irvine, CA

$junk = array('.' , ',' , '/' , '\\' , '`' , ';' , '[' , ']' , '-', '*', '&', '^', '%', '$', '#', '@', '!', '~', '+', '(', ')', '|', '{', '}', '<', '>', '?', ':', '"', '=');

Its the double \ that fixed it for me.

'\\'

Before it was '\' which indicates that the second ' should be treated as a real '
Adding the \ before the original \ indicates that the original \ should be treated as a real \ rather than php code.

From the dummies book ;-)




    Viewed: 16,370 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Complete Member System ?" Posted: @ 11:11 pm on Nov 30 2005    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

glad it worked for you




-bs0d | AllSyntax.com

    Viewed: 16,361 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank