39,323 Topics

Member Avatar for
Member Avatar for chaitu11
Member Avatar for davy_yg

http://www.infracom.co.id/infracom/InfRaAdmIn337/index.php index.php <div class="login-header"> <div class="logo clear"> <img src="http://img.cr7.web.id/assets/wds-logo-circle.png" alt="" class="picture" /> <span class="textlogo"> <span class="title"><?php echo strtoupper($config['sitename']); ?></span> <span class="text"><?php echo strtoupper(ADMIN_TPL); ?></span> </span> </div> </div> Line 89: <span class="title"><?php echo strtoupper($config['sitename']); ?></span> How to fix the error? I cannot find what $config['sitename'] associated with.

Member Avatar for Bachu
0
130
Member Avatar for pritaeas

A while ago I explained how you could tag articles (see [this thread](http://www.daniweb.com/web-development/php/threads/387961/php-code-to-show-related-posts-on-a-blog)). Now you get a full working example. This code and the SQL script is also available on GitHub. The attached MySQL dump needs to be imported into your database, and you must update the credentials in the …

Member Avatar for aufche
2
907
Member Avatar for vexer007

Hi, I've run into absolute brickwall and am really desprate for your help please. I have a MYSQL Database with two Tables called user_comment and the second user_table. When a user register with the site, their details are kept in the user_table. the second table user_comment is so that users …

Member Avatar for chocolatte.lavista_1
0
406
Member Avatar for chocolatte.lavista_1

Please help me :) how to do this? Student post an assignment to the supervisor. Supervisor will receive that assignment and approve it whether click button YES or NO. The question here is, how to show YES or NO statement at the student page after supervisor has approved their assignment? …

Member Avatar for chocolatte.lavista_1
0
184
Member Avatar for Phesheya

I want to modify a table columns and rows the way I want them, but i have a problem on doing that please help me.

Member Avatar for chocolatte.lavista_1
0
110
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
455
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
721
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
3K
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
162
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
139
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
263
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
779
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
951
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
200
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

The End.