roScripts forum

Wordpress Script Generator
Easily write your own wordpress plugins!
www.wpsecrets.com

Learn Simple PHP
Learn PHP with these simple videos!
www.simplephp.com

PLR Poster
Post hundreds of articles to your wordpress blog(s) at a time!
www.softwarefactoryinc.com/blog-software


Go Back   roScripts forum > General > roScripts related discussions

roScripts related discussions If there's anything that you hate, love or wish seing please say it here.

Reply
 
Thread Tools Display Modes
Old 08-07-2008, 10:00 AM   #1 (permalink)
garybakes
Junior Member
 
Join Date: Aug 2008
Posts: 2
Rep Power: 0 garybakes is on a distinguished road
Default problem with checklogin

Hi if i use the checklogin function its denies ALL access to the page
garybakes is offline   Reply With Quote
Sponsored Ads   #1.5
Sponsored posting
 
 
Join Date: The beginning
Posts: lots
Sponsored by...

WM Media - Sell Your Website at above market prices!
Adbot is online  
Old 08-16-2008, 05:26 PM   #2 (permalink)
sne4mi
Junior Member
 
Join Date: Aug 2008
Posts: 7
Rep Power: 0 sne4mi is on a distinguished road
Default Re: problem with checklogin

Hi ,

pls help,i have some errors.
Before showing u my errors i'd like to ask few questions:

1. Those 3 external funtions(checkUnique, randomStrings and vali_email), shud i create a "funtions.php" file for them?

2. Can i take the "checkLogin" function and paste at the top of "members.php"?.

3. In "register.php" i see this line: require_once('db.php'); is the "db.php" the connection script? i.e: <?php
mysql_connect("localhost", "$username", "$paassword")or die("cannot connect");
mysql_select_db("$database");
?>

2. Again where it is "localhost", do i put my website url or leave it as it is..im using cpanel to create my database and tables.

Now these are the errors i've got:

Firstly my register.php always comes with the error msg:
There was an error in your data. Please make sure you filled in all the required data, you provided a valid email address and that the password fields match

And when i try to input the values (username,password and email address) here comes the error msg:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/statson/public_html/test/functions.php on line 7


The "funcions.php" is where my checkUnique function is.

The above error msg happened just after i've solved an error which pointed to this line:
function checkUnique($table= 'users', $field= 'Username', $compared= 'Username')
As u can see what i've assigned to the fiels"$table","$field","$compared", just did it with the hope that it was gonna fix the error.


Can u please help me, having a deadline for this tuesday.

Thanx
sne4mi is offline   Reply With Quote
Old 08-20-2008, 05:14 AM   #3 (permalink)
ipodfansmail
Junior Member
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0 ipodfansmail is on a distinguished road
Unhappy reply

I can't agree with you more.
ipodfansmail is offline   Reply With Quote
Old 08-20-2008, 12:57 PM   #4 (permalink)
Blamo_
Junior Member
 
Join Date: Aug 2008
Posts: 14
Rep Power: 0 Blamo_ is on a distinguished road
Default Re: problem with checklogin

Quote:
Originally Posted by sne4mi View Post
Hi ,

pls help,i have some errors.
Before showing u my errors i'd like to ask few questions:

1. Those 3 external funtions(checkUnique, randomStrings and vali_email), shud i create a "funtions.php" file for them?

2. Can i take the "checkLogin" function and paste at the top of "members.php"?.

3. In "register.php" i see this line: require_once('db.php'); is the "db.php" the connection script? i.e: <?php
mysql_connect("localhost", "$username", "$paassword")or die("cannot connect");
mysql_select_db("$database");
?>

2. Again where it is "localhost", do i put my website url or leave it as it is..im using cpanel to create my database and tables.

Now these are the errors i've got:

Firstly my register.php always comes with the error msg:
There was an error in your data. Please make sure you filled in all the required data, you provided a valid email address and that the password fields match

And when i try to input the values (username,password and email address) here comes the error msg:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/statson/public_html/test/functions.php on line 7


The "funcions.php" is where my checkUnique function is.

The above error msg happened just after i've solved an error which pointed to this line:
function checkUnique($table= 'users', $field= 'Username', $compared= 'Username')
As u can see what i've assigned to the fiels"$table","$field","$compared", just did it with the hope that it was gonna fix the error.


Can u please help me, having a deadline for this tuesday.

Thanx
PM me and i will give you a hand.
Blamo_ is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump



All times are GMT. The time now is 09:09 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.