Sorrow Posted November 23, 2006 Share Posted November 23, 2006 Ok here's the deal I have this code [code]<?php$Valeur = $_Post["Username"];$con = mysql_connect("localhost", "db_user", "db_pass") or die(mysql_error());mysql_select_db("db_name", $con);$result = mysql_query("SELECT * FROM Usagers WHERE Username = '". $Valeur . "'" );[/code]When I replace this part ( '". $Valeur . "'" ) by the value of a username in my database it is working all the infos i am asking i have them but when i go from the login page and try to send the value to : $_Post["Username"] their is nothing that shows up. And yes all the fields are name the same. Quote Link to comment https://forums.phpfreaks.com/topic/28276-query-not-working/ Share on other sites More sharing options...
Barand Posted November 23, 2006 Share Posted November 23, 2006 $_Post should be $_POST (case sensitive) Quote Link to comment https://forums.phpfreaks.com/topic/28276-query-not-working/#findComment-129295 Share on other sites More sharing options...
Sorrow Posted November 23, 2006 Author Share Posted November 23, 2006 already checked this Quote Link to comment https://forums.phpfreaks.com/topic/28276-query-not-working/#findComment-129296 Share on other sites More sharing options...
wildteen88 Posted November 24, 2006 Share Posted November 24, 2006 What is you forms submit method? This is defined in the form tag via the method attribute.Also little confused about your last post. What do you mean [b]already checked this[/b].$Valeur = $_Post["Username"]; should be $Valeur = $_POST["Username"]; Quote Link to comment https://forums.phpfreaks.com/topic/28276-query-not-working/#findComment-129697 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.