Closed Thread
Results 1 to 2 of 2

Thread: Database not working

  1. #1
    matchu is offline x10Hosting Member matchu is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    12

    Database not working

    Hey,

    Why can't I run mySQL queries?

    PHP Code:
    <?php
    mysql_query
    ('SELECT * FROM table WHERE 1=1');
    ?>
    It gives an error about the database not being connected. What's with that?

    EDIT: Aheh. Including mysql_connect() may have helped >_< Thanks anyways.
    Last edited by matchu; 10-06-2008 at 12:02 PM.

  2. #2
    Dan's Avatar
    Dan
    Dan is offline
    Lord Of The Keys Dan is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    UK
    Posts
    1,258

    Re: Database not working

    Seems you found out yourself then

    *CLOSED*
    Thanks,
    Dan
    _______________
    Retired Staff

Closed Thread

Similar Threads

  1. How to create MySQL database and user
    By Jesse in forum Tutorials
    Replies: 11
    Last Post: 06-04-2008, 12:25 PM
  2. Vbulletin help
    By Pills1221 in forum Scripts & 3rd Party Apps
    Replies: 12
    Last Post: 06-02-2008, 02:31 PM
  3. how to install vb pls help?
    By davidk in forum Programming Help
    Replies: 8
    Last Post: 05-12-2008, 05:36 PM
  4. can't create database, weird. help!
    By snuffle4 in forum Programming Help
    Replies: 3
    Last Post: 02-01-2008, 06:48 PM
  5. MYSQL database
    By cabte in forum Free Hosting
    Replies: 4
    Last Post: 10-06-2007, 06:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers