Jump to content

ATM

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by ATM

  1. ATM

    PHP Mysql Headers Help

    Anyway, I want to create a login system using PHP and Mysql, only problem is, it won't let me set the headers. $mysql_connect = mysql_connect($mysql_servername,$mysql_username,$mysql_password );if (!$mysql_connect){die(header('Location: http://www.mydomain.com/'));} In the code above it states that the line 33 has sent the header. Line 33 is the following line. $mysql_connect = mysql_connect($mysql_servername,$mysql_username,$mysql_password ); Anyway I can set the headers if the connection attemp fails?Thanks,
  2. ATM

    URGENT : REGEXP

    Is'nt that javascript
  3. ATM

    Just Checking

    So is this ok? <?php$mysql_servername="";$mysql_username="";$mysql_password="";$mysql_database="";$mysql_tablename="";$mysql_fieldname="";$mysql_password_field="";$mysql_xml_reference="";$username=$_POST["username"];$password=$_POST["password"];$connect = mysql_connect( $mysql_servername, $mysql_username , $mysql_password );mysql_select_db( $mysql_database , $connect );$login = "SELECT * from ".$mysql_tablename." WHERE ".$mysql_fieldname."=".$username."";$fetch_array = mysql_fetch_array($login);if ($fetch_array[$mysql_password_field] == $password){$xml_reference=$fetch_array[$mysql_xml_reference];}else {header("Location: http://www.yourdomain.co.uk/");}mysql_close($connect);?>
  4. ATM

    Just Checking

    I recently started learning mysql and haven't been able to set it up yet, but I was wondering if the following code will work; <?php $mysql_servername="" ?><?php $mysql_username="" ?><?php $mysql_password="" ?><?php $mysql_database="" ?><?php $mysql_tablename="" ?><?php $mysql_fieldname="" ?><?php $mysql_password_field="" ?><?php $mysql_xml_reference="" ?><?php $username=$_POST["username"]; ?><?php $password=$_POST["password"]; ?><?php $connect = mysql_connect( $mysql_servername, $mysql_username , $mysql_password ); ?><?php mysql_select_db( $mysql_database , $connect ); ?><?php $login = "SELECT * from $mysql_tablename WHERE $mysql_fieldname='$username'"; ?><?php $fetch_array = mysql_fetch_array($login)); ?><?php if ($fetch_array['$mysql_password_field']="$password"){$xml_reference=$fetch_array['$mysql_xml_reference'];} ?><?php mysql_close($connect); ?> The code is firstly meant to connect to my sql, then get the username and password send from a form, it's then ment to look to see if the username exists in the table of data and if it does it's meant to check to see if the passwords match and then if they do it's meant to get another field, which will contain a url and put that url into a variable.Thanks,
  5. I'm not really sure but It could be something to do with the "onload" function?
  6. ATM

    Login System Help

    ok I want to make a Login System, I can understand how you can create a system that will log the user in but I can't understand how to display different data on the same page, depending on who is logged in.For example if you hadhttp://www.yourdomain.com/user/index.php?I=475638&page=4and the user saw the information they was intended to see, what is stopping anyone from typing in that url and visiting th page, If I uses sessions whouldn't people be able to use there session to get to others?Thanks,
  7. Please can somebody show me a content management system as I'm going to build one but am not sure what I will need in there for a professional one.thanks,
  8. ATM

    PHP Error Help

    PHP has encountered an Access Violation at 00003F20I get this on my website randomly while clicking on links, anybody know how to fix this? or even what it is?oh and I have a login option on my website.cheers
  9. Could someone please tell me if there is a way to veiw the hidden sorce on peoples php pages, would it be safe to save a password in a php file?
  10. is XSLT supported in browsers other than internet explorer, because that was my first idea, but it only worked in internet explorer.
  11. Thanks, I just need someone to explain how to do it, not the code, just bassically what scripts you have to use and what each one has to do?
  12. Okay, I Have and XHTML document, which I'm happy with and I would like to make a Content Management System by haveing a program on my home computer which will save to the xml file. Then the HTML will get the data from the XML File (like a data island). Could someone please point me in the right direction of how I can do this and if I can do this.It has to be supported in all majorly used browsers, Thanks!
  13. Yeah, CheersAll that time I was checking all spacing codes, I never would have thought of that.
  14. you can put it on the same page, you must save the file as a php file (.php) and must be in a php freindly enviroment,you would have to do the same for each fieldThe form does not have to be in the <?php ?> tagsthe code is basically saying:get the form input, if the input is blank display error.if this doesn't work you will have to use javascript.
  15. It still doesn't look right for me, I have been doing html for about 2 years and I'm sure the code is all right.If anyone can see a gap Inbetween, the forgotten your password and the links please let me know.Also If anyone knows how to fix this problem also let me know..maybe, it's just my computer
  16. where it reads forgotten your password there is a gap in between the login box and the links? I will try downloading the next version of IE.Thanks,
  17. I'm not really sure you can try this, it is php btw, no guarantys it will work though.<?php$validate=$_POST['NAMEOFFEILD'];if ($Validate== ) {echo "Error"; }?>
  18. Please can somebody help me find the problem which makes my webpage appear different in IEI would like it to look like it does in FireFox and Opera, the url is:http://skate-suffolk.co.uk/rymax-designs/index.phpThanks,
  19. ATM

    samy is my hero

    BRING DOWN BEBO!IT'S 10X WORSE
  20. ATM

    Browser Discussion

    My opinion of microsoft is that they are retards, they think they can do everything there way, if you were to send a bussiness plan to your freind using hotmail, microsoft would have the rights over it.Also, Microsoft doesn't bother with the back end scripts in there operators they concentrate on the front end because the backend isn't what makes them most of their money, because that is all they care about. on my next computer i'm going for Linux all the way, its free and way better.
  21. if you go on DynamicDrive.com they have an online program to create a Favicon. it will give you a file to download as a .ico file with the code to add it to your website.
×
×
  • Create New...