beshoo
|
| Posted: 03/31/2002, 9:01 AM |
|
happy Easter......
will make a news paper and it is a sport 1
and i have some idea about it and i have a problem withe my idea.
1* ok i have 5 section and thes section must be have the news on it
i like to make some thing like to create a new news paper and it will be issue 1 like eg
the admin will see all the section have no record
but if i go to the first section i will see :
how number of article do u nead in this section....
he will put the no. like e.g
article no.= 5
he will have a page have 5 section
i mean 5 places to wnter a 5 articles
for each article it will have 2 input Box for the
the path to your image , address of article
and one textarea for the the articles,
so it will be like this
the path to your image :
address of article :
the articles:
the path to your image :
address of article :
the articles:
the path to your image :
address of article :
the articles:
the path to your image :
address of article :
the articles:
the path to your image :
address of article :
the articles:
and i will have the a one enter button..
when i have it the articles will be go to the data base .
and if i like to make an edit on this section i will have a smae page it will be ready
to make the edit and entring to the data base.
so this is for the first section let as call it -- A.
and i have 5 sections.
so if i if i go to the " B " section i will see like what i told u
in the a section.
how number of article do u nead in this section....
he will put the no. like e.g
article no.= 2 like e.g
when i end all section i will have ------> archives section
archives section :
when i end all thes section it will be in the archives section like edition no 1
ok when the user have "edition no 1" it will be go to edition no 1 and it eill see just
the data that i put it in the edition no 1
cos i will have more than one edition in the news paper.
that the important thing right now and hope i find your nise help
see this php code :
<?
$i = 1;
while ($i <= $count):
print " my forms ";
$i++;
endwhile;
?>
when i transfer the $count
it will print the forms like what i transfer
so who can i make it work with cc ?
|
|
|
 |
Nicole
|
| Posted: 04/01/2002, 1:19 AM |
|
Hello,
have you seen Editable Grid example on this site? It is built for one field to update but the principle is the same.
Create as many text fields as you need and set their names to:
field_name.+primary_key_value to get name like:
article.1=test&article2=www
The second difference from article is getting values from parameter string. Try to parse it using php string functions.
|
|
|
 |
beshoo
|
| Posted: 04/01/2002, 3:36 AM |
|
what the code ????????
1- i like to have an insert page ti insert the article but this page will have some thing.
this page will have more than one article
but when the admin WILL go to put a new data , BUT before he will go to but the data he will definition the count
of the articles
b/c the page will have more than one article it will look like this:
article IMG uploader
article name: bla bla bla
the article:
bla bla bla blabbla bla bla blabbla bla bla blabbla bla bla blabbla bla bla blab
bla bla bla blabbla bla bla blabbla bla bla blabbla bla bla blabbla bla bla blab
bla bla bla blabbla bla bla blabbla bla bla blabbla bla bla blabbla bla bla blab
__________________________________________________________________________________________
article IMG uploader
article name: bobo bobo bobo
the article:
bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo
bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo
bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo
bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo bobo
__________________________________________________________________________________________
....ECT.
so when he will definition the count the no of the articles e.g "4" articles
he will have 4 blocks each block will have three inputbox and one textarea
and i think we will use some thing like that:
i mean the php code:
<?
$i = 1;
while ($i <= $count):
print "the forms block";
$i++;
endwhile;
?>
i think when we definition the $count no like "4"
it will print 4 block
each block will have three inputbox and one textarea.
that is all
but i have to tell u that htis news paper will be update evre day so
when i like to make a new edition what the thing will we rest on it ?
is it the data ?
cos when we put a nwe edition it will be for this day date
not for yesterday date
and we will have a page for the archives.
so what your idea ?
|
|
|
 |
|