Okay I don't know if this can be done. But I'm currently programming a script that I want links to open in a new page. So lets say this is may page now. CODED HEADER DYNAMIC CONTENT LINK DYNAMIC CONTENT CODED FOOTER So what I want is that when someone clicks on the link a new page will be created which will look identical to the one I have before. CODED HEADER DYNAMIC CONTENT RELATING TO LINK CODED FOOTER Is this possible with php? Skinny
Skinny, that's what we do all the time. It's called content management. Or have I missed the point? check out www.php.net/include for how to call the headers and footers. you may end up with pages like stuff.php?show=elephants stuff.php?show=leopards or you can use .htaccess to hide the magic, but there's no big deal there these days.
Yeah, what I do is use auto incrementing Id's for my mysql tables, and then just link to a page that recognizes the ID and only echo's out information based on that id, in the mysql query use WHERE id='$id' . <-- id being your mysql row and $id being the id of the link that was clicked on.
Yes You can use file functions. fopen() See also Appendix M, fclose(), fgets(), fread(), fwrite(), fsockopen(), file(), file_exists(), is_readable(), stream_set_timeout(), popen(), and stream_context_create().
Wow. Okay. let's simplify this problem then. (Sorry I'm a php newb). So let's say that I have a hidden div with a unique id that I want displayed in a new page when I click a link. How would I go about doing this. i.e. lets say that the link is "elephants" and my hidden div contains a whole paragraph about elephants and it's id is "1". How can php display just that div in a new page? Skinny