39,323 Topics
| |
I have some code that I edited for importing csv into mysql using PDO to bind parameters. I thought it was working before, but tested it again and the issue I have is that only one line (the fourth line) of the csv file is getting imported. The first line … | |
db name: orange table: Name, Position, Department, Telephone, Purpose, Startdate, Enddate, Item1, Item2 **input.php** <html> <body> <form method="post" action="conn.php"> <table width="500" border="1"> <tr> <td>Name</td> <td><input type="textbox1" name="Name[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Position</td> <td><input type="textbox2" name="Position[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Department</td> <td><input type="textbox3" name="Department[]" value=""></td> <td> </td> <td> </td> </tr> <tr> … | |
**currently arrival date and departure date format is m/d/y..can i change the date format to d/m/y??** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker(); $("#datepicker2").datepicker(); }); </script> </head> <body> <form method="post" action="4.php"> arrival date <input type="textbox6" name="arrivaldate[]" id="datepicker"><br> departure date <input type="textbox7" name="departuredate[]" … | |
What you thinks about voting system for indie bands?? Please give your opinions | |
Hi All. I was searching it for many weeks I am working on Magento Store, i have 2 domain on same website/same directory i want to show different logo on each domain. In header file, logo is shown by this code <?php if ($this->getIsHomePage()):?> <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php … | |
I am going to develop a web based point of sales system. It is going to be based on linux and php. Users will access it via internet and using browser as the tool. Problem is if the web server is down? The user want to be still able to … | |
# What is OAuth and why do I want to use it? If you want to write an application that caters to existing members of a service, and you want your application to be able to access private areas of your end-users' profiles, or modify their accounts on their behalf, … | |
please provide me best web soft phone to integrate with php with Mysql | |
Hello, Please cek this website: [Infracom](http://www.indonusa.net.id/infracom/) There are some errors after I move it from localhost to webserver. header.inc.php <?php if( !defined('WDS_ROOT') ) exit; $meta = array(); $meta['title'] = 'Error 404 Object Not Found'; $meta['keywords'] = $config['sitekeywords']; $meta['description'] = $config['sitename'] . ' :: The page you looking for is not … | |
hey guys, so im not sure if this is the right forum, sorry if its not. anyway, i have to create a webpage that can do seating arrangements graphically. it would be like those seating plan softwares out there but this would be online. users can choose tables/chairs/etc which guests … | |
| I'm having issues with repopulating my input fields after being submitted if there is an error. I've tried the simple `<?php if(isset($_POST['value'])){echo $_POST['value'];} ?>` That doesn't work. And I'm thinking it's because of how I have my else statements set up. I am currently using get to repopulate my fields, … |
<?php $id=$_GET['memberID']; $result = mysql_query("SELECT * FROM members WHERE memberID='$id'"); while($row=mysql_fetch_array($result)){ $user=$row['userlevel']; if ($user==3){ ?> <font size="2" style="postion:relative; top:0px; left:30px; "> Hi <?php echo $row['username']; ?>! <a href="logout.php" style="text-decoration: none">Logout</a> <font style="position:relative; top:0px; right:-500px;" size="2" color="#1491C6 "> <?php }else{?> <font size="2" style="postion:relative; top:0px; left:30px; "> Hi Guest! <a href="login" style="text-decoration: … | |
Hello I'm trying to add coding to my site so that someone can visit it, see everything on the site, but get banned so that when they come back they can't see anything anymore. My guess is they have to be banned after visiting. I tried this code but it … | |
can anybody please tell me how to rewrite urls like http://mysite.org/myfiles/2014/-dir-/2014_02.html http://mysite.org/myfiles/-dir-/myfiles.html etc... i thought that there is a php file available at same directory ( /2014/) | |
I have a site where the customer makes multiple selections of clothing and these are shown together at the end of the selection. So they may select a dress, top and skirt, accessory etc. All the images are in png format with a transparent background. At the end of the … | |
Does anybody have any magic formula (known to work) for attaching a .csv file to an email? I have been working on this most of the morning... Have tried to use several different versions of what is supposed to work from doing google searches and have yet to be successful. … | |
Hi I have dropdown list of domain names.Which is populated by mysql query(1st query). And when dropdown value is selected that value is used in another mysql query(2nd query). I've a submit button,when it is clicked.It is working perfectly. But i want to remove submit button and i need a … | |
Hi i am using array for uploading images but i am unable to insert it into database as well as in the folder. can anyone please help me to resolve it. $name = $_GET['name']; $gititle = $_POST['gititle']; $number_of_file_fields = 0; $number_of_uploaded_files = 0; $number_of_moved_files = 0; $uploaded_files = $_POST[$_FILES['images']['name'][$i]]; echo … | |
Hello, I have two tables one for 'users' and another for 'vendor_service' in database named 'star'. In vendor_service table i've stored users id as a foreign key. Now if i try to insert values in vendor_service table it shows following error. Cannot add or update a child row: a foreign … | |
Hi, i want to add next / previous buttons in my wordpress post. example can be seen here. http://prntscr.com/2yzwnl link to website: http://funnie.st/453576/oscar-memes/2/ Please help me in this regard. | |
Do you want to scan your website to find all the Vulnerabilities at your web site try netsparker :) | |
How can I generate a weekly report given an end date and a start date? How should the query be? I try this one but it's returning an error. "SELECT * FROM table WHERE date >= startdate AN date<='enddate GROUP BY WEEK BETWEEN startdate AND enddate" | |
How to view our uploaded resume online with php in website <?php if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submit']) == 'upload') { var_export($_POST); $allowedExts = array("pdf", "doc", "docx"); $temp = explode(".", $_FILES["file"]["name"]); $extension = end($temp); if ((($_FILES["file"]["type"] == "application/pdf") || ($_FILES["file"]["type"] == "application/msword") || ($_FILES["file"]["type"] == "application/vnd.openxmlformats-officedocument.wordprocessingml.document")) && ($_FILES["file"]["size"] < 20000) && … | |
Hi, I am working on a script where I want to select parent id for a new user and save his parent id along with parents parent ids in mysql table. $last_id = mysql_insert_id(); //select parent id of last inserted user $sel = mysql_query("SELECT * FROM tbl_new_agent WHERE new_agnt_id = … | |
hi guys hope you are all well, I'm creating my own website. I need some help, on the header that I have created with the menu links I want users to be able have access to a drop down list of associated pages to appear when you hover over a … | |
**The code below sends only one attachment, but I need to attach and send two file(one rar file and pdf)** $email_to = "$email"; // The email you are sending to (example) $email_from = "online@tryteksolutions.co.in"; // The email you are sending from (example) $email_subject = "subject line"; // The Subject of … | |
I am trying to register two different userinfo with dropdown but getting some error when i click on submit butto. I am newbie in php.Please help me solving this error... My database is: id int(2) Primary Key type char(2) cname varchar(55) uname varchar(55) mail varchar(55) pswd varchar(55) address varchar(255) zip … | |
hey guys so this piece of coding is simple and straight forward but theres something wrong with it and its bugging me out because i can't figure out what the problem is. the error i get is this: You have an error in your SQL syntax; check the manual that … | |
hey guys so basically what i want to do is populate a table with details from a database. That is part of the problem. When i write the php coding to do that the other elements on the webpage sort of disappear. Ill attach some screenshots to make it clearer. … | |
here i am using fpdf class to generate pdf document, how to print serial numbers in SL.NO. column in sequential order i.e. 1 2 3 4 5 ... so on. <?php include_once('include/dbConnect.inc.php'); require('fpdf.php'); $d=date('d_m_Y'); $agentid=mysql_real_escape_string($_GET['agent']); $agent_name=mysql_real_escape_string($_GET['agentname']); // Query to select an int column $query = "select count(*) as cnt from … |
The End.