Jump to content

cburwell

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cburwell's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That's what I figured. I have downloaded Smarty. Luckily it should be easy enough to chage my current scripts over to smarty. Thank you!
  2. Would you be able to provide any information on how I could accomplish this?
  3. I have a template class that I wrote (following a tutorial I found) that I am using for a website I am creating. What I need to do is select everything from a table and then display each row from the DB in it's own row in an HTML table. I have template tags set up for each cell in the db table, like so: [code] <tr>     <td><a href="{edit_link}">Edit</a></td>     <td>{title}</td>     <td>{poster}</td>     <td>{date_posted}</td>   </tr> [/code] A standard while look does not seem to work, since it does not produce the desired output. Does anyone have any ideas on how I can go about this? I am sorry if I am being vague. It's late, and I need some sleep. If you need more information let me know and I will post the information.
  4. [b]redbullmarky[/b]: I thought about doing that, but I was a bit concerned about how easy it would be for someone to manipulate the $ref portion in the url. [b]printf:[/b] That sounds like a good way of going about it. I'm probably going to give that a try some time after work.
  5. I was thinking about the $_SERVER['HTTP_REFERER'] var, but I was thinking, what if someone came from google.com, and for some reason went directly to my login script? Then after they login they may be redirected back to google. I guess I would have to put some sort of check to make sure that did not happen. All this information should point me in the right direction. Thank you!
  6. I recently just got back into the swing of coding PHP again. I made a news front end to display news that I post in a MySQL table. I am now going to be creating the administration for that news scrip, which will allow for adding, editing, and deleting new posts. In addition I have created a userauth class that uses another table to authenticate users and start a session once they are authenticated. My goal is to be able to use the same userauth class and database to be able to log into the admin portion of various scripts I may write. When someone requests a news admin page such as: www.mydomain.com/new_admin.php?function=add, I first have the script check to see if the user is already logged in. If they are not, I want the script to take the user to the login page. Once the have sucessfully logged in I want the loging script to take them back to the page that they origoonally requested. [b]My Question:[/b] is there a PHP variable that I can pass to the login script that will contain the full url of the page/script that the user origionally requested?
  7. Thank you! I appreciate your help.
  8. I posted this somewhere else, but I figured this might be a better place. I have been looking around for what the use of ?, and : mean in PHP, such as in the following examples $data = (file_exists($data)) ? $this->parse($data) : $data; and $func = ( $regType == 'P' ) ? 'preg_match' : 'ereg' . $case; Could someone point me in the right direction of some documentation on this? I have tryed searching, but I can't seem to search for the uses of ? and : properly. Thank you!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.