38,020 Topics

Member Avatar for
Member Avatar for Mohamed_26

Hello I am trying to update the quantity value but I am not able to do it. As soon as the user clicks on Add To Basket, if the items exists I want it to update the value. At the moment, the quantity is one. //so this bit checks if …

Member Avatar for Mohamed_26
0
2K
Member Avatar for game4tress

I have the Ajax call listed bellow inside a jquery function, and the ajax call is not working. I've used "alert" to debug and its like the jquery function didn't even had the ajax call. Nothing inside it is processed, with no sucess and no errors. Isn't it possible to …

Member Avatar for dcdruck
0
454
Member Avatar for mike julius

hi im a beginner on php and i just want to know if my codes is correct because when i try to update it it only saves the last value i hope some one can understand me. $id = ($_REQUEST['StudentNumber']); $result= mysql_query("SELECT NameofSiblings, Age, HEA, CivilStatus, Occupation FROM $tblname where …

Member Avatar for mike julius
0
177
Member Avatar for davy_yg

Hello, I wonder about one thing: I am trying to create a uniform background for this all navigation links in this site: [Infracom](http://www.infracom.co.id/infracom/) I do not really create the site - since we no longer hire the one who create it and I have to maintain it. index.php <?php require('wds.php'); …

Member Avatar for davy_yg
0
173
Member Avatar for Wendy_1
Member Avatar for Wendy_1
0
718
Member Avatar for chaitu11

My resume is already present in resume folder with following formate eg: 3chaitanya.doc = > [session_id+session_firstname] i need to attach it to email without browsing it <?php session_start(); include('db.php'); $to = "company@gmail.com"; $fromEmail = $_SESSION['user_email']; $fromName = "Job tile"; $subject = "Applying for job"; $message = "some text"; //path of …

Member Avatar for chaitu11
0
169
Member Avatar for Mike_danvers

<html> <body> <table border=3> <form action=checkpass.php method=post> <tr> <td>userid</td> <td><input type=text name=n1></td> </tr><br> <tr> <td>password</td> <td><input type=password name=n2></td> </tr><br> <tr> <td><input type=submit value=login></td><br> <td><a href=registration.html>Create new account</a></td> </tr> </form> </table> </body> </html> //checkpass.php <?php session_start(); include "connect.php"; ?> <?php $userid=$_POST['username']; $password=$_POST['password']; $q="select * from cust_details where userid='".$userid."' and password='".$password."'"; $s=mysql_query($q); …

Member Avatar for Alhussaini.Eng
0
254
Member Avatar for spluskhan

when i try to submit my file i get error > Fatal error: Call to undefined function finfo_open() in C:\xampp\htdocs\Test\file_insert.php on line 49 My Code for Insert.php is: <html> <head><title>File Insert</title></head> <body> <h3>Please Choose a File and click Submit</h3> <form enctype="multipart/form-data" action= "<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <input type="hidden" name="MAX_FILE_SIZE" …

Member Avatar for Alberto Bucur
0
3K
Member Avatar for Arunkumar k v

I have posted image in database, and i got that image also, but i want to replace the image using php code can any one help me this is my code <?php require("../db.php"); $id =$_REQUEST['id']; $result = mysql_query("SELECT * FROM doctors WHERE id = '$id'"); $test = mysql_fetch_array($result); if (!$result) …

Member Avatar for Arunkumar k v
0
114
Member Avatar for pooja_3

<?php $variable=$_POST['module']; $xmldoc = new DOMDocument(); $xmldoc->load('info.xml'); $xpathvar = new Domxpath($xmldoc); $queryResult = $xpathvar->query("testcase[substring-after( substring-after(script, '/'), '/' ) = '$variable' or substring-before( substring-after( substring-after(script, '/'), '/' ), '/' ) = '$variable']"); foreach($queryResult as $var) { echo $var->textContent; echo "\n"; } ?> I have written this code to fetch those content …

Member Avatar for pooja_3
0
204
Member Avatar for lord0o

Hi, I need to make a registration page to my Private Silkroad server on my website, and it works with SQL Server 2012. I'm not really into PHP neither SQL, just figuring it out with poor online guides on the web about it, and I didnt find any help with …

Member Avatar for urtrivedi
0
398
Member Avatar for davidannis

I am going through an XML file and trying to get the name of a child (or children) node(s) but I'm missing something. Even though there are child nodes, my foreach loop acts as if there is not. $pos = $node->sense->pos; foreach ($pos->children() as $child) { echo "I never get …

Member Avatar for davidannis
0
2K
Member Avatar for jovstudios

Hello Guys, I need your help. How to convert decimal into precent using php codes example like this. Example: 0.2 = 20% Thanks in Advance Please help me, Thanks

Member Avatar for jovstudios
0
159
Member Avatar for davy_yg

input_gallery.php <?php include('../includes/koneksi.php'); $post_id = isset($_POST['post_id']) ? $_POST['post_id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $post_image = isset($_POST['post_image']) ? $_POST['post_image'] : ''; $page = isset($_POST['page']) ? $_POST['page'] : ''; //Load image if (!empty($_GET['post_id'])){ $result = mysql_query("SELECT * FROM static_page WHERE post_id …

Member Avatar for sDJh
0
138
Member Avatar for davy_yg

Hello, I was assigned to create webinars and have been looking for the opensource one and I found openmeetings: https://code.google.com/p/openmeetings/ Yet, I cannot install it. http://code.google.com/p/openmeetings/wiki/InstallationOpenMeetings On the third instruction I suppose to run web installer: localhost/openmeetings/install --> yet, there is no such a thing. I have extract the openmeetings …

Member Avatar for davy_yg
0
87
Member Avatar for nana.k.denise

<?php if (isset($_POST['Login'])){ $Username = $_POST[ 'UserName' ]; $password = $_POST[ 'Password' ]; $user = 'localhost'; $pass = ''; $db = new PDO('mysql:host=localhost;dbname=ovs', $user, $pass ); $sql = "SELECT * FROM Voters WHERE UserName=:UserName"; $query = $db->prepare( $sql ); $query->execute( array( ':Username'=>$UserName ) ); $results = $query->fetchAll( PDO::FETCH_ASSOC ); foreach( …

Member Avatar for nana.k.denise
0
184
Member Avatar for msolomon.ashish

i want cash on delivery code for ecommerce here's my cart page code <?php session_start(); // Start session first thing in script // Script Error Reporting error_reporting(E_ALL); ini_set('display_errors', '1'); // Connect to the MySQL database include "storescripts/connect_to_mysql.php"; ?> <?php ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Section 1 (if user attempts to add something to …

Member Avatar for msolomon.ashish
-1
3K
Member Avatar for Mike_H

I am using the Eyesis Data Grid Control (http://www.phpclasses.org/package/4951-PHP-Display-data-from-a-database-in-a-sortable-table.html) and would like to add the Delete function as shown in Example 3 (http://www.phpclasses.org/browse/file/25088.html). The line in the sample code where this is done is: $x->addStandardControl(EyeDataGrid::STDCTRL_DELETE, "alert('Deleting %Id%')"); How do I change the "alert('Deleting %Id%')" to either a function that deletes …

Member Avatar for Mike_H
0
262
Member Avatar for happygeek

It has been [officially confirmed](http://php.net/archive/2013.php#id2013-10-24-2) that the php.net website of the open-source PHP programming language has been hacked and infected with malware. The successful breach of the site came to light yesterday morning when the Google Safe Browsing service started flagging php.net as serving up malicious scripts. This was, at …

Member Avatar for Mohammed_9
13
772
Member Avatar for iamthwee

Hey guys, At the moment I have an `if == admin then show admin form` on my views. I guess it was more for the sake of convenience rather than anything else. Is it best practice to create a separate controller and view for an admin panel and place this …

Member Avatar for iamthwee
0
933
Member Avatar for iamthwee

how to prevent this in codeigniter. The user may still wish to type this in so xss filtering is not an option

Member Avatar for diafol
0
199
Member Avatar for gemess

i was wondering how you could make a counter that shows how many people are currently on the site. how to show how many people brousing my site now with page name and how to show recentaly updated pages? you can see it here [Click Here](www.indianrajputs.com) www.indianrajputs.com please please please …

Member Avatar for iamthwee
0
133
Member Avatar for kazkuzzer007

I need help to solve my problem in making a login system. why always when login is rejected, the rejection order that I made: "You are not authorized to access this page", but that when admins are not logged in, even though I have entered the correct username and password …

Member Avatar for kazkuzzer007
0
139
Member Avatar for sanjay@srvmedia
Member Avatar for gihan.madushanka.773

I have written a code to add users into the database and validate their credentials when a user logs in. Only the added users are allowed to login and for non valid users, simply a username/password does not match error message is echoed. Password encryption and checking codes are not …

Member Avatar for iamthwee
0
287
Member Avatar for MrXortex

I got a movie search website but when I search something it says 404 page not found. [The search view](http://i.imgur.com/pxM1yS4.png) The site is working under a framework called **code igniter**. Here is the back-end code of search engine: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Search …

Member Avatar for veedeoo
0
380
Member Avatar for fobos

Hello all, im having some problem, i have a function call dbconn which i run after my session. i can successfully connect to the database and run the mysql statement outside of the function with no problems. However, when i put it in the function and return it, nothing happens. …

Member Avatar for diafol
0
186
Member Avatar for Thevenin

Hi all, I need some help with this problem. I have a function that has 2 fields, name of the folder to be created and the featured image to be put inside. This code works fine online, but when I imported it on my localhost (MAC Mavericks+XAMPP), the code creates …

Member Avatar for Thevenin
0
343
Member Avatar for iamthwee

Daft question... but in order to prevent users tampering with the item price(right click inspect element change) and accept payments via **paypal**... Is the only way to do this using the encypted form method. eg. I generate a public and private .pem cert, then change the paypal account to accept …

Member Avatar for iamthwee
0
180
Member Avatar for Nilesh_2

Hello there, For my project, I want to add notification feature where one user can send request for something and other user views by clicking button or something like that as a notification/alert similar to friend request in facebook. I dont know how to implement this feature. Thanks in advance.

Member Avatar for diafol
0
342

The End.