Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
PHP Block with database connection - how?
  • Posted: 02.02.2003, 17:59
     
    merryel
    rank:
    Freshman Freshman
    registered:
     January 2003
    Status:
    offline
    last visit:
    25.09.03
    Posts:
    14
    I've seen a couple of posts on this with the search function, but sadly no answers.

    I am running a small mailing list thing, and want to have a signup in a block on the main page to allow people to just enter their email and click a button.

    So how can you put PHP that connects and writes to the database in a block or otherwise display it?

    You help is much appreciated!
  • Posted: 02.02.2003, 18:09
     
    jeanloui
    rank:
    Helper Helper
    registered:
     October 2002
    Status:
    offline
    last visit:
    18.02.06
    Posts:
    109
    Hi, I use a Newsletter called ppnews (Idon't remember wher I get it from .-(

    Yo can see it running at the upper right side on

    http://80.32.32.122/~lets/html/index.php

    Is that -or like- what you where asking for?

    regards
  • Posted: 03.02.2003, 03:01
     
    merryel
    rank:
    Freshman Freshman
    registered:
     January 2003
    Status:
    offline
    last visit:
    25.09.03
    Posts:
    14
    I think you misunderstand the question ...I already have a mailing list prog, a little script a friend wrote. What I want is to be able to place the PHP signup script that needs to talk to the database in a block. Is this possible?
  • Posted: 03.02.2003, 04:43
     
    jeanloui
    rank:
    Helper Helper
    registered:
     October 2002
    Status:
    offline
    last visit:
    18.02.06
    Posts:
    109
    Excuse me. If you have got the app, perhaps ask your friend...

    Does this mail list store data? or picks data from pn_users?

    And BTW, what this mail list do that a public module like ppnews does not, and how do you integrate your script into PN?

    Perhaps from a misfunction or misunderstanding, we can discover some progress...

    regards
  • Posted: 03.02.2003, 06:41
     
    merryel
    rank:
    Freshman Freshman
    registered:
     January 2003
    Status:
    offline
    last visit:
    25.09.03
    Posts:
    14
    I'll rephrase ...forget all the previous stuff, I'm using a particular mailing list because that's what I want to use.

    Does anyone know a way to display a PHP script that connects to the database in a block or otherwise on the main page (news)?

    Thank you :).
  • Posted: 03.02.2003, 07:04
     
    jeanloui
    rank:
    Helper Helper
    registered:
     October 2002
    Status:
    offline
    last visit:
    18.02.06
    Posts:
    109
    http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=6731

    or (in French)

    http://www.postnuke-france.org/modules.php?op=modload&name=XForum&file=viewthread&tid=1114#pid

    hope it helps :wink:

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula