Jump to content
Larry Ullman's Book Forums

Search the Community

Showing results for tags 'php access to database'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Single Editions
    • Modern Javascript: Develop and Design
    • The Yii Book
    • Effortless Flex 4 Development
    • Building a Web Site with Ajax: Visual QuickProject
    • Ruby: Visual QuickStart Guide
    • C++ Programming: Visual QuickStart Guide
    • C Programming: Visual QuickStart Guide
    • Adobe AIR: Visual QuickPro Guide
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
    • PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (1st Edition)
  • PHP for the Web: Visual QuickStart Guide
    • PHP for the Web: Visual QuickStart Guide (5th Edition)
    • PHP for the Web: Visual QuickStart Guide (4th Edition)
    • PHP for the Web: Visual QuickStart Guide (3rd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (2nd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (1st Edition)
  • Effortless E-commerce with PHP and MySQL
    • Effortless E-Commerce with PHP and MySQL (2nd Edition)
    • Effortless E-Commerce with PHP and MySQL
  • PHP Advanced: Visual QuickPro Guide
    • PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
    • PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
    • PHP Advanced: Visual QuickPro Guide
  • MySQL: Visual QuickStart Guide
    • MySQL: Visual QuickStart Guide (2nd Edition)
    • MySQL: Visual QuickStart Guide (1st Edition)
  • Other
    • Announcements
    • Newsletter, Blog, and Other Topics
    • Forum Issues
    • Social

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. Last week I purchased Mr. Ullman's "PHP and MySQL for Dynamic Web Sites" 4 edition. I have never tried working with php, nor mysql before. From my home, I have a stand-alone computer acting as a server. I am running Microsoft 2008 server on this computer. I also have Apache 2.2 running with no problems. I have installed "MySQL 5.6, and PHP 5.3.27, and again, no problems. I have a static ip address, and am hosting a small experimental website. I made the site with Dreamweaver. Wanting to try some script, I skipped ahead to Chapter 5, and experimented with some of the script. Using the "MYSQL Command line" lessons, I created a Database named "Bfdata." I then created a Table named "Members," with only two columns. The first column is named "username," and the second column is named "password." I then inserted 3 different users with the name of 1, 2, and 3 (those are the actual names I created for experimental sake) I gave each a password of xyzzyx123321 (that's the actual password for each one I created, also for experimental sake) I then went ahead to Chapter 9, and tried out the script 9.2 called "mysqli_connect.php" Try as I may, I couldn't get the file to communicate with the "mysql server." According to Mr. Ullman's tips, my php version might not support the "mysqli" function. So I searched the web and found a configuration that works good. The script reads as follows: <?php $link = mysql_connect('localhost' ,'john' , 'xyzzyx'); if (!$link) { die('could not connect: ' . mysql_error()); } echo 'connected successfully'; ?> My question is this: Obviously with the above script, I'm connecting to the Mysql server, but what I want the script to do, is not only successfully connect, but to then access the table called "members," and check for the "username" called 1 and check 1's password which is "xyzzyx123321," or "username 2, or 3 which also have the same password. Once the user name and password are successful , I'd like the script to pass the successful user on to a html page called upload that I made. Would someone write that script and either post it, or send it to my johninbellingham@hotmail.com email address. Thank you much, johnjwe
×
×
  • Create New...