User Profile

Collapse

Profile Sidebar

Collapse
kempy535
kempy535
Last Activity: Dec 15 '06, 12:39 AM
Joined: Dec 5 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kempy535
    replied to Warning: Cannot modify header information
    in PHP
    Okay it moaned when I put the css script link in the config file so I have put it in all the files. The error that I had has gone away :) but has been replaced by another:(
    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\h tdocs\Rising sun\login.php:1 6) in C:\Program Files\Apache Group\Apache2\h tdocs\Rising sun\loginmeth.p hp on line 24
    This is the code for the...
    See more | Go to post

    Leave a comment:


  • kempy535
    replied to Warning: Cannot modify header information
    in PHP
    My mistake! The css.php is called in all of the pages by,
    [php]<?php require_once 'css.php';?>[/php]
    It is under the <?php require_once 'config.php';?> on every page. Should I just use you code one the config page and then it will be called by the config page?
    See more | Go to post

    Leave a comment:


  • kempy535
    replied to Sessions
    in PHP
    Thanks I visted both those pages and I think Im getting a handle on it. I found http://www.tizag.com/phpT/phpsessions.php quite helpful as well. I still have so much to learn and do and so little time left:(
    See more | Go to post

    Leave a comment:


  • kempy535
    started a topic Warning: Cannot modify header information
    in PHP

    Warning: Cannot modify header information

    Hi I get this error code when I try to run my login script.
    Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\h tdocs\Rising sun\css.php:1) in C:\Program Files\Apache Group\Apache2\h tdocs\Rising sun\loginmeth.p hp on line 24
    This is the login script stored in loginmeth.php ;
    [php]<?php require_once 'config.php';?>
    <?php include 'opendb.php';?>...
    See more | Go to post

  • kempy535
    started a topic Sessions
    in PHP

    Sessions

    Does anyone know a good resource or can tell me about sessions and cookies. I have no idea I tried asking my lecturer and Im more confused. I have no idea how they work and I need to know in a hurry:(
    See more | Go to post

  • kempy535
    replied to User Authentication
    in PHP
    Doh sorted it I think. I wasnt thinking straight.
    [php]$sql = "SELECT * FROM contactd WHERE email = '$userId' AND password = PASSWORD('$pass word'
    [/php]
    See more | Go to post

    Leave a comment:


  • kempy535
    started a topic User Authentication
    in PHP

    User Authentication

    Im trying to check a email address and password against those stored in a data base callled contactd, but i get the following error code:
    Query failed. 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 'FROM contactd WHERE email = '' AND password = PASSW

    Below is the code I cant figure out whats wrong anyhelp would be great,

    [php]...
    See more | Go to post

  • kempy535
    replied to Linking with form php and mysql
    in PHP
    Thanks soooooooooooooo o much it works :D I cant tell you how gratefull I am.
    See more | Go to post

    Leave a comment:


  • kempy535
    replied to Linking with form php and mysql
    in PHP
    It still doesnt like it. all of the code after the last dot turns black. I have tried moving the dotes and have added another set of " before and after each dot that makes the code go the right color.
    [php] echo "<form action='"."<?ph p echo "$_SERVER['PHP_SELF']"; ?>"." ' method='post'>" ;[/php]
    But I get the same error as before
    "Parse error: parse error, unexpected...
    See more | Go to post

    Leave a comment:


  • kempy535
    replied to Linking with form php and mysql
    in PHP
    I think some of the " need replacing with ' because the code turns all black when you added the section you wrote. I thought this would be right ,[php]echo "<form action = '<?php echo "$_SERVER['PHP_SELF']"; ?>' method='post'>" ;[/php]
    but it gives "Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in C:\Program Files\Apache Group\Apache2\h tdocs\Rising sun\Risingsun Gibson.php on...
    See more | Go to post

    Leave a comment:


  • kempy535
    replied to Linking with form php and mysql
    in PHP
    Oh wow thats brillaint, thank you. I do have a couple of questions tho, Im a networking student a know very little about programming so Im sorry il any of the questions seem simple.
    Do I just have to change 'a.php' to a blank php and the results will get sent there? Or do I need a echo command?
    See more | Go to post

    Leave a comment:


  • kempy535
    replied to Linking with form php and mysql
    in PHP
    Yep I have just been messing round with it and found that. How can I get round that? I want to click on the image and for it to sends its 'id' information with it? I just cant figure out how to do it:(
    See more | Go to post

    Leave a comment:


  • kempy535
    replied to Linking with form php and mysql
    in PHP
    There are 8 items in the row named gibson and another 10 named somthing else. But the code at the moment only returns the last item with the name gibson. I cant get it to return any of the other 7:(
    See more | Go to post

    Leave a comment:


  • kempy535
    started a topic Linking with form php and mysql
    in PHP

    Linking with form php and mysql

    Hi Im have aproblem with a site im trying to design. What Im trying to do is when you click on an image it links to another page and displays data that is relevent to its self.
    The images are stored in the mysql data base under a colum called thumb and what im trying to make happen is when you click on the image it submittes its thumb name with a form feature and I can use the post meathod to recive it on another page and display the rest...
    See more | Go to post
No activity results to display
Show More
Working...