View Single Post
  #4   Spotlight this post!  
Unread 26-01-2005, 09:12
ahmad's Avatar
ahmad ahmad is offline
Registered User
#0909
 
Join Date: Jan 2005
Location: kansas
Posts: 20
ahmad is an unknown quantity at this point
Re: PHP Coding HELP!!!

Quote:
Originally Posted by FRANK(WGH)
I recognize that i wasn't really clear on what i want to do so here it is. I'd like to use one page and then be able to include a specific include file through the link like this:
(http://delphielite.com/profiles.php?show=fbosak)
this way all i need is to create one completely formated page and then have it include a text file for each team member that has all the profile information.
I hope that this is possible

see if this helps :


PHP Code:
<?php



 $fullname 
$_GET['name']; 
  
           
        



    
$query=mysql_query("SELECT * FROM $table where name='$fullname'") or die(mysql_error());

    
    
    while(
$row mysql_fetch_array($query)) {
     
$j mysql_num_fields($query);
        for(
$i=0;$i<$j;$i++) {
            
$k mysql_field_name($query,$i);
            $
$k $row[$k];
        }
    
    
$entry=stripslashes($entry);



Echo
" entry";


    
?>

to see somthing you just type : index.php?name=FRANK

Last edited by ahmad : 26-01-2005 at 10:09.