What did I do wrong?

<?php $bd = mysql_connect("localhost", "david", "1111"); mysql_select_db("feikdom", $bd); $rezult = mysql_query(" SELECT title , meta_d , meta_q ,text FROM settings WHERE page = 'index' ", $db); $myrow = mysql_fetch_array($rezult); ?> 

I wanted to connect to the database and pull out the fields title , meta_d , meta_q , text . 'Displays such errors:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in Z:\home\Java.ru\www\index.php on line 4

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in Z:\home\Java.ru\www\index.php on line 5'

  • @ Kotlya The question title should reflect the essence of the problem and should not contain spelling errors. - Nicolas Chabanovsky

1 answer 1

$ bd and $ db are different variables :)

  • one
    I love u ! - Kotlya
  • 2
    To the left of the answer there is a tick "I love." Please tick. =) - ling
  • one
    Hahahahahahahahaha, and @ Kotlya girl or boy? - Artem