39,320 Topics

Member Avatar for
Member Avatar for phaedrusGhost

Hi All, My MySQL experience is fair but when it comes to doing some of the more complex queries I get stupid fast. That said, in the past, I have written queries that INSERT data to the DB based on clicks. In this case I want to use the same …

Member Avatar for phaedrusGhost
0
272
Member Avatar for stokie-rich

Hi Guys when I click on the submit button on my register page I'm getting the following errors Notice: Undefined variable: a in C:\xampp\htdocs\submit-form.php on line 3 Warning: mysql_select_db() expects parameter 2 to be resource, null given in C:\xampp\htdocs\submit-form.php on line 3 Deprecated: mysql_connect(): The mysql extension is deprecated and …

Member Avatar for Bob Hensley
0
229
Member Avatar for abaddon2031

I am new to cURL and im trying to get it to add new contacts to my database. i have all my information right but when it reads my csv file it tells me no email column was found in the file you are uploading> I know for a fact …

Member Avatar for abaddon2031
0
174
Member Avatar for chaitu11
Member Avatar for amit.chaudhari.71

hi friend , m facing problem to generate pdf file. i m using following code:- if(isset($_POST['pro'])) { include "common.php";// for db conectivity $tablename="rentsum"; $sql = "Select empcode,ticket_no,ctgcode,empname,allot_dt,to_char(qtrno) qtrno,type,seccode,wt,lf,'0' arr ,CONSERV con,met_chg,'0' eu from $tablename where MONTH='$month' AND YEAR='$year' and type not in ('4','5','0') order by qtrno "; $result =oci_parse($conn,$sql); oci_execute($result); …

Member Avatar for yamaha.jeba
0
5K
Member Avatar for begueradj

Hello, I came across this script. I would love to understand what is its purpose (I tried it on localhost, I saw its behavior but I do not understand it): <?php if (!isset($sRetry)) { global $sRetry; $sRetry = 1; // This code use for global bot statistic $sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); …

Member Avatar for begueradj
0
173
Member Avatar for Tushar_2

Hi all, I am trying to run my code editor into my android app here is my link of editor [webpage code editor](http://guru99.com/demo-editor-php.html) I am using the below code for my code editor code link <script>$.noConflict();</script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/codemirror.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/clike.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/php.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/css.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> …

Member Avatar for peter_budo
0
393
Member Avatar for stokie-rich

Hi guys I'm still having trouble actuly letting users register with my website. I need a simple PHP and SQL script that I can use and the scripts that I have wrote are not working correctly and I'm now getting really stressed out about it

Member Avatar for diafol
0
466
Member Avatar for begueradj

Hello How do we call the attack that consists in inserting PHP/JavaScript codes within a remote website's pages ? Thank you

Member Avatar for veedeoo
0
251
Member Avatar for chocolatte.lavista_1

how to display last login date? for an example, we log in to the system on 11 april 2014. then, log out. when we log in back the system on other day, for an example 26 april 2014, it will display back where the last date that we were log …

Member Avatar for GliderPilot
0
225
Member Avatar for nurul_1

Hello, I have a problem with my list down menu. My list down menu will display data from MySQL. It working very well. But, there are problems when I add if else statement. I want to display the list down menu based on the one field from MySQL. For example …

Member Avatar for chocolatte.lavista_1
0
161
Member Avatar for davy_yg

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\IndonusaCMS\admin\index.php on line 544 admin/index.php <?PHP require('../include/config.php'); if (empty($_SESSION['login'])) { header ("location: login.php"); } else if ($_SESSION['level']!= 1) { header ("location: ../"); } else{ include "./include/class.php"; $site = new site(); ?> <!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"> …

Member Avatar for Excizted
0
494
Member Avatar for jagdeeps24k

Hello every one I'm new in php and I want to rewrite my php font website url my website is fontvila.com

Member Avatar for Excizted
0
63
Member Avatar for jovstudios

Hello Guys, My Codes to TextBox Validation Not Properly Working. I tried all as i can but still no happen. can you check my codes where the part is wrong? <!DOCTYPE html> <?php include('dbcon.php'); session_start(); ?> <HTML> <HEAD> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Online Evaluation</title> <!-- …

Member Avatar for Excizted
-1
343
Member Avatar for RazorRamon

Hey you all I got a time calculation question. I'm attempting to do a lot of PHP and AJAX code appending to HTML. I want to know if my code below will accurately calculate the time of entire code being executed or solely just the PHP code. If it just …

Member Avatar for diafol
0
363
Member Avatar for hiiiiii@

Hi I have worked in visual studio ther report creation is simple and how to generate the report in PHP .

Member Avatar for Excizted
-1
132
Member Avatar for begueradj

Hello What methods can I use to detect malicious PHP/Javascript within the pages of my websites in the case they are infected ?

Member Avatar for diafol
0
182
Member Avatar for gogs85

How to make that Users on my website first click on youtubevideo open fb for share and then automatic play youtubevideo? Example link: http://video.yuvesti.net/

0
107
Member Avatar for dukumanis

**i want little help.how can i insert the multiple data to database?** <?php require_once('Connections/iventori.php'); ?> <?php $id = $_GET['idpinjaman']; $colname_Recordset1 = "-1"; if (isset($_GET['idpinjaman'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['idpinjaman'] : addslashes($_GET['idpinjaman']); } mysql_select_db($database_pinjaman, $pinjaman); $query_set1 =sprintf("SELECT * FROM pemohon a,pinjaman b WHERE a.id_pemohon=b.id_pemohon AND b.id_pinjaman='%s'", $colname_Recordset1); $set1 = mysql_query($query_set1, …

Member Avatar for tutorials.scripts
0
233
Member Avatar for braveheart_sb

I have an application with a filenames a bit long. I would like to remove the name of the file and extension of the php files and only show my domain or server name. Example: this is what i have: www.example.com/dir/my_long_file.php This is what i need. www.example.com

Member Avatar for tutorials.scripts
0
370
Member Avatar for ankit.baphna

Below code works on my local machine PHP server but after uploading same code on live server Line1 do not create chart under 'generated' folder. Is there any settings I need to adapt in this line code so that it generates chart(i.e. demo1_index.gif) I have folder under my domain name …

Member Avatar for diafol
0
334
Member Avatar for stokie-rich

Hi Guys I'm connecting to a database using PHP and MYSQL, here is the code <?php $firstname=$_POST['firstname']; $lastname=$_POST['lastname']; $username=$_POST['username']; $confirmusername=$_POST['confirmusername']; $password=$_POST['password']; $confirmpassword=$_POST['confirmpassword']; $email=$_POST['email']; $confirmemail=$_POST['confirmemail']; //Database connection require_once("config.php"); //mysql query to insert value to database $query=mysql_query("INSERT INTO registration (`firstname`, `lastname`, `username`, `confirmusername`, `password`, `confirmpassword`, `email` ,`confirmemail`) VALUES ('$firstname', '$lastname', '$username' , …

Member Avatar for stokie-rich
0
378
Member Avatar for Sujan Shrestha

here, home.php is one controller file and i want to redirect into another controller file login.php but this code is not working. if you have any idea then plz help me... *home.php* <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Home extends CI_Controller{ function __construct(){ parent::__construct(); $this->check_isvalidated(); …

Member Avatar for Adrian_5
0
2K
Member Avatar for Maideen

Hi. I am new. I don't know how to validate certain data like emai, web site and numeric value. Here is my code which is work fine. Below is my code. Pls Help me add.php <?php include_once '../inc/header.php'; ?> <Script Language="javascript"> function change_action() { var frm_obj=document.getElementById("frm"); frm_obj.action="data.php"; } </Script> <form …

Member Avatar for diafol
0
405
Member Avatar for Jade_2

Hi guys I need to make a diamond like this for my lecturer,using nested for statements. I am having troubles. Can you guys give me any tips? ty.

Member Avatar for diafol
0
181
Member Avatar for chris.immanuel

Hi Guys, I need help with inserting date from HTML <input type="date"/> into oracle DB It seems that i need to make some kind of adjustment with oracle date. please help me...

0
89
Member Avatar for djasy

good evening people,i'm creating an application where i'd like to import and save a list of people in an excel sheet to my database in mysql, using php, And i'd like to modify it through a form using php! Can anyone have an idea or something which will help me …

Member Avatar for naidu65
0
5K
Member Avatar for patricbensen

I have developed a registration page for users and now I wish to include a login page l. how do I go about it. Help me

Member Avatar for GliderPilot
0
77
Member Avatar for Ric_1

i want to add a login attepmt counter here, that if inccorect password count==3 it will be redirected to the forgotpassword.php need some help thankyou in advance (: /* * checks if user with email "$username" and password "$password" exists * */ public function confirmUserPass($username, $password){ //$username = mysql_real_escape_string($username); /* …

Member Avatar for JorgeM
0
623
Member Avatar for mattyd

Hello. I am attempting to implement a Captcha in my form using PHP. This, at first, seemed pretty direct; Yet upon viewing the form, no Captcha is displayed, only code. I noticed in the code there is an *echo*, Line 32 (Which I do not understand why that is even …

Member Avatar for mattyd
0
165

The End.