39,316 Topics

Member Avatar for
Member Avatar for adishardis

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 …

Member Avatar for pritaeas
0
196
Member Avatar for net.mejico.mx

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.

Member Avatar for JorgeM
0
46
Member Avatar for johnef_sh

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 …

Member Avatar for johnef_sh
0
271
Member Avatar for Lonestar Jack

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(); …

Member Avatar for Lonestar Jack
0
192
Member Avatar for wikit

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, …

Member Avatar for Adrian_5
0
277
Member Avatar for ravi142

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

Member Avatar for noelthefish
0
128
Member Avatar for Dani

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 …

Member Avatar for Adrian_5
0
2K
Member Avatar for bLuEmEzzy

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 :)

Member Avatar for bLuEmEzzy
0
294
Member Avatar for hallianonline

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 …

Member Avatar for diafol
0
221
Member Avatar for paulogaiski

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 …

Member Avatar for Adrian_5
0
258
Member Avatar for terrymold

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 …

Member Avatar for diafol
0
115
Member Avatar for beanboy

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.

Member Avatar for diafol
0
1K
Member Avatar for toxicandy

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)) …

Member Avatar for toxicandy
0
266
Member Avatar for davy_yg

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 …

Member Avatar for mattster
0
160
Member Avatar for hanspeare_1

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 …

Member Avatar for mattster
0
215
Member Avatar for network18

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 …

Member Avatar for network18
0
584
Member Avatar for ankit1122
Member Avatar for erabxes

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 …

Member Avatar for erabxes
0
344
Member Avatar for Pravesh_1

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 = …

Member Avatar for Pravesh_1
0
189
Member Avatar for Silfro

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 …

Member Avatar for cereal
0
127
Member Avatar for zeeshan009

<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; …

Member Avatar for zeeshan009
0
1K
Member Avatar for abelingaw

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 …

Member Avatar for hericles
0
3K
Member Avatar for toxicandy

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)) …

Member Avatar for pritaeas
0
282
Member Avatar for kaakka

hello i am looking script image and html or text file upload with option make file name and file deletion any body can help?

Member Avatar for mattster
-2
262
Member Avatar for mcdczzz

can someone have any thoughts if my imagination is even posible?..i would like to display a alert-dismissable div after saving data to database but i dont know if it is posible i googled it but no match for my situation since i no master of ajax technique to hide my …

Member Avatar for mattster
0
154
Member Avatar for chaitu11

<?php include('db.php'); $query=mysqli_query($con,"select * from reg"); while($row=mysqli_fetch_array($query)) { echo $id; echo $name; } ?> i want to display it as follows: 1.chaitanya 2.swati 3.rena 4.geeta

Member Avatar for diafol
0
175
Member Avatar for AConley

When I upload this file core_navigation.tpl, I get this error: **Parse error: syntax error, unexpected $end in /home1/skywestv/public_html/www.flyboeingva.org/lib/skins/fbva_custom/core_navigation.tpl on line 65** Code: <!-- Menu --> <div class="pi-row-block pi-pull-right"> <ul class="pi-simple-menu pi-has-hover-border pi-full-height pi-hidden-sm"> <!-- Home --> <li class="active"> <a href="#"><span>Home</span></a> </li> <!-- End home --> <!-- About --> <li class="pi-has-dropdown"> …

Member Avatar for diafol
0
191
Member Avatar for chaitu11

i want to display this slideshow dynamically please help me. I am getting more than 3 images if i put dynamic code <div class="row"> <div id="carousel-reviews" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="item active"> <!--------------------------------> <div class="col-md-4 col-sm-6"> <div class="block-text rel zmin"> <a title="" href="#">Active1</a> </div> </div> <!--------------------------------> <div class="col-md-4 …

Member Avatar for mattster
0
220
Member Avatar for batulanjanette
Member Avatar for t12425

<?php session_start(); if($_SESSION['user']!=true) { header('Location:login.php'); } $error=""; ?> <?php include("include/databaseq.php"); $title=$_POST['title']; $date=$_POST['date']; $description=$_POST['description']; function GetImageExtension($imagetype) { if(empty($imagetype)) return false; switch($imagetype) { case 'image/bmp': return '.bmp'; case 'image/gif': return '.gif'; case 'image/jpeg': return '.jpg'; case 'image/png': return '.png'; default: return false; } } if (!empty($_FILES["uploadedimage"]["name"])) { $file_name=$_FILES["uploadedimage"]["name"]; $temp_name=$_FILES["uploadedimage"]["tmp_name"]; $imgtype=$_FILES["uploadedimage"]["type"]; $ext= GetImageExtension($imgtype); …

Member Avatar for veedeoo
0
215

The End.