Re: <? view_content(78) ?>
- From: "Abe" <abu117@xxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 18:18:16 GMT
thanks for your help....I'll dig deeper.
"Jensen Somers" <jensen@xxxxxxxxxxxxxxx> wrote in message
news:L4OdnQsF4bOdMA3VnZ2dneKdnZydnZ2d@xxxxxxxxxxxxxxx
Hi,
Abe wrote:
I hope someone can help....
I'm new at all this, so please bear with me. I created a website and did
this all in php using dreamweaver. I later hired a programmer to connect
some forms and reports to an sql database. I later had him upload all
the files to the server.
Now, I need to be able to go in and edit some of the content - not
touching the database. When i download the files from the server and
open them again in Dreamweaver, all the content within the body tags seem
to be replaced with something like:
<? view_content(78) ?> -each php page will have a different number -
this one happens to be 78.
Does this mean that the programmer took all my content out and put that
into the database as well?
If so...why would they do that? Any reaon from a programming view point?
Or just making the pages load faster? Or making it impossible for me to
edit content so I need to re-hire him each time I need changes?
Thanks everyone,
Abe
First of all, you hired a crappy programmer. Using <? in stead of <?php is
not something a decent PHP programmer would do these days. But that
doesn't solve your problem.
'view_content()' is most likely a function, so it might be best to check
in which file this function is located and what the function does. It
could be this function gets the content out of a database, which is not
bad at all, only his implementation is bad. Almost every PHP website gets
the actual page content out of a database. I suspect that, he has a
'content' table where each page corresponds to a specific ID and he
fetches the content depending on that ID. To edit the page you thus need
to edit the content directly inside the database, or, if provided, via the
administration section of your website. But, that merely depends on the
exact implementation of the 'view_content()' function.
- Jensen
--
Jensen Somers <http://jsomers.eu>
Email: -http:// +jensen@
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying to
produce bigger and better idiots. So far, the Universe is winning."
- Rick Cook, The Wizardry Compiled
.
- References:
- <? view_content(78) ?>
- From: Abe
- Re: <? view_content(78) ?>
- From: Jensen Somers
- <? view_content(78) ?>
- Prev by Date: online users
- Next by Date: Re: online users
- Previous by thread: Re: <? view_content(78) ?>
- Next by thread: Re: <? view_content(78) ?>
- Index(es):
Relevant Pages
|