HighDots Forums  

php repeat region

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss php repeat region in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Blackwell
 
Posts: n/a

Default php repeat region - 07-19-2003 , 11:07 PM






Hey guys, question about PHP, I'm trying to help out a friend but I don't
really know anything about php.

I'm also pretty amaturish at asp. I know how to read/write to an access db
etc. Basically, I know the first half of the UD 1.0 manual inside out.

What I would actually like to learn though is how to connect to a dbase in
php...

From what I understand, I can create an odbc connection to mysql dbase. And
I was wondering if that would be similar to how I'd do it in DW when I'm
connecting to an mdb using asp classic?




Reply With Quote
  #2  
Old   
Robert Blackwell
 
Posts: n/a

Default Re: php repeat region - 07-20-2003 , 01:43 AM






Oops, sorry for mistitleing my topic



Reply With Quote
  #3  
Old   
Phunchak
 
Posts: n/a

Default Re: php repeat region - 07-20-2003 , 03:29 AM



All you need to connect is to add this to a php page.

// connect to database
$connection = mysql_connect("localhost", "adminusername", "adminpass") or
die("Invalid server or user");
// select database
mysql_select_db("DBNAME",$connection);

Usually you can leave localhost but just substitute

adminusername
adminpass
DBNAME

with your own values.


"Robert Blackwell" <robbie (AT) wowcentral (DOT) com> wrote

Quote:
Hey guys, question about PHP, I'm trying to help out a friend but I don't
really know anything about php.

I'm also pretty amaturish at asp. I know how to read/write to an access db
etc. Basically, I know the first half of the UD 1.0 manual inside out.

What I would actually like to learn though is how to connect to a dbase in
php...

From what I understand, I can create an odbc connection to mysql dbase.
And
I was wondering if that would be similar to how I'd do it in DW when I'm
connecting to an mdb using asp classic?






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.