Results 1 to 14 of 14

Thread: function.. [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    philippines
    Posts
    245

    Resolved function.. [RESOLVED]

    i am trying to create a function.. but i don't know how to use it.. a procedure(as in VB) but how?

    I don't want it to be in a different file...

    PHP Code:
    <html>
    <head>sample</head>
    <body>
           *********** how will i use dbconnect in here **********
    </body>
    </html>
    <?php function dbconnect($host,$user,$password)
    $conn mysql_connect($host$user$password
    or die (
    "Could Not Connect to DB"); 
    ?>
    a sample of function and procedure and how to use it will be excellent.. sorry just started PHP yesterday.. hope you guys can help me..
    Last edited by titan7262; Sep 12th, 2005 at 02:16 AM.

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