52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gee,selvin1990

**the below code suggested in some site to send mail with attachment. In the below code i have two attachment(TRYTEK.zip,TRYTEK.rar) in the server and with those attachment i want to send mail. But the below code is not sending mail with those attachment. Its sending only a Blank mail. Friends …

Web Development email file-stream php
Member Avatar for Ajay Gokhale
0
578
Member Avatar for dagogodboss

I have a form that is a chat apps am building for project. Now everything seems to be working fine to best of my ability. Now i want to submit the data from the form into my php script without any form of reload. That means i don't want redirection …

Web Development php
Member Avatar for Ajay Gokhale
0
408
Member Avatar for Dinesh_9

Hi everone, Currently i am working on an Pharmacy management project in MVC2 model i have written an servlet code to fetch,insert,update,delete MySQL table contents from the JSP page but my problem is i could insert the data successfully but i am failing at Update and delete here is my …

Web Development html-css java-jsp mysql
Member Avatar for Dinesh_9
0
1K
Member Avatar for flynismo

Good morning all I'm having a problem with injecting a class into the constructor of another class. I am creating an MVC framework, for learning purposes. In bootstrap.php, it loads the various classes needed, and also instantiates a few classes Code snippet for bootstrap.php below. <?php /** * file: /system/core/Bootstrap.php …

Web Development php
Member Avatar for flynismo
0
195
Member Avatar for jovstudios

Hello Guys, I have a codes for Ratings Question Using Radio Button, then i want to do is , if the user missed of the one question to be rated, then its should say, "One Question not Rated!" Can You Check if my Codes is Correct? or is there other …

Web Development php
Member Avatar for jovstudios
0
201
Member Avatar for nurul_1

I have problem with my if else statement. I want to show popup box which is a list of late submission. All i going alright, but there are problem when there are no late submission. The popup block still appear when it supposed not appear when there are no late …

Web Development php
Member Avatar for virtualsky
0
164
Member Avatar for sallaudin
Member Avatar for virtualsky
0
122
Member Avatar for keithalston

Using the easysoft JDBC-ODBC bridge to connect to an Access DB. Has been working great since CF6. Currently no issues on CF9(solaris). We're working to upgrade our servers to CF10 on Redhat and have everything working except when we attemtp to verify our data sources that use this driver we …

Web Development apache coldfusion java redhat
Member Avatar for Proxet
0
412
Member Avatar for tejasluvs

How can I convert amount in words for multiple currencies? I am using some class & functions but they have bugs & not fully functional. Does anyone have full functional and tested code/example? Thanks in advance.

Web Development php
Member Avatar for nitinr
0
882
Member Avatar for chaitu11
Member Avatar for chaitu11
0
2K
Member Avatar for haymen.roth.3

i am told t use old traditional way of SQL in MVC so created login register page but now problem is that i can't return data to VIEW from dataset. Model public ConnectionStatus Login_db(String email, String pwd, String conStr) { String hashedpwd_login = FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "SHA1"); using (SqlConnection sqlCon = new …

Member Avatar for khimmy2000
0
2K
Member Avatar for nadiam

HI, so im trying to add new rows to my table using the codes that were given but the row doesnt stick, as in it disappears just after clicking a button. Am i doing something wrong? <script type="text/javascript" charset="utf-8"> var giCount = 1; $(document).ready(function() { //initialise the table $("#tables").dataTable( ); …

Web Development
Member Avatar for nadiam
0
823
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.

Web Development php
Member Avatar for Bachu
0
133
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? …

Web Development php
Member Avatar for chocolatte.lavista_1
0
193
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.

Web Development php
Member Avatar for chocolatte.lavista_1
0
112
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 …

Web Development mysql php
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
460
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 …

Web Development display php
Member Avatar for mike julius
0
182
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'); …

Web Development php
Member Avatar for davy_yg
0
174
Member Avatar for chaitu11

<?php $con = mysql_connect("localhost","root",""); $db = mysql_select_db("abc"); if(!$db){ echo 'Could Not connect database'; } $sel = mysql_query("select * from user_registration"); ?> <script type="text/javascript" src="http://code.jquery.com/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('input[type="checkbox"]').click(function(){ //how to select multiple checkbox value here?????????? }); }); </script> <div> <?php while($row = mysql_fetch_array($sel)){ ?> <label> <input type="checkbox" name="<?php echo $row['user_id']; …

Web Development javascript-jquery
Member Avatar for Ajay Gokhale
0
2K
Member Avatar for Wendy_1

Hi all master is posible srcape a web java applet using curl php? please help

Web Development java php
Member Avatar for Wendy_1
0
724
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 …

Web Development email php
Member Avatar for chaitu11
0
172
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); …

Web Development php session
Member Avatar for Alhussaini.Eng
0
255
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" …

Web Development php
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) …

Web Development image php
Member Avatar for Arunkumar k v
0
117
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 …

Web Development php session xml
Member Avatar for pooja_3
0
206
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 …

Web Development encryption php sql
Member Avatar for urtrivedi
0
403
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 …

Web Development php xml
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

Web Development php
Member Avatar for jovstudios
0
165
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 …

Web Development php
Member Avatar for sDJh
0
141
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( …

Web Development mysql php
Member Avatar for nana.k.denise
0
188
Member Avatar for Violet_82

Hi all, I wonder if somebody can help me with this. I have this situation: I have a header div with a heading and when I click on it another div hiddenDiv slides down or slides up (I am using the slideToggle method). What I want to do also is …

Web Development image javascript
Member Avatar for Violet_82
0
462
Member Avatar for mateusz.baran1

what iam trying to do is get field parameter and run mysql query to update(decrement) value from field quantity, can any one tell me how to do that? <form method="post"> <table class="bordered"> <thead> <tr> <th>No</th> <th>Drug Name</th> <th>Strength</th> <th>Quantity</th> <th>Dis Qty</th> </tr> </thead> <% try { String query="select * from …

Web Development java-jsp mysql
Member Avatar for stultuske
0
185
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 …

Web Development php
Member Avatar for Mike_H
0
266
Member Avatar for ponedelnik

In one of my applications, I had to toggle the background of a box between two colors, say blue and red. As I like to store an information in only one place, I decided that this place would be the box itself and that I would check the current color …

Web Development
Member Avatar for ponedelnik
0
163
Member Avatar for Siberian

Hi, why is it, when you [click](http://jsfiddle.net/WildWind/d7jhN/) "whatever", the string "hello there" isn't written with the ID#thename input box ?

Web Development javascript
Member Avatar for JorgeM
0
107
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 …

Web Development php
Member Avatar for iamthwee
0
961
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

Web Development php
Member Avatar for diafol
0
203
Member Avatar for nadiam

hey guys so i have these drop down menu using ul and anchor and when i click on one an image should be displayed. the problem is when i click it the image appears but then disappears right after, like a second. html: <ul> <li><a href="" onclick="document.getElementById('banquetsix').style.visibility='visible';">6 Seater</a></li> <li><a href="">8 …

Web Development image javascript
Member Avatar for patk570
0
853
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 …

Web Development php
Member Avatar for iamthwee
0
136
Member Avatar for iamthwee

codeigniter problems with xss security. I was reading this article what is the best practice? http://ponderwell.net/2010/08/codeigniter-xss-protection-is-good-but-not-enough-by-itself/ Should I use htmlentities instead? However, it seems long winded because it doesn't convert £ signs effectively unless you set the character encoding to UTF-8

Web Development
0
150
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 …

Web Development html-css php
Member Avatar for kazkuzzer007
0
141
Member Avatar for sanjay@srvmedia
Member Avatar for Ajay Gokhale
0
217
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 …

Web Development encryption mysql php
Member Avatar for iamthwee
0
304
Member Avatar for mattyd

Hello. I have been doing research for about a week on form validation (JS, jQuery, CSS). I already have a nice form, but I need to add the validation elements. I'm a bit stuck. I know what I do and **do not** want with the validation: **Want**: * Clean, nice …

Web Development html-css javascript
Member Avatar for iamthwee
0
292
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 …

Web Development php seo
Member Avatar for veedeoo
0
396
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. …

Web Development php session
Member Avatar for diafol
0
190
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 …

Web Development php
Member Avatar for Thevenin
0
360
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 …

Web Development encryption php
Member Avatar for iamthwee
0
183
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.

Web Development php
Member Avatar for diafol
0
353

The End.