We're a friendly, industry-focused discussion community of 1M+ developers and IT professionals learning and sharing knowledge. Ask us a question …

Member Avatar
Hi, i would like to ask if i reinstall my Windows 7, does the product Id & License key change also??I'm not really familiar with software. ^_^ Article by Jessica_16 in Hardware and Software
Member Avatar
Hi, i would like to ask if i reinstall my Windows 7, does the product Id & License key change also??I'm not really familiar with software. ^_^ Article by Jessica_16 in Hardware and Software
Member Avatar
Replied To a Post in Reinstall my Windows 7
Hi, i would like to ask if i reinstall my Windows 7, does the product Id & License key change also??I'm not really familiar with software. ^_^ First Post in Article by Jessica_16 in Hardware and Software
Member Avatar
HELP!!! No beep on my motherboard when i remove the RAM & HDD, i tried another RAM & HDD from another computer but still not working. I checked the RAM & HDD if its working on another, it works, i replace the wires(SATA especially) but nothing change,i also replace the … Article by Jessica_16 in Hardware
Member Avatar
HELP!!! No beep on my motherboard when i remove the RAM & HDD, i tried another RAM & HDD from another computer but still not working. I checked the RAM & HDD if its working on another, it works, i replace the wires(SATA especially) but nothing change,i also replace the … Article by Jessica_16 in Hardware
Member Avatar
HELP!!! No beep on my motherboard when i remove the RAM & HDD, i tried another RAM & HDD from another computer but still not working. I checked the RAM & HDD if its working on another, it works, i replace the wires(SATA especially) but nothing change,i also replace the … First Post in Article by Jessica_16 in Hardware
Member Avatar
$sql = "SELECT doc FROM file_loc where file_id='1'"; while($results = mysql_query("$sql") or die("Invalid query: " . mysql_error()); { // set the header for the image header('Content-type: application/pdf'); header('Content-Disposition: inline; filename = "' .$results . '"'); header('Content-Transfer-Encoding: binary'); if (isset($results)) { $pdf = new FPDI(); // get the page count $pageCount … Article by chandnee in Web Development
Member Avatar
$sql = "SELECT doc FROM file_loc where file_id='1'"; while($results = mysql_query("$sql") or die("Invalid query: " . mysql_error()); { // set the header for the image header('Content-type: application/pdf'); header('Content-Disposition: inline; filename = "' .$results . '"'); header('Content-Transfer-Encoding: binary'); if (isset($results)) { $pdf = new FPDI(); // get the page count $pageCount … Article by chandnee in Web Development
Below: $result = mysql_query($sql) or die('Invalid query: ' . mysql_error()); if ($results && $row = mysql_fetch_assoc($results)) You use `$result` and `$results` - use one or the other.
Member Avatar
-3 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
ok thx i soved this problem, some mistype was there .....i post correct code here. <?php include "conn.php"; if ($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'user', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'pass', FILTER_SANITIZE_SPECIAL_CHARS); $sql = "SELECT * FROM admintb WHERE username ='$username' and password='$password'"; $result = $conn->query($sql); if ($result->num_rows > 0) …
Member Avatar
Joined the Community
Member Avatar
3,065 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
You must first ascertain whether you have a successful query or not. If so, use your code, if not, check what the problem is (my one-liner).
Member Avatar
3,065 Replied To a Post in ajax response data problem
Sir I have these codes <script> function myCall() { var data = $("#datepicker-13").val(); alert(data) var request = $.ajax({ url: "ajax_arrival.php", type: "Get", data: { "date": data }, dataType: "html" }); request.done(function(msg) { msg = data.split("##"); $("#wh_bg1").val(msg[0]); $("#wh_jt1").val(msg[1]); $("#wh_wt1").val(msg[2]); // alert(msg); }); request.fail(function(jqXHR, textStatus) { alert("Request failed: " + textStatus); }); … Article by phphp in Web Development
php
BTW: $query ="SELECT qty,jute,weight FROM arrival where date= '$date.'"; Looks wrong as it has a period at the end. Also, ensure that you sanitize `$date` or you will be open to SQL injections. Ideally, you'd use a prepared statement. See my tute: https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php - points #2 and #4. Your html …
Member Avatar
-3 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
then what can i use instead of $result->num_rows > 0 Please guide me in detail ....
Member Avatar
3,065 Began Watching
Sir I have these codes <script> function myCall() { var data = $("#datepicker-13").val(); alert(data) var request = $.ajax({ url: "ajax_arrival.php", type: "Get", data: { "date": data }, dataType: "html" }); request.done(function(msg) { msg = data.split("##"); $("#wh_bg1").val(msg[0]); $("#wh_jt1").val(msg[1]); $("#wh_wt1").val(msg[2]); // alert(msg); }); request.fail(function(jqXHR, textStatus) { alert("Request failed: " + textStatus); }); … Article by phphp in Web Development
php
Member Avatar
3,065 Replied To a Post in ajax response data problem
Sir I have these codes <script> function myCall() { var data = $("#datepicker-13").val(); alert(data) var request = $.ajax({ url: "ajax_arrival.php", type: "Get", data: { "date": data }, dataType: "html" }); request.done(function(msg) { msg = data.split("##"); $("#wh_bg1").val(msg[0]); $("#wh_jt1").val(msg[1]); $("#wh_wt1").val(msg[2]); // alert(msg); }); request.fail(function(jqXHR, textStatus) { alert("Request failed: " + textStatus); }); … Article by phphp in Web Development
php
Firstly, you do not have to concatenate and split the php output - use `json_encode` on an array of items. Secondly, js cannot pass data to php within the same page - php is done and only then is js run. So: if ($result){ $row = mysqli_fetch_array($result); $msg = ["qty"=>$row['qty'],"jute"=>$row['jute'],"weight"=>$row['weight']]; …
Member Avatar
3,065 Began Watching
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
Member Avatar
3,065 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
From: http://php.net/manual/en/mysqli.query.php >Returns FALSE on failure. For successful SELECT, SHOW, DESCRIBE or EXPLAIN queries mysqli_query() will return a mysqli_result object. For other successful queries mysqli_query() will return TRUE. Seems you are getting **FALSE** as `$result` is not an object. You can always check the last error : if(!$result) printf("Errormessage: %s\n", …
Member Avatar
Joined the Community
Member Avatar
-3 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
Line No 11 if ($result->num_rows > 0)
Member Avatar
1,895 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
> with below code i always receive error " Trying to get property of non-object in " What line exactly?
Member Avatar
-3 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
yes , with below code i always receive error " Trying to get property of non-object in " <?php include "conn.php"; if ($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); $sql = "SELECT * FROM admintb WHERE username = '$username' and passcode = '$password'"; $result …
Member Avatar
Joined the Community
Member Avatar
1,655 Edited
Looking for advice on how to promote my wedding officiant website so it will rank in the search results. Can someone take a look and advise? Thanks Article by Wendy_5 in Search Engine Strategies
Member Avatar
1,078 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
Hi, can you describe the problem?
Member Avatar
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
Member Avatar
Joined the Community
Member Avatar
-3 Liked / Shared
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
Member Avatar
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
Member Avatar
-3 Began Watching
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … Article by zebnoon1 in Web Development
Member Avatar
-3 Replied To a Post in PHP login Form
hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); … First Post in Article by zebnoon1 in Web Development