Hi,
I am building a website for my school teams (football, basketball, swim) & Gym.
Database and Tables for respective users have already been created with their usernames and passwords stored in a different database (named "regime") than Drupal (same server though). Usernames and passwords for these tables are exactly same as those in drupal.users table to avoid confusion.
QUESTION: Once a user logs in ( e.g. Alex) to Drupal he must see a table which contains information imported from regime.swim_alex .
Is there a module to to this, or do I need to learn PhP programming?
So, the script that I need is,
#####
Access the MySQL table associated with a particular user, with the username and password used for his login.
#####
He must be able to edit, delete, view his table. (He fills his training regime in that table)
He has the necessary permissions to do the above.
Thanks in advance. This forum has motivated a PhPphoebic like me to get started with a website.
UPDATE: DAMN. Never thought it would be so easy. Apparently, copypasta-ing php code to front page runs the code itself. How f(*&ing cool. I used following code,
<?php
$db="mydatabase";
$link = mysql_connect("localhost");
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db($db , $link)
or die("Couldn't open $db: ".mysql_error());