52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BadManSam

Hi, when I try to use a SELECT statement in php, I get an error: > Resource id #18 <?php include("include/session.php"); $get = mysql_query("SELECT value FROM settings WHERE id=2"); echo $get; ?> The file session.php contains the database credentials .etc and it's correct. But then when I try to echo …

Web Development mysql php session
Member Avatar for Derice
-1
421
Member Avatar for dean.ong.14

Notice: Undefined variable: result in C:\Users\User\Desktop\Desktop\htdocs\trip1.php on line 67 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\Users\User\Desktop\Desktop\htdocs\trip1.php on line 67 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> …

Web Development html-css mysql php
Member Avatar for Assembly Guy
-1
8K
Member Avatar for nathanpacker

I need to create a very simple script with php. There is a form with only one input field, for the user's email address. They click submit, and the script sends an email to that address, while attaching a pdf file that I specify in the script. I've found many …

Web Development email pdf php
Member Avatar for dineshsjce
-1
2K
Member Avatar for JazzibAli

This is a part of addtobasket.php file i want to change the normal submit button with my stylish one but dont know how to do. here is code... ...require("header.php"); echo "<form action='addtobasket.php?id=". $_GET['id'] . "' method='POST'>"; echo "<table cellpadding='10'>"; echo "<tr>"; if(empty($prodrow['image'])) { echo "<td><imgsrc='./images/image_not_found.png' width='50' alt='". $prodrow['name'] . "'></td>"; …

Web Development gui html-css php
Member Avatar for minitauros
-1
367
Member Avatar for Mapper99

Hi there, I have some code which quite nicely uploads PDF files to the server: [CODE] if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) { //Check if the file is JPEG image and it's size is less than 350Kb $filename = basename($_FILES['uploaded_file']['name']); $ext = substr($filename, strrpos($filename, '.') + 1); if (($ext == "pdf") …

Web Development file-system pdf php web-server
Member Avatar for wandi90
-1
288
Member Avatar for lewashby

I have a very small sqlite3 database with one row consisting of three columns but I can get the page to display the row to save my life. So far all I've been able to get the page to display is the first column of the one row that's in …

Web Development php sql sqlite
Member Avatar for lewashby
-1
1K
Member Avatar for hirenpatel53

Dear all i have allready Created web application and used skin file for that application now i am planing to change look of my application for that need to change skin file but problem is i am not a good imaginative so need some sides which provides attractive skin file …

Web Development asp asp.net
Member Avatar for Yoselin
-1
598
Member Avatar for BadManSam

NB: I'm a beginner at php programming. Hi, I've been trying to add an 'Online' or 'Offline' plugin to my login system. To display the username you use thr following: $session->username In the database, I have a table for active users. When a user logs in, he is added to …

Web Development php session
Member Avatar for BadManSam
-1
799
Member Avatar for maggoteer

I'm currently trying to modify 2 scripts to work together. I've gotten everything working except the script isn't passing any, or the incorrect information when it's trying to create a checkbox. Here's the code I have so far: if (strlen($q)>0) { $hint=""; for($i=0; $i<($x->length); $i++) { $f=$x->item($i)->getElementsByTagName('id'); $g=$x->item($i)->getElementsByTagName('item'); $h=$x->item($i)->getElementsByTagName('price'); $y=$x->item($i)->getElementsByTagName('keyword'); …

Web Development javascript php
Member Avatar for stultuske
-1
253
Member Avatar for elamigosam

Hi I am interested in a basic, and simple code for to check for a user and make sure he only has access to such pages, I am just starting to undestand PHP, if you can help me and not make it really complicated, it would rally help . tanks.... …

Web Development php
Member Avatar for pp0007
-1
322
Member Avatar for tossot92

I have script [(Here)](http://jsfiddle.net/8afkT/) that check the either specific font is installed or not on local computer. In both conditions it shows the alert box. Now I want some modification. Please help. I want that: * When specific Font is "NOT INSTALLED" show [this](http://www.emanueleferonato.com/2007/08/22/create-a-lightbox-effect-only-with-css-no-javascript-needed/) CSS based lightbox rather then alert …

Web Development html-css javascript
Member Avatar for Troy III
-1
275
Member Avatar for pmark019

I have a JSP with a button. This button is disabled. How can I make the JSP keep on reloading until isCheck becomes true and it will make the button enabled? Here is my javascript: var usbAvailable = <%=CheckUSB.getInstance().getStatus()%>; function confirmSound(){ HyPAS.Sound.confirm(); HyPAS.LED.on(); location.href='ScanJobServlet' } function checkUSB(){ <%response.setHeader("Cache-Control","no-cache");%> if(usbAvailable==false) { …

Web Development java-jsp javascript
Member Avatar for asmira
-1
2K
Member Avatar for gaurav_9

Hi I am migrating code from javascript to jquery. What would be the equivalent jquery of the following javascript. document.getElementById("#elementname").getElementsByTagName('tagname'); Cheers.

Web Development javascript javascript-jquery
Member Avatar for Troy III
-1
2K
Member Avatar for hirenpatel53

Hi all i am looking for some readymade skinfiles for asp.net so if there is any website providing this service Please let me help it out Thanks in advance

Web Development asp asp.net
Member Avatar for BMXDad
-1
511
Member Avatar for adeeb.keyaam

i am using http://bojanmauser.from.hr/bvalidator/ this script to validate my form, now i am stack with a problem, want to set max file limit for image file upload. but i am unsuccessful everytime, can anybody help me to get rid of this, advance thanx to all, who is reading this discussion …

Web Development file-system image javascript
Member Avatar for Troy III
-1
359
Member Avatar for divyakrishnan

Hi.. Any PHP code to display the IPaddress of all systems which are connected in a LAN ? Thanks in advance

Web Development display lan-wan php
Member Avatar for |-|x
-1
3K
Member Avatar for spyece

Hello, I want to click the skip ad buttom when the buttom appears, can someone please explain me how this can be done using jquery? Here is the Code <!DOCTYPE html> <html> <body style="margin:0px;padding:0px;"> <iframe src="http://bc.vc/7VsNj6" style="width:100%; height:100%; border:none;" id="frame"> <p>Your browser does not support iframes.</p> </iframe> </body> </html> Thanks …

Web Development javascript javascript-jquery
Member Avatar for minitauros
-1
329
Member Avatar for probytes

It is not easy to make the choice of a PHP framework. A lot goes into choosing the proper PHP framework especially if you want to use it on a long term basis. A wrong choice of PHP framework may lead to certain disadvantages, like, increased development time, the need …

Web Development caching php
Member Avatar for LastMitch
-1
313
Member Avatar for daniel36

I want to close my current window in javascript and want a prompt alert to close or stay here when window is closed by me. i have used onbeforeunload property of body tag.

Web Development javascript
Member Avatar for Troy III
-1
602
Member Avatar for razamughal67

Hello every one i want to send emails to other peoples. i want to do this. when i type any email adress in text field and when we click send button to send email to text field Email address. simply i want to send mail different email addresses. if any …

Web Development email php
Member Avatar for razamughal67
-1
293
Member Avatar for akkbkht

Hello. I have tired too much ways to overcome this issue but can't find a way yet. I am making a user defined function, when click a "And new row", This function will be called and a new row will be added. There in first cell, a dropdown menu will …

Web Development php
Member Avatar for pzuurveen
-1
293
Member Avatar for raghasudha-r

[CODE]<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="_Default" %> <asp:Content ID="Home" ContentPlaceHolderID="Home" runat="server"> <script type="text/javascript" language="javascript"> function Validate() { var StartDate = document.getElementById[COLOR="Red"]('<%=txtstart.ClientID %>');[/COLOR] var EndDate = document.getElementById('<%=txtEnd.ClientID %>'); if (StartDate.value =='') { alert("Pick Start Date"); StartDate.focus(); return false; } else if (EndDate.value =='') { alert("Pick End Date"); EndDate.focus(); …

Web Development asp.net javascript
Member Avatar for raghu_005
-1
258
Member Avatar for Echo89

A little find and replace function for PHP, not tested, but theoretically should work.

Web Development php
Member Avatar for Echo89
-1
2K
Member Avatar for mr0277

I have a control wrapped in an UpdatePanel that is part of an iframe. The control grows on user's selection and images appear. Correspondingly I have to extend the iframe's height. The problem is I get the iframe's height before appearing images are loaded, hence I get the content cutoff. …

Member Avatar for Troy III
-1
299
Member Avatar for surajdgiri

<?php include 'includes/config.php'; include 'header.php'; $check = ''; $TOTAL_FILE = 0; $rowsPerPage=12; $PATH = ''; if($parentid != 0) { $folddetail = $db->query("select * from category where id = ".$parentid, database::GET_ROW); $seq = $folddetail['pathc'];//$db->query("select pathc from category where id = ". $parentid, database::GET_FIELD); $PATH = '» <a href="'.BASE_PATH.'">Home</a> '; $PATH .= $seq; } …

Web Development php
Member Avatar for phoenix_2000
-1
353
Member Avatar for daniel.conlinjr.1

Addpages.php <?phpclass DivineAddPages { private function DBString($string) { return str_replace(array("''", "\\"), array("''", "\\\\"), $string); } public function Add($link, $title, $content, $comments = true) { $result = mysql_query("SELECT ID FROM wp_posts WHERE post_name = '{$this->DBString($link)}' LIMIT 1"); if ($result) { list($post_id) = mysql_fetch_row($result); } else { $post_id = 0; } $comment_status …

Web Development php
Member Avatar for diafol
-1
374
Member Avatar for dottomm

Hello. I'm getting an undefined index error with the following code and I can't for the life of me figure out why. Any insight would be greatly appreciated. I'm using an html form and a PHP file to upload images to a directory and write the rest of the form …

Web Development php
Member Avatar for earlxph8
-1
20K
Member Avatar for Pankaj18

Hi, I am using below code to check only one radio button which is in gridview item template. But it allow multiple selection as CheckBoxes. My code: [code=asp.net]<columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate > <asp:RadioButton ID="rd1" GroupName="rdBox" runat="server" /> </ItemTemplate> </asp:TemplateField> </columns>[/code] Please help me. Thanks ! Pankaj Singh

Web Development asp.net
Member Avatar for arun1123
-1
4K
Member Avatar for while(!success)

Hi guys, how would I translate the functionality of this anchor: <a style="font-size: small;" href="javascript:void(0)" onclick="document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;">Blahblah</a> To an asp.net imagebutton control? This is what I have come up with: <asp:ImageButton ID="ImgBtn" runat="server" ImageUrl="~Images/Go.gif" OnClientClick="<script type='text/javascript'>document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;</script>" /> But its not coming out the same way. Can anyone help me …

Web Development asp.net javascript
Member Avatar for JorgeM
-1
789
Member Avatar for xbat

ok first off I know how to make a update page with usernames and user info no problem.. I know how to do stock with the stock=stock -%d as a interger but what I am having a hard time with is I have no clue how to say for example …

Web Development mysql php
Member Avatar for lolumadbro
-1
307
Member Avatar for Sisil

m looking for a Javascript function or similar which will automatically load a different stylesheet randomly each time a page is visited. I have found several which work on user selection, or on browser size. My Javscript coding isn't up to adapting them sad If anyone knows of an example, …

Web Development html-css javascript
Member Avatar for Taywin
-1
410
Member Avatar for a.abhishek1229

I am getting an error..Need help.. " Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\test2.php on line 24"; line 24 is --"header("Content-Type: application/xls");"-- <?php $DB_Server = "localhost"; //MySQL Server $DB_Username = "root"; //MySQL Username $DB_Password = ""; //MySQL Password $DB_DBName = "test"; //MySQL Database Name $DB_TBLName = "sample"; //MySQL Table …

Web Development microsoft-office mysql php
Member Avatar for LastMitch
-1
307
Member Avatar for ashishrevar

How to write in CSV file using PHP script? Actually I was also searching for that too. It is kind of easy task with PHP. fputs(handler, content) - this function works efficiently for me. First you need to open the file in which you need to write content using fopen($CSVFileName, …

Web Development file-system php
Member Avatar for leviathan185
-1
251
Member Avatar for achiman

can anyone please tell how to write a simple php code that will convert dollar, euro and yen to pounds. im using a form that will prompt customers to enter a amount they want to convert. thanks in advance

Web Development php
Member Avatar for PatrikIden
-1
4K
Member Avatar for andyy121

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <?php include 'func.inc.php'; ?> <title>SEARCH</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h2>SEARCH</h2> <form action="" method="post"> <p> <input type="text" name="keywords"/> <input type="submit" value="Search"/> </p> </form> <?php if (isset ($_POST['keywords'])){ $suffix =""; $keywords =mysql_real_escape_string(htmlspecialchars(trim($_POST['keywords']))); $keywords =$_POST['keywords']; $errors = array (); if (empty …

Web Development php
Member Avatar for LastMitch
-1
393
Member Avatar for Silverion

Hello all, I am currently working on our website, [url]www.northpointbaptist.com[/url], and we have recently updated it with a major overhaul of the site. My question is that I would like to know how to implement a live video stream into it on a seperate page (where the user just clicks …

Web Development asp.net file-stream video
Member Avatar for SQLpower
-1
2K
Member Avatar for Clanham

I am looking to add a video section to a local community site. I am wanting to set it up very simlar to Youtube, but it would have a different purpose. The website would also have other password protected pages therefore the video section could not have a seperate log …

Web Development video
Member Avatar for clone website
-1
449
Member Avatar for Graphix

Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for JavaScript! It uses a words file, on the bottom of this post you will see a small example of a few words. The source …

Web Development javascript politics puzzle
Member Avatar for rotten69
-1
2K
Member Avatar for ganges

employee_list.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD><TITLE>Employee List</TITLE></HEAD> <BODY> <%@ page import="java.sql.*" %> <%@ page import="java.lang.ClassNotFoundException" %> <% Statement st = null; ResultSet rs = null; Connection conn = null; try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/"+"Hibernate MySQL","root","root"); st = conn.createStatement(); …

Web Development java java-jsp mysql
Member Avatar for peter_budo
-1
2K
Member Avatar for Khav

I am having kind of stupid problem:P <?php echo $url; // In my php files $url contain multiple values ?> This works fine The different values of url get displays properly For e.g http://www.google.com http://www.daniweb.com That's perfect Now when i tried to echo the variable in some html <?php $url …

Web Development display html-css php
Member Avatar for jasonsarino
-1
43K
Member Avatar for gargg321

Hey folks, I am fairly new in the field of PHP. I have to prepare a module that will show the CPU utilization, current processes, memory utilization and disk quota of a remote system when asked on a PHP page. I am clueless about how to proceed in this matter. …

Web Development php web-browser
Member Avatar for parisssss
-1
621
Member Avatar for mayreeh

kindly advise on how i can manage to send bulk sms where by, phone numbers are retrieved from my database.

Web Development php
Member Avatar for newbie1234
-1
370
Member Avatar for manjulabai

Please help me how I create the login form using c# in asp.net

Web Development asp asp.net c#
Member Avatar for brianmaddox
-1
526
Member Avatar for scorpionz

Hi This Is ScorpionZ I have an Image Gallery and have a PHP code toooo,,,,I Wana know How to Enlarge image when my mouse Over Image Here is the Code: [code=html]<html> <head> </head> <body> <table class="details-box-products" width="511" border="1"> <tr> <td width="213" rowspan="4" bgcolor="#EFEFE9" align="center"> <strong><a href="#"><img src="./uploaded_images/<?php echo $prod_up_img; ?>" …

Web Development image javascript php
Member Avatar for eidshow1
-1
2K
Member Avatar for jamesofknight

Hey guys, We have a requirement for a one to one chat from one of our clients for a social media kind of project we are doing. The problem is that we need it in quick time so i would rather use an already made component that is out there. …

Member Avatar for sufyan2011
-1
528
Member Avatar for bhagyap

Hi.. I am populating my gridview as follows:- protected void Button1_Click(object sender, EventArgs e) { string con = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlDataAdapter sda = new SqlDataAdapter("Select * from DropDownFilter", con); sda.Fill(dt); GridView1.DataSource = dt; GridView1.DataBind(); } and then i have checkbox for every row now i want to delete the checked rows …

Web Development asp.net
Member Avatar for bhagyap
-1
277
Member Avatar for HughMannity

When I type in "RangeValidator1.MaximumValue = "999" in the code-behind, in let's say the Page_load event, it does not recognize the "RangeValidator1" in the intellisense. Here is how the GridView and RangeValidator are defined: [CODE] <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID_KEY" DataSourceID="SqlDataSource5" EmptyDataText="There are no data records to display." …

Web Development asp.net
Member Avatar for postonoh
-1
308
Member Avatar for thunder111

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\Ayyam v3\gate.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Ayyam v3\gate.php:16) in C:\AppServ\www\Ayyam v3\gate.php on line 36 am new with php please help me <?php session_start(); require_once('Connections/connector.php'); $uid= $_POST['uid']; …

Web Development php session
Member Avatar for Biiim
-1
254
Member Avatar for amulet_john

Hi Everyone... I need your help please... I want to store my extracted string using list() function... Here is my code below and it doesn't work.. Is there a list() function in Javascript? [code] var Mystring; var H; var M; var S; Mystring="01:00:00"; list(H,M,S)=Mystring.split(":"); document.write("Hours: "+H); document.write(" Minutes: "+M); document.write(" …

Web Development javascript php
Member Avatar for amulet_john
-1
283
Member Avatar for Sailor_Jerry

I need to suspend processing in my script for a few seconds, and i am not sure how. Thanks, sj

Web Development javascript
Member Avatar for akmr
-1
7K

The End.