Results 1 to 21 of 21

Thread: PHP PROBLEM, With MYSQL and EVERYTHING

  1. #1

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    PHP PROBLEM, With MYSQL and EVERYTHING

    this stuff makes about as much sense as that smillely. Does anyone have any good recommendations as to where is a good place to start. It seems like SO MUCH to take in! Should I buy a book? I dont know...
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    php.net tutorial
    PHP/MySQL tutorial

    That's pretty much the exact path I took.

    Understand that MySQL is a common database system and PHP provides an integration layer with it, that is implemented on just about all webservers running PHP.

    If you want to see an example of how they work together on your own computer, check out xampp. It is a very neat and easy to install development web server which includes PHP 5 and MySQL 4.

  3. #3

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    thanks these are way better than the ones I have been looking at. Much simpler!
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  4. #4

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    http://www.freewebmasterhelp.com/tutorials/phpmysql/2
    This is what im trying to do, I am a little confused though, I cant get mysql to work... I dont know if the PHP it is talking about is for in the mysql or on a webpage? I am stuck! My site does support everything, I am using PHP my admin... and help would be appreciated!
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Oh yes. Ignore that part. Set up your database and tables through phpMyAdmin, it's easier.

    Unless you're building a portable PHP application, there's not really any need to create a database through PHP, unless you have no other way.

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Quote Originally Posted by penagate
    I wouldn't recommend that tutorial. They have escaped none of their variables, never check that calls to mysql_query() are successfull, use <? ?> instead of <?php ?> to embed script and worst of all, none of their code is indented.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    I pretty much just skimmed through it to get the gist of how it worked, without really noticing those details.

    There are a lot of those tutorials but I don't know any outstanding ones. Maybe one of us should write one and chuck it in the Utilitybank/Tutorials here.

  8. #8

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Quote Originally Posted by penagate
    Oh yes. Ignore that part. Set up your database and tables through phpMyAdmin, it's easier.

    Unless you're building a portable PHP application, there's not really any need to create a database through PHP, unless you have no other way.
    It has to be portable... Being that it is a resturant and we sometimes get new items or the prices change...
    So basically can I set up or do I set up the database right from the web page? Or ok scratch that.... Well I dont know

    Ok maybe I can initally set up all the fields with php admin. But then I will need the web site to access these values, and displlay things according to what is in the database. I will need a software program in vb on the resturant end, that will have access to the database too and be able to change things, such as to tell the database if we are out of stock...


    And if you dont recommend that tutorial, which one do you...?
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  9. #9

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    http://questfor3d.com/phptest.php
    look at the error there, what am I doing wrong, you can view the source...

    EDIT: ok now it i guess is trying to connect correctly, but it says access denied, any ideas?
    Last edited by damasterjo; Apr 30th, 2006 at 08:43 AM.
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  10. #10
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    The errors means that PHP is have problems connecting to the MySQL server, make sure that you have MySQL running on the server. For more info check out:
    http://dev.mysql.com/doc/refman/5.0/...to-server.html

    Or if you don't have access ask your hosting company.

  11. #11

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Quote Originally Posted by john tindell

    Or if you don't have access ask your hosting company.
    I did They brought me to a great help page. I could not use the localserver, I had to specify, but now the access is denied dont know why...
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  12. #12
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Quote Originally Posted by damasterjo
    It has to be portable... Being that it is a resturant and we sometimes get new items or the prices change...
    Portable means the application can be deployed on multiple web servers. I got the impression that wasn't the case.

  13. #13

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Quote Originally Posted by penagate
    Portable means the application can be deployed on multiple web servers. I got the impression that wasn't the case.
    Ok whatever, Im so confussed And why am I denied access to my own database
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  14. #14
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    ok one step at a time. You need to make sure you are using the right username and password. This may be differnet from the set you use to FTP to your hosting. If you are 100% you're using the right set then badger your host until they change the permissions on your MySQL User so you have access.

  15. #15

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    http://questfor3d.com/phptest.php
    getting farther... talking to godaddy about it... there arent helping too much though
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  16. #16

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    http://questfor3d.com/phptest.php
    YES!!!!! NO ERRORS!

    I just found out that godaddy does not support remote access, does this mean I cant access the database from a vb program?
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  17. #17
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Yes, basically, there are loads of reasons why they don't allow remote access, search the forum and visualAd pointed out loads.

    How ever if you want a MySQL database to test VB apps on then there was a guy who offered a free MySQL database with remote access for testing apps, but it was very limited.

  18. #18

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    i asked this before, but then can i print straight from the site? on our computers, or could I email something, and have the program recognize it then print?
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  19. #19
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    What is it that you want to print, and do you want to print it instantly? You could write a program that querys a PHP page, which provides the infromation that needs to be printed. So the PHP would generate an XML file with all the information in and your program would parse that and print the correct information.

  20. #20

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    i need to print an order that the person submited...

    XML? what you said sounds like what I would like to accomplish, and yes it NEEDS to be as instant as it can get. Time is on the line... So I dont know anything about xml or nothing. So help for that would be great...
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  21. #21
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: PHP PROBLEM, With MYSQL and EVERYTHING

    Well as far as time goes you can just set the the program to check for updates as often as you want, 30secs, 1 minute, 3 minutes etc.

    What language are you using to write the program? Because you could use web services with PHP as a way of communicating with the website and the program.

    If you don't then you could just use standard HTTP requests to manage state of the data request.

    Basically XML is just a way of handling data. There are classes that can be used from PHP will generate the XML from your data which can be parsed by your applicaiton later.

    http://us3.php.net/manual/en/ref.xml.php is a good place to start for generating the XML from PHP.

    http://www.w3schools.com/xml/ is a good tutorial for getting to know XML.

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