lonebyrd
May 3 2006, 05:06 AM
| | I'm totally new to all this, and I've just done a registration/login script. It has 5 different files that I put stuff in, plus a database. When I try to see how it looks on my website, well, it just doesn't show up. What I want to know is, how can I tell what I'm doing wrong? I don't always understand what the editors in the script programs are trying to say. Is there anyone out there who can help? My scripts are written in PHP with a MySql database. Boy, this all gets confusing, but I sure love every minute of it! |
Reply
miCRoSCoPiC^eaRthLinG
May 3 2006, 06:24 AM
You need some Editor that has autocompletion - in order to ease you out with the PHP syntax in the initial stages. Also you need syntax highlighting and error checking. There are several such editors out there - am sure the PHP gurus here will be able to point them out. As for myself, I'd suggest Zend Studio - although, it's a mighty expensive package.
Reply
TavoxPeru
May 3 2006, 06:29 AM
QUOTE(lonebyrd @ May 3 2006, 12:06 AM)  I'm totally new to all this, and I've just done a registration/login script. It has 5 different files that I put stuff in, plus a database. When I try to see how it looks on my website, well, it just doesn't show up. What I want to know is, how can I tell what I'm doing wrong? I don't always understand what the editors in the script programs are trying to say. Is there anyone out there who can help? My scripts are written in PHP with a MySql database. Boy, this all gets confusing, but I sure love every minute of it!
Hi, here you can find a lot of people that will help you, including myself, but first you have to post your files to see the source code, if you want send me by mail your files preferebly compressed either in zip or rar format to this account: gustavo_DOT_cruzortiz_AT_gmail_DOT_COM. regards,
Reply
yordan
May 3 2006, 06:52 PM
Also, you can use the Forum's private messages to send us your files. first of all, show us your "index.html" or the "index.php" file. Regards Yordan
Reply
jlhaslip
May 3 2006, 07:00 PM
Post it here inside a [ code box ] and we'll all have a look at it and might be able to find out what the problem is. First question I have is: Are you running it Local or on a Host? If Local, are you running it through a web Browser as Localhost ( sillier mistakes have been made ). Is the Server running? and mysql server? Do a view source to see what html is being output and that might give you a clue as to what is happening. Error reporting On or Off? Set it 'On' for debugging purposes.
Reply
lonebyrd
May 4 2006, 02:57 AM
Everyone brings up alot of points. 1st point... I could use the private message system, but my index file was never really used for registration/login purposes. Maybe that is where I'm getting confused in how to get the registration page to start up. 2nd point... I don't know if I am supposed to be doing this coding through my XAMMP first or just do it on my astahost acct. Right now, I am using everything available to me through the cpanel in my astahost acct. I've done some things in PHP Designer and transfered it to the cpanel, but is that what I am supposed to do? But if anyone is up for looking at some (probably very messed up) php code, let me know and I will PM the coding I've done. I could put them here, if people would rather I do that. I just don't know if that is what is normally done, and I don't want to be a disruption.
Reply
jlhaslip
May 4 2006, 08:07 AM
I don't know if there is a 'right' way, but here is what I usually do: I write the code locally and then run it through my local install of XAMPP to debug the script and when it is completed ( debugged to what i think it needs for the site it belongs to ) then I upload it and test the script again using the Host's versions of the php, mysql, etc. There can be version differences and the installations are never indentical, so there are bound to be 'some' difficulties appear. If the problems are minor, I use the cpanel editor to fix the scripts/pages. If there is a major difficulty, like a logic modification required, then I re-work the script locally and repeat the procedure. Keeping the test phase local is easier since ftp is not required and the server load isn't a concern ( for me or the other users ). This also avoids putting the server into an infinite loop and hogging the server from other users, but, of course, that has never happened to me because all my Logic is rock solid right from the git-go ( yeah, right! ) Anyway, hope this helps. Also, I am using a text editor by the name of ConTEXT which is a freeware product and is a very nicely designed, full function text editor. Highlighting by file extension, and lots of other good features for coding. Download it from http://www.context.cxIncidently, post the code here would be good, or at least a link to a text/zip file.
Reply
Houdini
May 4 2006, 01:54 PM
It would help if you posted the scripts that you currently have. It is hard to know what it going on without seeing some actual code. It would be a good idea to set up a webserver with PHP and MySQL on your local PC to test scripts with before you place them on the web that way they will work provided the setupas are similar to the host you are uploading the scripts to.
Reply
minnieadkins
May 4 2006, 09:25 PM
What exactly shows up? If nothing shows up it might be due to one of your sql statements being incorrect. I don't think that sql warnings are enabled on astahost. You probably ought to try running it locally and turn on all error messages for debugging purposes. Like everyone says show us some of your source code, and maybe direct us to the site that you're working on, if it's stored on astahost that is. Let us know what exactly your problem is. You say nothing's showing up. Is it just a blank screen? No errors? Try to view source and see what it says. Throw in a echo "this is a debug statement"; Make sure it's doing something.
Reply
TavoxPeru
May 5 2006, 11:51 PM
If someone wants the complete solUtion i develop please PM me to send it, of course its not absolutely complete but for a start is good enough i think. best regards,
Reply
Latest Entries
TavoxPeru
May 20 2006, 01:01 AM
QUOTE(yordan @ May 19 2006, 04:31 AM)  Nice, works fine. I was able to use your login page and create your account, which gave me the opportunity to discover that I'm really a poor Trivia gamer. Yordan
:-) dont worry aboUt that, as i promised, in the next hours i will upload the next stage of the trivia script, that involved the Use of a database. best regards,
Reply
yordan
May 19 2006, 09:31 AM
Nice, works fine. I was able to use your login page and create your account, which gave me the opportunity to discover that I'm really a poor Trivia gamer. Yordan
Reply
TavoxPeru
May 19 2006, 04:42 AM
Hi, now you can see the complete script online thanks to astahost.com. Please visit: My Registration Page to test it. Best regards,
Reply
szupie
May 8 2006, 11:28 AM
The problem is with these lines: CODE $nickname = mysql_real_escape_string ($_POST['nickname']); $nameq = "SELECT __name__ FROM registration WHERE __username__ = '$name' LIMIT 1"; $emailq = "SELECT __email__ FROM registration WHERE __email__ = '$email' LIMIT 1"; You have to change the name, username and email parts so that they match with the database. You can keep the variable names as they are, as they are just for reference in the PHP file. P.S.: I've edited the previous posts to add in codeboxes. No one wants to scroll through a whole page of code before getting to the interesting part.
Reply
lonebyrd
May 8 2006, 11:12 AM
Yeah for me! I finally got the registration page to work, sort of. When I go to register, I get error messages, QUOTE Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lonebyrd/public_html/registration.php on line 83
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lonebyrd/public_html/registration.php on line 90
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lonebyrd/public_html/registration.php on line 94 These are the three lines: CODE if(mysql_num_rows(mysql_query($nameq)) > 0) {
if(mysql_num_rows(mysql_query($emailq)) > 0) {
if(mysql_num_rows(mysql_query($nickname))>0) { Is this because in my database I put things as 'ad_name', 'ad_password' etc. Does it have to match exactly as it says in the db. I was just following the tutorial with no real explination. I guess i need to read more on databases and Mysql. They are just confusing.
Reply
Recent Queries:--
live validation of a text field greasemonkey - 312.26 hr back. (1)
Similar Topics
Keywords : script, checking, and, validation, php
- Checking Without Loading
(1)
Myspacetv Download Php Script Help
(6) I was trying to make a php script that can view myspace videos with jw flv player and wont to know
how to do so if i put in
"http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=38105626" it show the video
"http://cache01-videos02.myspacecdn.com/11/vid_e382054c036835500bacfef1ebb5157e.flv(its the flv
video file from myspacetv), I cant see the similarity with the links please help, thanks for viewing
this topic /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
Php Login Script
(0) login script click the link to get your free php login script installer just follow the
instuctions the exe gives you and it will give you the script just place the code in the sever and
open index.html and follow on from there. what it has: it has reg page, login protection code ect.
it is simple to use and i think quite fun but im BORN TO BE WEIRD,you will need at least one working
mysql data base /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> hope you enjoy it. iknow i did from the alexmedia crew....
Make A Script Run Even If No User Is Online
(6) Hey! Is there any way to make a script run, even if no user is online. Because at the moment, my
scripts run, only when a user is online. And another thing: How can i make the following: (this is
just an example) mysql_query"SELECT maxhp FROM users WHERE username = 'allusers'"; How can I
select all users maxhp, in the same query? Thanks //Feelay....
Writing And Testing My Own Login Script [solved]
(20) i have this error QUOTE Warning: session_start() : Cannot send session cache limiter - headers
already sent (output started at /home/eggie/public_html/race.php:2) in
/home/eggie/public_html/race.php on line 5 in every page i have with session start...what's
the problem?? CODE Race include("style.css"); include("config.php"); session_start();
if(!session_is_registered(myusername)){ echo 'Your Session has Expired!'; exit;} //If you
click race... if ($_GET =='race') { $asa=$_POST ; if(!isset($asa)) { echo 'You
didn\'t select an....
Script Request
script request (2) another script request i am looking for a file manger tutorial with edit delete search upload move
copy and a WYSIWYG(What You See Is What You Get) editer like on on freewebs.com and css editor plz
help! i need on badly vmkrightpoint Edit"i keep search google and msn and yahoo i can't find
on!! lol"....
Free Forum Hosting Type Script Help!
Free forum hosting type script help!!! (2) i want to make something like http://invisionfree.com/ that makes an dir with your phpbb 3 forum
in it with an admin CP plz help i really want to make something like it!! i was thinking of coding
my own with file handling but i'm not good at some of it like "when u click submit to register
a forums it will move the phpbb3 file that leads to the users dir then it will rename the dir to
your username so like my.site.com/username it might work" with the admin username and pass and
admin's email it will open the config.php then edit all the data but it will ke....
Login Script
(8) I have another question--- i downloaded script of a game and it worked until my server changed to
newer version of php after which it didn't work... the most probable reason is that globals are
not enabled... now i need someone who can tell me what to put instead of what to make it work...
this is my login.php script CODE if (!$user || !$pass) { include("head.php"); print
"Please fill out all fields."; include("foot.php"); exit; } include("head.php"); $password =
md5($pass); $password2 = md5($password); $password3 = md5($password2); $password4 =....
Password Recovery Script
(6) While trying to make password recovery script for "bhupinunder" i run into a problem... i made this:
CODE $dbh = mysql_connect('localhost','jaskaran_gc','gc') or die
("Cannot Connect: " . mysql_error()); mysql_select_db('jaskaran_gc',$dbh); ?> ";?>
if ($recover=answer) print"$email"; ?> and it doesn't print anything...but if i put it
like this CODE $dbh = mysql_connect('localhost','jaskaran_gc','gc') or
die ("Cannot Connect: " . mysql_error()); mysql_select_db('jaskaran_gc',$dbh....
Warning: Mysql_result(): Supplied Argument Is Not A Valid Mysql Result Resource In ...
This Is for My attack Script. (4) Hey. I am making a "Version 2.0" For my attack script, but I can't make it work. This is the
error I am gettin: Warning: mysql_result(): supplied argument is not a valid MySQL result resource
in And here is the code: CODE $dbQueryHealth = mysql_query("SELECT temphealth FROM
characters WHERE user =". $_POST .""); $currentHealth = mysql_result($dbQueryHealth, 0);
$dbQueryExp = mysql_query("SELECT exp FROM characters WHERE user = ".$_POST ."");
$currentExp = mysql_result($dbQueryExp, 0); I have checked the PHP Manual,....
SQL Doesn't Connect In PHP Script
I made some code updates now the script is broken. (19) i have created a website and it is not working properly... i have had a website on sphosting.com and
everything worked fine till i got some errors(i got the errors because of the crappy host)...now the
fun part starts...they said they solved the problem but i got another one..i said them to repair it
again and they did...now i tried to login but as i entered the info it said the info isn't
correct...i checked the SQL and everything seemed fine..i tried again and again the error came...i
tried than to register,entered ALL info and when this was suppose to come out "Yo....
Php Script Help
help with scripting of php (1) Ok first a little back story of what happened and why I am asking for help. I have been playing text
based rpgs and found that I really like them. Well I have also found that most programers don't
want to listen to their clients in the sugestion box and when u make a content sughesstion they get
rude or make fun of your idea. So I decided I would sart my own and make it where the users had say
so in added content. Not saying all sugestions will get added but I will not make fun or get mad at
them. Any who when I bought the script I was under the impression it was fu....
Run A Script When Expires A Session
(6) For example, when a user logins to a page -with a login form- and after validating and verifying
it's credentials i store some information related to this user in session variables and a table
with his state -connected- is updated, then i use it in other pages, etc. When this user logouts
-by clicking a logout link- i release -unregister, destroy, etc- all the session variables stored
and the same table is updated with his state -disconnected-. All of this funcionality works very
well, the problem comes when the user do not click on the logout link and the session ....
Automated Product Suggestion Script
Compare user lists and suggest related items based on pattern matching (2) I recently got an idea for a project and one of the features I wanted the project to have was an
automated suggestion service. If anyone has been to Amazon, it would work much like their
recommended product feature. What I want to do is take several users lists of whatever but for this
example, I'll use web links like from the browser history. I would want to suggest links to a
user based on common links in many other users lists. User A: Amazon, Ebay, Excite, Google, Yahoo,
MySpace, Walmart User B: Amazon, Ebay, Google, Yahoo, You Tube, MySpace, CVS User C: Amazo....
Something Wrong With This Script?
Unexpected T_SRING (9) Here is the code that I have: CODE $con = mysql_connect("localhost","user","password"); if
(!$con) {die(' Could not connect: ' . mysql_error() . ' ');}
mysql_select_db("database", $con); $ip=$_SERVER ; echo "Adding MXP info..."; mysql_query (INSERT
INTO mxp (date, user, victim, turns, side, gold, lost, killed, mxp, points_b, points_a, type, power,
ip) VALUES ('$_POST ','$_POST ','$_POST ','$_POST ','$_POST
','$_POST ','$_POST ','$_POST ','$_POST ','$_POST
','$_POST ....
Automatic/remote Php Script Execution
(9) Hi, I was wondering, is it possible to execute a PHP script when a user isn't on the page with
it? Say for example, have it so that a script checks that if a certain time has passed since a user
was last active, it logs them off? So that if they've closed the window, it doesn't keep
them marked as logged in. Also, is there any way, with PHP to alert a user when something changes,
as soon as it happens? Say that if they recieve a new message, a box pops up telling them? You could
do this with Ajax I suppose, but (correct me if I'm wrong) continually runni....
Please Help (php Join Script)
(5) Ok as you all know by now I have been working on a php based game
to help me learn php. It has been going great and it is almost done. I got some very good help on is
sues here and along with sites like php.net. However I am stuck and can not find a solution to a
problem anywere. My Problem: I want users to join but I don't want some charicters to be in
there name (example I dont want Disallowed Charicters: , ', " I would array like: CODE
$string = array( , ', "); This for some reason does not work for. CODE if(strpos($name,
$string)){ //error s....
Xhtml Validation With Php In Cgi Mode
(0) Hi, Recently the host server of one of my clients change its PHP installation from the Apache mode
to the CGI mode so because of this change i got some problems. For example, whatever page i view it
shows these warnings at the top of the page: Warning: session_start() :
open(/tmp/sess_b05e459fe625d81a303b59982be3da39, O_RDWR) failed: Permission denied (13) in
/home/client_username/public_html/functions.php on line 9 Warning: session_start() : Cannot send
session cache limiter - headers already sent (output started at
/home/client_username/public_html/functions.php:9....
Login Script
PHP Help #3 - Need help creating one (5) It turns out that the authentication script that I copied from
http://www.php-mysql-tutorial.com/user-aut...on/database.php doesn't work even when it is left
unchanged. What a crappy piece of code. Now I am trying to build by own login script from scratch.
I already have a little knowledge on how to do this (connecting, echoing, retrieving) but I need
some more examples and/or tips. I know what I need and maybe this could help you out: Note: Green
items are fixed. No duplicate username in MySQL Database Authorized users only. I have to
authorize each....
Authentication Script
PHP Help #2 -- I need help tweaking it - it won't work (1) Okay, my first issue about the MySQL echo problem has been solved, thank you to those who helped.
/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Now I am focusing
on the login portion of my site, and I have this so far: CODE // we must never forget to start
the session session_start(); $errorMessage = ''; if (isset($_POST ) && isset($_POST ))
{ $username = $_POST ; $password = $_POST ; //Connect to database $con =
mysql_connect("localhost","myDatabaseUsername","myDatabasePassword"); if (!$con) { die('Co....
Problem With Xhtml Validation
(6) Hi, i have a problem when i try to validate a php page that includes a litlle form and use sessions
as a strict xhtml 1.1 page with the W3C XHTML VALIDATOR, the problem consists that everytime i send
it to the validator it creates a hidden input with the PHP PHPSESSID in the form and also adds to
the href attribute of every link this PHPSESSID, so if you have for example a link like this: CODE
page with session var equal 1 it results in this: CODE page with session var equal 1
and as you know it is recommended that always replace & with & to make yo....
Automated File Structure Creation Script
As Requested By Mark420 (3) While chatting with Mark420 today on the shoutbox, he mentioned that he was looking for a script to
create his entire folder structure with just a click of a button. For example, he wanted the
following folders created in his root folder by just clicking submit. /images /images/thumbs
/images/icons /css /javascripts /content /content/articles /content/tutorials Presumably this
would be used for some type of installation system or other quick server setup situation. Anyhow
here is what I threw together for him: /* ********************************************....
Online Multiplayer Chess Script
Online multiplayer chess script (2) Do you have any script for this?or where can i find this script. I wait your replies. ok.....
How To Delete File Using PHP Shell Script
(3) i have this problem regarding file access seems that my admin host or the server system itself have
locked up the acces to create new file, delete a file.. change file permissions and such controls
to file.. someone told me to use php shell script.. can you help me out here? ******** i just
need to find out how to use php shell script and add it to my php scripts to delete a file.. thanks....
Checking To See If Something Is Not An Integer
(4) I put together this: CODE //Make Sure $qty is NOT blank before checking if it is a number
if (!empty($item_1_qty)) { //not empty } if (intval($item_1_qty) !==
$item_1_qty){ //item 1 qty is not a whole number $redirect_to =
'order_form.php?error=6'; header("Location: $redirect_to");
exit(); } But I get my error message coming no matter whether it is an
integer or not.....
Installed A PR Checker Script - But Not Working Correctly
(6) I'm new to PHP and still have much to learn. I came across a free script to check google PR.
You place a file called pagerank.php and then have an includes. So I did this: CODE ?>
Then I have my HTML (the page header and so forth), and added a form where they can input their URL.
The form action is CODE " method="post" name="checkpr" id="checkpr"> First of all ... I
seem to be missing something completely basic. My page isn't displaying at ALL as I expected.
No graphic header and no form. It's actually showing all my HTML code in....
What Would Make A Good Registration Script?
(4) I see newbies all the time looking for either a login script or after a little querying you find
they really would like to have a registration script. The first thing for such a script for a
members area would of course be a form and being kind of old fashioned I still like to format my
forms with a table but I do use inline CSS to make it a little nicer. I never did like forms that
had an asterick * by a field and then a Note: Fields marked with * are required. So what I do
instead is add a background color to those areas and then use a CSS background color statin....
Need Help With A PHP - MySQL Registration Script
Wont INSERT into the database (13) hey well can some one helpme make this code work it won't INSERT INTO THE DATABSE CODE #
register1.php # common include file to MySQL include("DB.PHP"); $Username=$_POST ; $Password=$_POST
; $Name=$_POST ; $Last=$_POST ; $Sex=$_POST ; $Month=$_POST ; $Day=$_POST ; $Year=$_POST ;
$Adresse=$_POST ; $City=$_POST ; $State=$_POST ; $Zipcode=$_POST ; $Country=$_POST ; $Phone=$_POST ;
$Email=$_POST ; $Father_Name=$_POST ; $Mother_Name=$_POST ; $Parent_Phone=$_POST ;
$Parent_Email=$_POST ; $Level=$_POST ; $Academic=$_POST ; $Image_Link=$_POST ; $sql9="INSERT INTO
U....
Php Script To Download File From Another Site
(9) hi i need a php or java script code for downloading files from other sites to my site for example:
http://download.com/file.zip to http://mysite.com/file.zip thanks....
Trainable Anti-spam Filter Script
Any clues howto write one/get one ? (3) Hi all, Does anybody have ideas about writing trainable anti-spam mail filters - that you can
add onto any web-mail script ? Looking for something written in perl/php that'll allow me to
just check the checkboxes beside spam mails and click any button (say, "mark as spam") and the
script studies the mail headers and creates its own list of originating spammer domains/ips & blocks
out mails from 'em ? Thanks /smile.gif' border='0' style='vertical-align:middle'
alt='smile.gif' /> ....
Looking for script, checking, and, validation, php
|
*SIMILAR VIDEOS*
Searching Video's for script, checking, and, validation, php
|
advertisement
|
|