39,326 Topics

Member Avatar for
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
191
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
192
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
Member Avatar for sabariN123

.I am working as a PHP software developer in Bangalore.I am new to the PHP language.I have some doubts.please clarify me. 1. IN PHP what are the things we want to concentrate On Web Application development. 2. What are the security issues are their?. 3. What is sql Injection?how to …

Member Avatar for rubberman
-3
248
Member Avatar for raaj_1

PLS GIVE ME ANYONE THE FULL SCRIPT OF THIS FORUM http://sattadon.com/forum/forum.php WITHE QUOTE FUNCTION PLS ITS SO URGENT

Member Avatar for rubberman
-6
130
Member Avatar for Moswap

Hi......Friends Please can anyone to help me to change my url as permalink. My URL is http://www.moswap.in/ , when am click on cell phone page its showing like this(http://www.moswap.in/i/?cell-phones), but want to only like this http://www.moswap.in/cellphones so, please help me friends. Thanks in advance.

Member Avatar for mattster
0
184
Member Avatar for rmoloruntoba

can I get code to bring out the state under a country when the country is selected. both state & country from the database displayed in a select dropdown

Member Avatar for diafol
0
125
Member Avatar for joachimanderson

I hope I'm asking this question correctly. I am succesfully using [Fullcalendar](http://fullcalendar.io/) on my site to show various dates for various members, all of which are stored in a database. I have implemeneted a bootstrap popover that displays the members name when a mouse is hovered over the event in …

Member Avatar for joachimanderson
0
126
Member Avatar for ItsMe5247
Member Avatar for peeyush.budhia

Hi, IS there any way to load a `*.dll` file at run time into PHP project. For instance I want to use the functionality for encrypting the a string using `MCRYPT` module without installing the module. I found on internet that with the usage of `COM` class I can achieve …

Member Avatar for renoldscott
0
503
Member Avatar for erickajan.cajucom

<?php include ("connect.php"); $_SESSION['username']="kai"; $username=$_SESSION['username']; echo "Welcome,".$username."!<p>"; $query= mysql_query("Select * from avatar where name = 'username'"); if(mysql_num_rows($query)==0) die("User not found"); else { $row = mysql_fetch_assoc($query); $location = $row['imagelocation']; echo "<img src='$location' width='200' height ='200'>.</p>"; } ?> <p/> Upload New Avatar <form method="post" enctype='multipart/form-data' action='view.php'> File: <input type='file' name='myfile'> <input type='submit' …

Member Avatar for niranga
0
210
Member Avatar for Kalaivani Nair

I need check among items entering session array.Say $a=1, if $a enters the array for the first time then mark it new.Else if the same $a entered the array more than once then mark it old.I tried using in_array,array_key_exists funtions but to no avail. Please help me..Thanks.

Member Avatar for urtrivedi
0
94
Member Avatar for peeyush.budhia

Hi, I am working on an aplication which contains two different portals (admin and members). `http://localhost/app/` is used for the members login and `http://localhost/app/admin` is used for admin's login. When I log in into members and admins portal both works fine but if I logout from one portal another portal …

Member Avatar for peeyush.budhia
0
227
Member Avatar for abelingaw

I'm nearly finish with a site template for a shopping cart. I am encountering a problem, updating of quantity. Say: On the Product Table page: If the user clicks on the same product to add it, only the quantity should increment on the Cart page (Quantity is displayed using a …

Member Avatar for abelingaw
0
582
Member Avatar for James singizi

i am trying to draw an image on to a php page using the imagecreate function but the image is not showing, i cant see the problem with this code, please help me out, the code is as follows: <?php header('content-type: image/jpeg'); $fontSize = 30; $imageHeight = 40; $imageWidth = …

Member Avatar for diafol
0
178
Member Avatar for davy_yg

I am looking for table row alternating color. I already write the codes and the table does not appears yet. I wonder why? schedule.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Transdmin Light</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" …

Member Avatar for mattster
0
223
Member Avatar for scaiferw

I'm converting some old work to mysqli, and having a bit of trouble with Prepared Statements. In the stripped down code sample below, I'm able to confirm that the code below pulls the records; line 8 echoes the string as expected and if I replace the id parameter with something …

Member Avatar for diafol
0
211
Member Avatar for Mr Programmer

What I want to do is to show an email sign-up pop up when a link is clicked. This is how I am referencing to the external sumome.php file, which contains the js function: <script type="text/javascript" src="http://www.barcabyfans.com/wp-content/themes/hueman/sumome.js"></script> This is what I am writing for the link: <p>Get more awesomeness <a …

Member Avatar for oriclon
0
320
Member Avatar for zzmrzz

I have a dedicated server and i need a short php script, that says if my dedicated server is "ONLINE" or "OFFLINE", and how many ram left, that will show it on a bar... =) Thanks

Member Avatar for oriclon
0
179
Member Avatar for ankit1122

hello i have databses and tables in mysql db... i want to auto suggest databases name in a input box after depending on database string i want to auto suggest the tables inside that database....how could i do this?

Member Avatar for Borzoi
0
131
Member Avatar for ankit1122
Member Avatar for ankit1122
0
101

The End.