/    Sign up×
Community /Pin to ProfileBookmark

Architecture advice / Direction

Hi folks,

I am somewhat new to mysql and php development but i have been able to complete the following the following;

[LIST]

  • [*]

    Create a log in system


  • [*]

    Write to a database / read from a DB


  • [*]

    create wildcard redirects for users (eg. user.url.com rather than
    url.com/user=whatever)


  • [/LIST]

    Currently users are able to write to a DB via a php web form. On form submission the data is stored on the DB table.

    However, this is where i am somewhat lost and require advice, On form submission i want the recorded data to be fed into a template html/php page.
    (eg. user.url.com/created_page.php).

    i would assume that it would be incorrect to write out a new php file every time a form has been submitted but rather have one template file manipulated depending on which data is being viewd at that time?

    So i have a standard template.php file. i hope to allow users to modify the file-name.php and some extra piece of code within the template file such as page title etc.

    user.site.com/my_page.php would point to templates/template.php with the stored data fed into the template file?

    Is this possible? I would appreciate any help / direction you are able to provide either on the architecture / structure of the database table to the technical coding aspects.

    Thanks,
    Chris

    to post a comment
    PHP

    0Be the first to comment 😎

    ×

    Success!

    Help @cfear spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.27,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...