User Profile
Collapse
-
Soy ou tried backing up your information, and you screwed something up.. Do you know exactly what it is you screwed up? Have you tried running a "SELECT * FROM" to make sure query to make sure there is even an administrative account to edit? -
sreenisha, what you're asking is a rather complicated question and requires a rather complicated answer.
Markus is right, you're going to need to interact with a database to compare user name and password against. If the information matches, you'll want to save a piece of authentication information in their browser called a cookie.
Next, on the pages you want to display this welcome block, you'll check for the cookie,...Leave a comment:
-
Here we're going to use one of my favorite functions for this sort of thing: preg_replace. Now please not that the first field is an input for regular expressions, so be sure to keep the "/ and /" intact! Whether you enter \n\n or \r\r, it should look like "/\n\n/" or "/\r\r/".
...Code:<?php $sourceFile = "fileWeWillRead.txt"; $targetFile = "fileWeWillWrite.txt";
Leave a comment:
No activity results to display
Show More
Leave a comment: