stevenp Posted September 13, 2011 Share Posted September 13, 2011 Hi, Basically I just downloaded wamp and got php and mysql etc. I created a database for my "new social network to-be site" which I am trying to develop.. now I want to create a registration page and am trying to follow a guide on another website.. it lets you download a zip with all the php files required. So now, I am totally confused. Here is the guide: http://www.html-form-guide.com/php-form/php-registration-form.html But I dont know what to do with any file or where to put it.. any basic help.. Just to confirm I want to make a login/registration/user database type thing Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/ Share on other sites More sharing options...
stevenp Posted September 13, 2011 Author Share Posted September 13, 2011 So basically.. I just want somebody kindly to give me a quick talk through it.. if thats possible :') Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1268837 Share on other sites More sharing options...
Pandemikk Posted September 13, 2011 Share Posted September 13, 2011 You'll need a web server with PHP and, I'm assuming here, MySQL support for the server-side language and the database. Do you have that? Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1268841 Share on other sites More sharing options...
stevenp Posted September 13, 2011 Author Share Posted September 13, 2011 Well WAMP, provides Apache or localhost which can basically host php offline.. if you get what I mean.. so instead of a paid web server i have apache which does the same locally for free. I tried uploading a file to my database (can you even upload a .php to the database?) and I get this error.. I dont undertsand.. sorry if I am being dim Error There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem ERROR: Unknown Punctuation String @ 1 STR: <? SQL: <?PHP require_once("./include/fg_membersite.php");<?PHP require_once("./include/fg_membersite.php");<?PHP require_once("./include/fg_membersite.php");<?PHP require_once("./include/fg_membersite.php");<?PHP require_once("./include/fg_membersite.php");<?PHP require_once("./include/fg_membersite.php");<?PHP require_once("./include/fg_membersite.php");<?PHP require_once("./include/fg_membersite.php"); SQL query: <?PHP require_once("./include/fg_membersite.php"); MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?PHP require_once("./include/fg_membersite.php")' at line 1 Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1268842 Share on other sites More sharing options...
Pandemikk Posted September 13, 2011 Share Posted September 13, 2011 Lol no. You aren't suppose to upload PHP files to the database. PHP files belong in your htdocs folder. Here's a wonderful site for setting up Apache (as well as MySQL and other things) on Windows: http://www.thesitewizard.com/apache/install-apache-on-vista.shtml Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1268850 Share on other sites More sharing options...
stevenp Posted September 13, 2011 Author Share Posted September 13, 2011 :L ok, thats the reason... htdocs? sorry.. and i think apache might be working.. i write http://localhost and press enter and i get something come up.. phpmyadmin.. so.. and thanks for this, you are being really helpful Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1268852 Share on other sites More sharing options...
stevenp Posted September 13, 2011 Author Share Posted September 13, 2011 and if I am adding this php registration area.. somehow.. I can combine this with html with <?php codes and ending codes and it will fit in? oh I must sound proper stupid to you guys Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1268861 Share on other sites More sharing options...
Pandemikk Posted September 13, 2011 Share Posted September 13, 2011 Find your Apache folder. It should have htdocs and conf folders in it. I highly suggest you read the tutorials in that link I provided to you. You should also look up general using Apache with Windows tuts. The questions you are asking aren't related to PHP coding at all. You need help finding where to upload / move your files so that they can be accessed by Apache. This is relatively simple and can be figured out by reading over the contents in the link I provided much better than I could ever hope to. Once you can access your .php files in your browser I'd be happy to help you from there. Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1268862 Share on other sites More sharing options...
jcbones Posted September 13, 2011 Share Posted September 13, 2011 If you installed WAMP SERVER then the public HTML folder is called 'www'. You will have to configure MySQL to work with php, by moving a file, it should be in the readme that pops up after installation. http://www.wampserver.com/en/presentation.php Their forums you have already found, I see! Quote Link to comment https://forums.phpfreaks.com/topic/247069-complete-beginner/#findComment-1269029 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.