View Single Post
Old 04-07-2004, 02:49 AM   #6 (permalink)
MrFlux
Fluxing wildly...
 
MrFlux's Avatar
 
Location: Auckland, New Zealand
Quote:
Originally posted by JohnnyRoyale

2. A way for PHP to get to the data. This means creating ODBC connections. Then, you'll need to code so your PHP to get access to read/write to the database files. I'd recommend doing this in a include file as a separate procedure, so that you can do includes on your working PHP pages, rather than rewriting every time.
Actually you don't need to do anything with ODBC for getting php to work with mysql, it has native mysql connectivity.

See cliche's post. The best PHP site is.... www.php.net. Most of the functions will have tutorials and user comments, read 'em.
Look up these mysql functions in the function list:
mysql_connect
mysql_select_db
mysql_query
mysql_fetch_array/row/assoc

If you don't know anything about SQL, you'll have to read up on that as well (mysql.com would probably be the best place)

phpMyAdmin is probably the way to go for creating your database structure.
__________________
flux (n.)
Medicine. The discharge of large quantities of fluid material from the body, especially the discharge of watery feces from the intestines.
MrFlux is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76