Re: <? view_content(78) ?>



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
.



Relevant Pages

  • Help!
    ... Fred wants an e-commerce website. ... pages with calls to as-yet-unwritten PHP scripts mixed in with the HTML and Javascript. ... I've just started work as a freelance programmer. ...
    (comp.lang.php)
  • Re: Posting to a Web Form and Displaying the Result in Normal Browser
    ... the Access inventory database to the online database that drives ... everything has to be extensively processed for the website (it's ... then it should display just fine. ... I suppose so the .php application didn't ...
    (comp.databases.ms-access)
  • Re:
    ... this all in php using dreamweaver. ... I later hired a programmer to connect ... some forms and reports to an sql database. ... Almost every PHP website gets ...
    (comp.lang.php)
  • Re: Insert a dialog box so users can upload a photo
    ... You probably need something like a guest book which would require a Database and likely php. ... unless you mean something like allowing visitors to select an image from their computer and send it to you via your website. ...
    (microsoft.public.publisher.webdesign)
  • Re: Office document upload to website (and inserting in MySQL if possible)
    ... > website (apache, php, mysql) in a specific directory and if possible insert ... To get the whole think into a database, you'd use the file and mysql commands, ...
    (alt.php)