39,323 Topics
| |
I have the following form that I need the fields to be mandatory before submission: form name="application" id="applicatipn" method="post" action="send_mail.php" > <h2 class="title">form</h2> <p class="sub-text">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX </p> <table width="620px"> <tr class="bg-grey"> <td> <h3 >Personal Details</h3> </td> </tr> </table> <table width="600px" class="bg-light-grey" style=" margin-left: 10px"> <tr> <td valign="top"> <label>Title</label> <br /> <input … | |
I have installed wampserver, now i don't know how to run php program using wampserver i mean how to deploy and what the configuration. Please help, thanks in advance | |
Hello, I would like to make a table column editable that is written in PHP. And that edited value should be subtracted with the data in another column automatically to change the value of it. Eg: I have 3 columns, Pass/Fail/Blocked. $pass and $fail are taken from DB & Blocked … | |
Good Day Daniweb, I am encountering a problem in php code meant to allow the user to update their profile picture. I am using jquery.min and jquery.js. The code below runs with no errors reported. The file has been successfully uploaded to upload path using this form. upload.php <form id="imageform" … | |
please help me how to compute the penalty.my want my system to automatically compute the penalty within the given time or with the time. | |
Hi All, We have a project coming up, As i am eveluating the PHP frame works i found out cakePHP is most suitable for our project. I have not used it before but i am new to it and facing problem in configuring. I have completed the setup as per … | |
Greetings, i have this code that inserts an item on the table item_tbl and it should also get the added items primary key and insert it on table fields_tbl. My question is how can i get the primary key of the item that i will add and insert it on … | |
Hi, I have en stdClass object array that looks like this Array ( [10] => stdClass Object ( [inlast] => 2013-02-15 00:00:00 ... etc Where the first number (10) is the uniqe identifier for that row, and the array contains all the rows in the table. So my question is … | |
Hi, I donĀ“t know how to upload a image with its own link. With the posibility then to reseat a default imag and a default link. I really really apreciate all you help. Thanks. | |
I am try to figure out how to check current time against time in database and header the user to "expired page" if the current time is greater than the one in database "1 hour" $email = $token = $check_time = ""; $crossToken = $db->prepare("SELECT email, token, check_time FROM pw_reset_company … | |
All functions work every time except the "btn_replay" which only works on the first iteration. It does not use the session variable File name is add_hock_query_js.php and is included in file ad_hoc_query.php I have scoured the internet without a result and am stuck. <?php session_start(); ?> <script type="text/javascript"> $(document).ready(function(){ $('input#btn').hide(); … | |
Hi again guys please forgive my unknowing, i tried but simpply got errors. I downloaded this upload script ( [Click Here](http://www.phpkode.com/scripts/item/es-simple-uploader/) ), it works great except it's for single file uploads, not multi-file uploads The website I'm working on requires the ability to upload multiple files at the same time, … | |
Hello How can i add ID='xyz'in IMG tag <div class="main-banner"> <img width="1000" height="242" alt="cropped-Penguins.png" class="attachment-full" src="http://../cropped-Penguins.png"> </div> JQuery which i have tried jQuery('.main-banner').append("img").attr('id','xyz'); But Not Work. Give me suggestion Thank you | |
Trying desperately to get CodeIgniter and Nginx to play nice. I was able to get it working once a long time ago and I cannot seem to reproduce what I had. I am trying to follow: http://wiki.nginx.org/Codeigniter However, it works fine where / gives me the default controller/method, and I … | |
Hey guys, I want to generate a unique number in PHP (ex. 000001, 000002 etc), when it is saved in the database it will increment in 1 (+1). But how can I do it? Thank You :) | |
Hello, I am using FCKeditor to inserting news content now my problem is after submitting the news sucessfully. I get all other new items on the same page if i need to edit them on clicking the edit button the fckeditor not loads the old content until i change this … | |
i have a simple php login script with session but all i get is just a white blank page after running my login,php script. Here is the login,php page <?php error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); include('connect.php'); session_start(); if (isset ($_POST['submit'])) { $UserName=$_POST['uname']; $Password=$_POST['pswd']; $result=mysql_query("select * from bizness_profile where … | |
Hi. I have a little technical enquiry about PHP that I'm hoping someone here can help me with. I have a PHP/MySQL application on website A. This app takes a user input, does a few date/time calculations and presents the result onscreen as a series of 6 times. A friend … | |
hi helper, i've 3 .php and 1 css files downloaded from net. how could i run these files? Do i need any tool? thanks beanboy. | |
I have the following code: <?php $fieldsClause = array(); $bindArray = array(); $fields = array('status','fname','middle','lname','address','city','state','zip','county','mailing','hphone','mphone','wphone','ext','fax','email','ethgroup','other1','occupation','poe','dob','gender','bhv','mrc','general','evv','allCounties','fillmore','johnson','otoe','richardson','seward','butler','gage','lancaster','pawnee','saline','thayer','cass','jefferspm','nemaha','polk','saunders','york','other2','aro','clergy','intskills','bus','child','law','cpr','data','security','emergency','computer','mechanical','administration','firstaid','translation','construction','basicclean','foodprep','animalcare','heavy','dataentry','identification','phone','runner','greeter','interviewer','safety','other2','interpt','cdl','cpryn','translate','other3','license1','verf1','num1','exp1','license2','verf2','num2','exp2','license3','verf3','num3','exp3','license4','verf4','num4','exp4','license5','verf5','num5','exp5','lsrd','syes','bcert','pauth','dist1','tdate1','dist2','tdate2','dist3','tdate3','dist4','tdate4','dist5','tdate5','felony','felonys','ename','erelation','ehphone','eaddress','ecity','ezip','hdyhau','bdesc','record'); foreach($fields as $field){ if($san = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING)) { $fieldClause[] = "`$field` = :$field"; $bindArray[":field"] = $san; } } $sql = "INSERT INTO volunDB("; if (!empty($fieldClause)) $sqlF = implode(', ', $fieldClause); $stmtString = $sql; if(isset($sqlF)) … | |
Hello, I am creating login system with session for secure login and logout. Yet, I don't think it works as it suppose to be. This is my codes: admin.php <?php // Check if session is not registered, redirect back to main page. // Put this code in first line of … | |
Hello there Good day to each and everyone of us here. i have a problem displaying the image i have uploaded in the root directory folder. This is my codes in uploading image. I am using jquery.min.js and jquery.form.js. $path = "uploads/"; $valid_formats = array("jpg", "png", "gif", "bmp","jpeg"); if(isset($_POST) and … | |
Hello All, I need to modify the default settings for the filesMatch in the apache httpd.conf file from - <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> so that to also include - <FilesMatch ".(eot|ttf|otf|woff)"> Header set Access-Control-Allow-Origin "*" </FilesMatch> I would appreciate the suggestions, somehow the combination … | |
hello, how could i populate drop down list from resultset of a mysql query?? | |
I am not able to get my email input even after defining my sessions, please look below: I have two scripts: The first is is to show the declaration of the session, while the second is to display the session's value: First Script:sessionTest1.php <?php session_start(); ?> <html> <head><title>Testing Sessions page … | |
Below is the code that not returning anything but echoing values; it should return 'something' on false of **if($return['status']=='Active')** function product($ids) { $return = mysql_fetch_array(mysql_query("select * from tbl_product where id = $ids")); if($return['category_id']) $recursive_return = recursive($return['category_id']); $recursive_return; } function recursive($category_id) { $return = mysql_fetch_array(mysql_query("select * from tbl_main_category where id = … | |
| Hello, on korean games I noticed that you always have to start the game through the website. First I want to know why they do it that way? Only to gain traffic? And second how can I do that too? Is it even possible with php? I couldnt find anything … |
<input type="hidden" id="" name="name[<?=$name;?>]"/><?=$name;?></input> .... <?php include('config.php'); @session_start(); $sessionName = $_SESSION['NAME']; $date = date('d-m-y'); $loc= $_POST['locationID']; $name = $_REQUEST['name']; $status = $_POST['status']; $class = $_POST['class']; $section = $_POST['section']; for( $i = 0; $i < count($loc); $i++ ) { $sql = "INSERT INTO tbl_attendence (fld_studentname,fld_status,fld_class,fld_section,fld_date,fld_takenby) VALUES ('$name','$status','$class','$section','$date','$sessionName') "; //echo $sql; exit; … | |
I'm trying to ban a user from logging in to a site after 3 failed attempts. Code: <?php require 'konek/dbcon.php'; if (isset($_POST['login'])) { session_start(); //$link = mysqli_connect('localhost', 'root', '','abra') or die("Could not connect database"); if (empty($_POST['uname']) || empty($_POST['passw'])) { header ('Location: login.php'); die(); } if (ctype_upper($_POST['uname']) || ctype_upper($_POST['passw'])) { header … | |
I have the following code: <?php $fieldsClause = array(); $bindArray = array(); $fields = array('status','fname','middle','lname','address','city','state','zip','county','mailing','hphone','mphone','wphone','ext','fax','email','ethgroup','other1','occupation','poe','dob','gender','bhv','mrc','general','evv','allCounties','fillmore','johnson','otoe','richardson','seward','butler','gage','lancaster','pawnee','saline','thayer','cass','jefferspm','nemaha','polk','saunders','york','other2','aro','clergy','intskills','bus','child','law','cpr','data','security','emergency','computer','mechanical','administration','firstaid','translation','construction','basicclean','foodprep','animalcare','heavy','dataentry','identification','phone','runner','greeter','interviewer','safety','other2','interpt','cdl','cpryn','translate','other3','license1','verf1','num1','exp1','license2','verf2','num2','exp2','license3','verf3','num3','exp3','license4','verf4','num4','exp4','license5','verf5','num5','exp5','lsrd','syes','bcert','pauth','dist1','tdate1','dist2','tdate2','dist3','tdate3','dist4','tdate4','dist5','tdate5','felony','felonys','ename','erelation','ehphone','eaddress','ecity','ezip','hdyhau','bdesc','record'); foreach($fields as $field){ if($san = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING)) { $fieldClause[] = "`$field` = :$field"; $bindArray[":field"] = $san; } } $sql = "INSERT INTO volunDB("; if (!empty($fieldClause)) $sqlF = implode(', ', $fieldClause); $stmtString = $sql; if(isset($sqlF)) … |
The End.