Announcement

Collapse
No announcement yet.

Any PHP Guru's Here?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Any PHP Guru's Here?

    Ok.... we're currently compiling a database which basically contains product reviews. Each review has a product code which matches a product reference in our actinic store. Anybody know how I might be able to create a query which takes the actinic product reference (not quite sure how it would get this, perhaps within the current html of the page?) and search for that in a mysql db. Then relay the results of a field based on finding a matching product reference in a table row?

    Any advice whatsoever would be greatly appreciated, even if you think it can't be done...

    PS. Hoping to display the results on the static actinic html pages by using some form of php include..?

    #2
    I'm assuming this database is held on your server and you want the info displayed when the customer visits a page.

    In your product layout, try (untested)
    Code:
    <?php
    $prodref = '<actinic:variable name="ProductReference" encoding="perl" selectable="false" />';
    echo "The product reference is: $prodref";
    ?>
    And make sure your page names end in .php
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks very much norman, thats great. I'll give it a bash and see what happens... Seems sooo simple now it's been posted.

      Comment


        #4
        Normans the man around these parts

        Comment


          #5
          I think Norman invented php. Wish he'd invented ASP.net, boy do i need some guidance!

          Comment


            #6
            Drop me a PM Lee and I'll see if I can help.
            Bill
            www.egyptianwonders.co.uk
            Text directoryWorldwide Actinic(TM) shops
            BC Ness Solutions Support services, custom software
            Registered Microsoft™ Partner (ISV)
            VoIP UK: 0131 208 0605
            Located: Alexandria, EGYPT

            Comment


              #7
              Thanks Bill, PM sent.

              Comment


                #8
                Wish he'd invented ASP.net
                I've managed to reach a ripe old age without depending on any Microsoft specific technology. Not going to start now
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment

                Working...
                X