Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: LWolf
  • Order by date
  1. LWolf

    First website

    I am setting up my first server and cannot figure out why I get "NOT FOUND. The requested URL /Mysite/login.php was not found on this server." I have the Mysite folder with 755 permissions along w/the same login.php permissions. I also have a virtual server for the folder setup and is located...
  2. LWolf

    Syntax?

    Oh crap....disregard!! It was a copy and paste error!
  3. LWolf

    Syntax?

    ...the issue altogether and got through that section. However now the results are not showing correct. For example... $qTh = $pdo->prepare("SELECT * FROM Requests WHERE idEmployees = $id AND rDate = '$rThu'"); $qTh->execute(); echo "SELECT * FROM Requests WHERE idEmployees = $id AND rDate =...
  4. LWolf

    Syntax?

    I can remove the rDate = $rMon from the string and it does not throw an error. So if there is a value for $rMon (2015-10-05) is this not an issue of converting this string to a date (which is what the database field is)?
  5. LWolf

    Syntax?

    ...$id == 14 (pulled from the recordset) Both $rMon and $id get displayed to the screen and neither are fields in the database. 327 echo "SELECT * FROM `Requests` WHERE idEmployees = $id AND rDate = '$rMon'"; ...prints out this error "Catchable fatal error: Object of class PDOStatement could...
  6. LWolf

    Syntax?

    As you can see from 3 posts prior the variables are being pulled. This nested loop will iterate 7 times for the same $id.
  7. LWolf

    Syntax?

    Line 327... 327 echo "SELECT * FROM `Requests` WHERE idEmployees = $id AND rDate = '$rMon'"; That is the line I am using to error trap the code beneath it... 328 //$qMon = $pdo->prepare("SELECT * FROM `Requests` WHERE idEmployees = $id and rDate = '$rMon'"); 329 //$qMon->execute();
  8. LWolf

    Syntax?

    ...sql string then the error. Oddly it appears that it is after the first iteration leading me to think that it is now the 2nd iteration. SELECT * FROM `Requests` WHERE idEmployees = 14 AND rDate = '2015-09-07' Catchable fatal error: Object of class PDOStatement could not be converted to...
  9. LWolf

    Syntax?

    ...the department giving me 3 iterations through the loop. The above string stops that loop given only 1 iteration. This is odd because echo "SELECT * FROM `Requests` WHERE idEmployees = $id AND rDate = '$rMon'" is simply echoing a string. Why is the code stopping the iteration? This "echo"...
  10. LWolf

    Syntax?

    ...The question I have is does this code have a syntax error because I cannot determine the issue even when just displaying a string. echo "SELECT * FROM `Requests` WHERE idEmployees = $id AND rDate = '$rMon'"; // bombs out // above line displays this... SELECT * FROM `Requests` WHERE...
  11. LWolf

    Can't get session variable

    That fixed it. I did not know you needed that on each page. Thank you.
  12. LWolf

    Can't get session variable

    This is my first time using session variables and I thought they are accessible throughout the site if they are set. I set my $_SESSION['user'] on my login page and but cannot read it once it gets to the next main page. The program is not throwing any errors. Login_chk.php...
  13. LWolf

    IE not compatible

    It was late when i was designing the section. If i change names will my code work in IE? Or do i have to change the code also? What i have works in Firefox.
  14. LWolf

    IE not compatible

    I nvr use IE and do not know where the issue is coming in. The code I have all uses variable variables for form names. For example I have the user id followed by an "_" followed by something like hMon. The result is "1_hMon". When the onclick triggers the code will calculate the hours. This...
  15. LWolf

    Delete not working

    ...to get the recordset, nothing is coming back from the db. I removed both params and still get no results with... $ps2 = $pdo->prepare("SELECT * FROM Schedule2"); $ps2->execute(); $results = $ps2->rowCount(); echo "RESULTS=" . $ps2->rowCount(); There is currently 1 record in there. Why...
  16. LWolf

    Delete not working

    I have tried about 15 different ways to delete a record yet this code does not delete but also does not throw an error. if ($_GET['pg']=="staff" && $_GET['rec']=="x_del"){ $id_to_delete = $_GET['id']; $sql = "DELETE FROM `Employees` WHERE `idEmployees` = :idEmployees"; $stmt =...
  17. LWolf

    Page blanks after simple elseif

    Yep...I gotta stop programming late at night! My last post I discovered that the problem was in my db_include_local.php file. I forgot to remove the "_local". Thanks for the post, it reminded me of this!
  18. LWolf

    Page blanks after simple elseif

    ...this error when running it from the host... "Fatal error: Call to a member function prepare() on a non-object in..." The code line that it is referencing is... $rows= $pdo->query("Select * From Employees"); Is there a setting on the host or does this line act differently when not run...
  19. LWolf

    Page blanks after simple elseif

    It does. if () { do things... } elseif () { screen goes blank }
  20. LWolf

    Page blanks after simple elseif

    My page is doing both view/edit with record maintenance at the top. Everything was fine until I started the edit section. I have basic code to set select boxes but that was it. I put in the main code and the screen goes blank. So I stripped it down to a basic elseif statement. The page...

Part and Inventory Search

Back
Top