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 strongm 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
  • Content: Threads
  • 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?

    I am trying to grab records from a 'Requests' table by a date using an $id and $rDate variables. When the code is commented out the program works normally without grabbing the records. The problem is once the code, even just echoing a string, stops the display halfway through another loop...
  3. 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...
  4. 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...
  5. 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 =...
  6. 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...
  7. LWolf

    Retrieve/Dispaly data

    I give up. I have been reading tons of webpages and cannot figure out why this is not returning any results. I know the data is there, punctuation is correct for the query, the connection works, etc. There are no errors, just no data. Pls help.... $pdo = new PDO("mysql:host=$hostname...
  8. LWolf

    Image change on Rollover

    I understand this is more of a css/javascript thing but I need a little help here. I have created a css button that I have added an icon image to that is an inactive version. When I hover I want the image to change to the color version. After searching the internet what I have found is not...
  9. LWolf

    Image change on Rollover

    I understand this is more of a css/javascript thing but I need a little help here. I have created a css button that I have added an icon image to that is an inactive version. When I hover I want the image to change to the color version. After searching the internet what I have found is not...
  10. LWolf

    Simple insert not working

    I am putting a simple page together for friends to add their name to my super bowl party. The insert is not working. The insert line echo's this... INSERT INTO peeps(pname, pcnt, dish) VALUES('Raquel', 1, 'Brownies') There are 4 variables passed: rec (to determine if it needs to add a rec)...
  11. LWolf

    Cookie not setting

    I have done the research on setting a cookie and I cannot get it to set... First I tried the data I needed... if (isset($_POST['slocation'])!=""){ setcookie("slocation", $_POST['slocation'], time()+60*60*24*365*10;); echo "SLOCATION=" . $_POST['slocation'] . "<br>"; //used to see...
  12. LWolf

    Shopping Cart

    I am trying to build a shopping cart into my application but all the applications I have found seem to be leaving out how the cart array works. I have found a ton of examples about product and adding, subtracting or emptying. But for someone learning php this is a little frustrating. Does...
  13. LWolf

    Retrieving Data

    I have a basic table where I am trying to retrieve records that are filtered by a form request. Here is the code I have... $ps = $pdo->prepare("SELECT * FROM `Products` Where `Vendor` LIKE '%?%'"); $ps->execute(array($_POST['Vendor']));; echo "post=" . $_POST['vendor']; ////Displays correct...
  14. LWolf

    Passing apostrophe in form

    I have a problem passing an ' in a select option. The database values have the ' so I need to pass it but the value that gets passed stops after the apostrophe. For example... My code is... <option value="Mac's">Mac's</option> The page is...<option value='Mac's'>Mac's</option> So when I...
  15. LWolf

    PHP data connection

    Still the noob... Why does this code bomb out? $data = mysql_query("SELECT * FROM users WHERE username=" . $_REQUEST["username"]) or $data = mysql_query("SELECT * FROM users WHERE username= $_REQUEST["username"]) I having been playing with this all afternoon and not getting anywhere...
  16. LWolf

    php and request

    I am new to php and am just trying to display a username that was posted in a form. <?php echo $_Request ["username"] ?> I get no response. What am I doing wrong? THanks. K
  17. LWolf

    Sudden Server Error

    I have a server that has been in use for over a year when all of a sudden I am getting this error... Server Error in '/MyFolder' Application. This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension...
  18. LWolf

    DB Connection

    Hi all, I am new to VBA and am having trouble creating a connection to the db I am working in. I found some code but is giving me a "User-Defined type not defined" on the first line. My guess is I will get it also on the second line. What am I doing wrong? I need to loop through a table and...

Part and Inventory Search

Back
Top