39,316 Topics

Member Avatar for
Member Avatar for Hijran

<?php session_start(); $user=$_POST['uname']; $_SESSION['username']=$user; $con=mysql_connect("localhost","root",""); mysql_select_db("airline")or die("Db error"); $username=$_POST['uname']; $password=$_POST['ptxt']; $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $query = mysql_query("select * from user where password='$password' AND name='$username'"); if( $username == 1 && $password == 1); header("Location:/user.php"); ?> plz help me ? :(

Member Avatar for Hijran
0
153
Member Avatar for JasonWung

Currently I have form with couple of fields and field for image. I have done with the part of field storing but don't know exactly how to store image path with PDO and can't find good tutorial. All I found was how to store image into DB instead of path. …

Member Avatar for diafol
0
968
Member Avatar for olawole.famakin

hello i am trying implement a multi search query using an example i found online, http://www.w3schools.com/php/php_ajax_database.asp although the example on this page is a single query and makes use of a select menu, i have edited the code to make use of it using a textfield, and it works perfectly, …

Member Avatar for broj1
0
361
Member Avatar for marifard

Hi I have three pages to upload an image or another type of work for particular client. One of these pages are to show the uploaded files if i uploaded before and it called clientwork.php, the second page is called nework.php, this is a form page to choose the new …

Member Avatar for marifard
0
286
Member Avatar for ravi142

Hello, In attachment image so i want to make Tree as output of PDF. i have built it but not exact. so can you make it some help if you know. Thank You.

Member Avatar for broj1
0
218
Member Avatar for davy_yg

Hello, I am trying to understand how to create this website template that I still do not understand how to do it. I am trying to create a elearning website template: There are several box that consist of the picture & name of class classification such as chemistry, history, etc. …

Member Avatar for toxicandy
0
102
Member Avatar for ahabanhbao

Hi. I'm new in PHP Mysql , please help me with this situation : i had this php code <form action="insert.php" method="post"> Check locked backdoor<br /> <input type="checkbox" name="Check[]" value="A" />Yes <input type="checkbox" name="Check[]" value="B" />No <br /> Laptops handover monitor<br /> <input type="checkbox" name="Check[]" value="A" />Yes <input type="checkbox" name="Check[]" …

Member Avatar for toxicandy
0
2K
Member Avatar for Naren arora
Member Avatar for yuri1000

I am new here to get answers for my issues, hoping for your kind advice. Thanks in advance. I have written a HTTP API to send SMS using curl. Everything is working fine, except I am failing to loop and post curl for certain phone numbers. For example: User uploads …

Member Avatar for pritaeas
0
305
Member Avatar for tibor.marias

Dear Readers, I have a simple HTML form pointing to a PHP (<form action="xy.php" method="post">), and if I type http:// into an input of the form, it won't run. If I type anything else the form runs. How can I solve this? Maybe somewhere it is interfering with another http:// …

Member Avatar for diafol
0
292
Member Avatar for JasonWung

Hi, I have admin panel where I have one admin ( super admin ) which has full permission to all section of the website, database queries .. etc. Now I want to create another admin (member) whit less permissions and to have access to few pages. I don't know how …

Member Avatar for diafol
0
342
Member Avatar for fireburner29

Hi there, Sorry for bad english, I using blockcategories module in left menu Prestashop. I just want to fetch products name, when i clicking on category left menu. Specified Codes for your reference. Thanks in advance. modules/blockcategories/category-tree-branch.tpl {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source …

0
138
Member Avatar for Kparas

Hi all, I want to import a .csv file into mysql database with using php code. How i can do this . what php code i will have to use for this. Please help me to do this. Because i have thousand of records which is in .csv file format. …

Member Avatar for rahulnamdev
0
480
Member Avatar for hallianonline

While genrating sitemap using php and mysql i am tottaly stuck with the errors in this, my requirement was to gerante multiple files sitmaps with the sitemap index if urls are greater than 5000 but this code i followed from a site totaly stucks me with errors please help me …

Member Avatar for Taywin
0
163
Member Avatar for rpv_sen

Hi Can anyone please help me on below issue I have created a website with PHP & MySQL. Its look like an Desktop Applications

Member Avatar for hericles
0
119
Member Avatar for jorwill.harion

Hi! I am currently working on my thesis and I don't have any idea on how can I view the records stored in 3 mysql tables. Can someone please give me some code regarding on this. The records should be displayed in a table form then when you click a …

Member Avatar for janissantony
0
271
Member Avatar for rsleventhal

At times, I have need to push all submitted form array values into $_SESSION. To do this, I've written a small function: function addPostToSession() { foreach ($_POST as $key=>$value ){ $_SESSION[$key]=stripslashes(strval($value)); } } This works well, as long as $_POST is one dimensional, but in a form with checkboxes, $_POST …

Member Avatar for cereal
0
394
Member Avatar for marifard

Hi, I have two pages to upload an image for specific client. the code of the page where I choose the image from file for specific client is: <?php require("headerloggedin.php"); ?> <?php $clientid = $_GET["clientid"]; $query = "SELECT * FROM clients WHERE clientid = $clientid"; $resultset = $db->query($query); while($row = …

Member Avatar for marifard
0
237
Member Avatar for ravi142

Hello, I am build to sent email with around 5000 email at time sent means Multiple emails used.Like Gmail but at the end Gmail have restriction for limited user.also not sent in SPAM .do you suggest me if any Web service provide this facality.[Not sure but Mailchimp could be provide …

Member Avatar for hericles
0
69
Member Avatar for davy_yg

create_account.php <?php include('includes/koneksi.php'); $nama = isset($_POST['nama']) ? $_POST['nama'] : ''; $institusi = isset($_POST['institusi']) ? $_POST['institusi'] : ''; $alamat = isset($_POST['alamat']) ? $_POST['alamat'] : ''; $email = isset($_POST['email']) ? $_POST['email'] : ''; $no_telp = isset($_POST['no_telp']) ? $_POST['no_telp'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; //Simpan berita /* if (isset($_POST['submit'])){ …

Member Avatar for pritaeas
0
332
Member Avatar for wgdbatman

I am having a reall issue with an assignment I am on. Here is the Assignemnt and attached are what I have for the .html and .php files. My .html is displaying as code on a web page vice the desired formatting. Any advice? Write a PHP script that obtains …

Member Avatar for matrixdevuk
0
566
Member Avatar for fireburner29

I have developed ecommerce application using opencart. My Req: Adding pincodes to the geozones/zones in shipping. This way, customer can enter the pincode before check out and see the right shipping cost. (each place or city will have different shipping cost). Please help me anyone. thanks in advance.

Member Avatar for gabrielcastillo
0
64
Member Avatar for ceeandcee

Good Morning, I am trying to run a mysql query to see if the field 'Date' is within 7 days of the current date or not. If it is less than 7 days old, I want to echo an image called current.jpg. If it is more than 7 days old, …

Member Avatar for diafol
0
286
Member Avatar for arafath077
Member Avatar for liphoso

i am running PHP Version 5.2.9, i want to create a barchart from data in mysql. i got this sumple and tried running it. am having a bit if trouble with json_encode(). i have an array that has numbers and strings but the numbers get printed back as strings. how …

Member Avatar for liphoso
0
576
Member Avatar for ravi142

Hi I make **FPDF output** of data in 3 simple columns with word wrap content. For E.g Like Table Structure. Title-1 | Title-2 | Title-3 Coln-1,Coln-2 | Coln-1,Coln-2 | Coln-1,Coln-2 If you given help with some snippets then better to understand. Thank you.

Member Avatar for ravi142
0
2K
Member Avatar for grakovski

Hello there :) I got this json: http://steamcommunity.com/id/spekat/inventory/json/730/2 In place of "spekat" - has different account names with different information. I want to get "classid" index with information (like numbers) Now my code is like this: <?php $urljson2 = file_get_contents("http://steamcommunity.com/id/$steam_acc/inventory/json/730/2/"); $json_decode2 = json_decode($urljson2); $inventory = $json_decode2->rgInventory->classid; ?> But not work, …

Member Avatar for gabrielcastillo
0
455
Member Avatar for tanklessgunit

I'm trying to solve a problem which I've now for 2days. But with any kind of success I want to create something where people can track their progress, so if somebody 'creates a progress' certain information need to be selected from the DB and inserted into other table. for now …

Member Avatar for veedeoo
0
286
Member Avatar for Zaki.cpp

I have a problem of connection between two application ( with c++ builder ), the apps are working good in a local network, but aren't work in the internet, `cause both of the client and the server are in deferent routers, and each one have an internal & external IP, …

0
164
Member Avatar for soomro_moon

hello, can anyone please help me with this piece of code, is not showing combobox value, why ??? its urgnt <tr><td>TERM</td><td><select name="term" ><option value="t_1">FIRST TERM</option><option value="t_2">SECOND TERM</option><option value="t_3">THIRD TERM</option><option value="t_4">FOURTH TERM</option><option value="t_5">FIFTH TERM</option><option value="t_6">SIXTH TERM</option><option value="t_7">SEVENTH TERM</option><option value="t_8">EIGHTH TERM</option></select></td></tr> <tr><td><?php if(isset($_POST['term'])) { echo $_POST['term'];} ?></td></tr>

Member Avatar for pclfw
0
242

The End.