View previous topic :: View next topic |
Author |
Message |
mtbiking -
Joined: 18 Mar 2004 Posts: 66
|
Posted: Tue Jul 19, 2005 8:35 pm Post subject: EDIT, REWRITE AND/OR CHANGE |
|
|
help with this
how can i make it so after i have submitted to the file to be able to edit it it afterwards
i was thinking of $[randomnumber] = "the post"
an then the file can read the individual posts and rewrite to them, can someone who knows ho to do that tell us thanks
Code: |
$fp = fopen('shows.inc.php','a');
if(!$fp) {
echo "Error writing to file";
}
$write="<br>\nDATE: $date<br>\nTIME: $time<br>\nWHERE: $location<br>\n";
fwrite($fp,$write);
fclose($fp);
echo "Your post has been made";
|
_________________ Check It Out... Nochex Classifieds |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Jul 20, 2005 12:13 am Post subject: |
|
|
You could use a for loop to do this but it requires more than you think. I will
try and create something today if I have time , you can also add a search if
you want to get really advanced. I will keep you posted this week.
Sincerely , TRUSTpunk |
|
Back to top |
|
 |
mtbiking -
Joined: 18 Mar 2004 Posts: 66
|
Posted: Fri Aug 12, 2005 9:59 pm Post subject: |
|
|
well this is what i made so far
http://bandsscript.proboards50.com/
but instead of using a rand(1000, 9999) to creat a 4 digit number how could i make it so
it creats a 1000 then +1 for every other one after it.
so 1000 then 1001and so on...
this way a could rind them easier in the index.php file and also edit the input. _________________ Check It Out... Nochex Classifieds |
|
Back to top |
|
 |
|