Search results

  1. I

    URGENT question about php and mysql?

    Trying to connect a mysql database to a php page with this code: $db = mysql_connect("localhost","root",""); if (!$link) { die('Not connected : ' . mysql_error()); } but keep getting this error message: Not connected : A connection attempt failed because the connected party did not properly...
  2. I

    urgent question about php?

    I've written a php page which contains this line: echo "<a href=BookList.php>Book List</a><br>"; That line creates a working hyperlink to BookList.php, another php page. BookList.php contains php as well, but that php doesn't seem to be working. The following code: <html> <head> <title>...
  3. I

    URGENT question about php and mysql?

    Can't connect mySQL and php - keep getting error message 2002 and this text "Warning: mysql_connect(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in G:\UniServer\www\LoginPage2.php on line 15 Warning: mysql_connect(): A...
  4. I

    URGENT question about php?

    I have two php pages. One has a variable called txtUsername, the value of which is set by the user by entering a value in a textbox. Then the user clicks Submit and goes to another page, with txtUsername carrying over. However, when i try to write php code in the 2nd page using txt Username, the...
  5. I

    A question about html or php?

    I have a page where you enter a username and password, then click a submit button to submit the password/username and go to the next page. The address of the new page ends up something like this: http://localhost/LoginPage2.php? txtUsername=hhh&txtPassword=ggg&btnLogin=Login. Now i don't want...
  6. I

    Urgent question about MySql and php?

    Making a php page linked to a mySql database, but keep getting these error messages and codes: When i enter no password in the password space I get these: Not connected : Access denied for user 'root'@'localhost' (using password: NO) 1045 When i enter any password other than root: Not...
  7. I

    A question about html or php?

    I have a page where you enter a username and password, then click a submit button to submit the password/username and go to the next page. The address of the new page ends up something like this: http://localhost/LoginPage2.php? txtUsername=hhh&txtPassword=ggg&btnLogin=Login. Now i don't want...
  8. I

    Is there a html command to create a button or hyperlink that will display the

    source code? I'm creating a webpage and want a command that will create a button/hyperlink to display source code - can be html or php
  9. I

    URGENT question about php?

    Ok, I'm using php and mysql. I have the mysql table and the php page connected and I'm trying to run this query: $query="SELECT * FROM users WHERE ID = $username AND Password = $password"; The aim is to search the table users for cases where ID matches with a variable called $username, and where...
  10. I

    URGENT question about php and mysql?

    Trying to connect a mysql database to a php page with this code: $db = mysql_connect("localhost","root",""); if (!$link) { die('Not connected : ' . mysql_error()); } but keep getting this error message: Not connected : A connection attempt failed because the connected party did not properly...
  11. I

    URGENT question about php and mysql?

    Trying to connect a mysql database to a php page with this code: $db = mysql_connect("localhost","root",""); if (!$link) { die('Not connected : ' . mysql_error()); } but keep getting this error message: Not connected : A connection attempt failed because the connected party did not properly...
  12. I

    question about php URGENT!?

    I'm using php and mysql tables. a php page and mysql are connected. The query is in a variable, using this line: $query = "select * from users"; When the computer reaches the line above, does it count as a run query, or does something have to be done with $query once it's set to run the query...
  13. I

    Question about php URGENT!?

    I'm using php. enter a query in $query, then enter line below: $result=mysql_query($query); i assume the result of the query is stored in $result, but how do i then access that data?
  14. I

    a question about php?

    if(txtUsername = "t") { echo("t"); } The above code is a bit of php code, which is supposed to make the letter t appear when txtUsername is t. Trouble is, t isn't appearing even when txtUsername IS t. Why isn't this code working?
Back
Top