Results 1 to 4 of 4

Thread: Call a PHP Script and MySQL Value?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    31

    Call a PHP Script and MySQL Value?

    I was wondering how I could do this.

    I have a little test database in MySQL. I also have a couple little test pages that I'm using with PHP and MySQL. What I want to know is, can I create a single PHP script, call it, then use the values I have in my database to become the values for the stuff in my webpage when it loads?. I want a script that can be Like this:

    <?php 'Call PHP Script' ?>
    $'Variable' = 'MySQL Value';
    *Not actual code.

    I'm doing it this way because of a little lottery program I have and I want to just change values in my database and have them become the values of my page. I hope this isn't too confusing...I even confused myself, I just don't know how to word it better.

    Edit: I kind of mean like an automatic php/mysql script that will load on the page startup/refresh.

    Edit 2: I was also hoping I could pass some info through it so it picks up the correct value. Like calling a php script giving it the name of the value and having it return the value itself. Please stop me if I've lost you.
    Last edited by Ataru Moroboshi; Sep 25th, 2007 at 11:10 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width