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...
User Profile
Collapse
-
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?Leave a comment:
-
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:(Leave a comment:
-
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';?>... -
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:( -
Doh sorted it I think. I wasnt thinking straight.
[php]$sql = "SELECT * FROM contactd WHERE email = '$userId' AND password = PASSWORD('$pass word'
[/php]Leave a comment:
-
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]... -
Thanks soooooooooooooo o much it works :D I cant tell you how gratefull I am.Leave a comment:
-
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...Leave a comment:
-
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...Leave a comment:
-
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?Leave a comment:
-
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:(Leave a comment:
-
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:(Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: