52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ebanbury

Hi I know I have been going round the houses with this image resizing quite a bit...but still trying to do it. Some progress has been made. This is not using Imagick, as I have no idea about this library. So what the below code is now doing is picking …

Web Development image php
Member Avatar for ebanbury
0
222
Member Avatar for Vod4All.Net

hello all, i am new here, i saw your community and i think to start here :) i opend new site base on wordpress i got this prob : Warning: Cannot modify header information - headers already sent by (output started at /home/down/domains/4downyoutube.com/public_html/wp-content/plugins/youtubefreedown/stream.php:1) in /home/down/domains/4downyoutube.com/public_html/wp-content/plugins/youtubefreedown/curl.php on line 185 this is …

Web Development file-stream php wordpress
Member Avatar for Matthew N.
0
1K
Member Avatar for wilko1995

Hi, How would i go about creating a menu like the one that this website has? [URL="http://oas.com.au"]http://oas.com.au[/URL]

Web Development javascript
Member Avatar for AleMonteiro
0
90
Member Avatar for vssp

hi friends I have run the one php script live server([URL="http://www.live.com/samplee.php"]www.live.com/samplee.php[/URL]) . this file access the staging server and run the staging server php file and display the result. But I need the live server address server name also display in the staging serevr php page result page. How can …

Web Development php
Member Avatar for bab2501
0
786
Member Avatar for joslup9

php and mysql form Hi all, how I can add values ​​in a table to a combo box in html .. eg: the user's table has the id 1,2,3,4 and that using a query, being able to move to a combo box, to make a selection of id?. Greetings and …

Web Development mysql php
Member Avatar for joslup9
0
313
Member Avatar for rosstafarian

Hi guys. Im new to PHP by necessity really due to a friend of mine asking me a favour. I know vb.net so not completely new to the whole programming scene. But anyway, I have approx 5 drop down lists. Each item in each drop down has a value "option …

Web Development php
Member Avatar for diafol
0
143
Member Avatar for Dani

Hi, How can I use preg_replace to determine if a string contains a word beginning with a pattern, and if it does, remove it? Basically I want to capture query strings from a search, but throw away search modifiers. For example, the search query string: site:daniweb.com query would just become …

Web Development php regex
Member Avatar for diafol
0
2K
Member Avatar for onsir

i have code like this in page1.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <h1>Test</h1> <script language="javascript"> function JSGetSelectedItem() { var dropdownIndex = document.getElementById('lang').selectedIndex; var dropdownValue = document.getElementById('lang')[dropdownIndex].text; alert("Hello JSCript " + dropdownValue); } </script> <!-- to fill combobox i had get from …

Web Development java-jsp
Member Avatar for anand01
0
3K
Member Avatar for Jeroen van Zijp

Hey all, To make it more user-friendly, I decided I want to add a JS form validation to my contact form. The essence of the JS should be that it calls for a check.php?input= with the entered captcha code appended. Then the PHP script would echo "valid" or "invalid". For …

Web Development javascript php
0
107
Member Avatar for diyez treze

[CODE]<form action= '1stform.php' method = "POST"> <fieldset border = "5"> <table> <tr> <td>Check Availability</td> </tr> <tr><td> <p>Garden Room: </label> <select name="room_GR"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option …

Web Development php sql
Member Avatar for diafol
0
139
Member Avatar for ruchi18

Hi I have a project creating a website in asp.net and there i am creating three project for different access layers like data access ,business access but when I am using that namespace in my project getting error at build time type or namespace not found however I add refrence …

Web Development asp.net
Member Avatar for ruchi18
0
144
Member Avatar for Pytho

Hi all I'm making a program (for my use only) which contains all the available information about atoms. I want to collect the information from Wikipedia, but if I copy & paste it takes my whole life! For example, heres the [URL="http://fi.wikipedia.org/wiki/Vety"]Wikipedia page[/URL] (sorry, it's in Finnish because I want …

Web Development php
Member Avatar for Pytho
0
182
Member Avatar for kaosjon

Hi, i have written a section of code for my website and i have been trying to get it to work but whatever i try it will not work Here is the code [CODE]$upgrade_user = mysql_query("SELECT * FROM user_info WHERE id='$id'"); while($row = mysql_fetch_array($upgrade_user)){ $real_balance = $row["$balance"]; $real_rank = $row["$rank"]; …

Web Development php
Member Avatar for cwarn23
0
100
Member Avatar for MichaelBerh

I am trying to make my website display a different header depending on the page. If the page is 'index.php', it should include 'index-header.php'. If it isn't 'index.php', then it should include 'page-header.php'. So far, I have the following code: [CODE] <?php if($_SERVER[SCRIPT_NAME] == '/index.php'){include (index-header.php);} else { include ('page-header.php'); …

Web Development php
Member Avatar for cwarn23
0
162
Member Avatar for tusharbhatia

Hi, I am trying to search for numbers in an array - "explodedArray" which has been "exploded from a text entry. The aim is to be able to allow the user to type something in like " 5 + 5 " or "5 plus 5" or even "5 plus 5 …

Web Development php
Member Avatar for tusharbhatia
0
149
Member Avatar for Moss ali

Hi Dudes i need a javascript code for code behind using c#.When user click on delete button the popup dialog open Do you really want to delete Yes/No on Yes i want to put my Delete Method there.Pls help me.Thanks in advance.

Web Development asp.net javascript
Member Avatar for nakor77
0
225
Member Avatar for davy_yg

Image_gallery.php [CODE] $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo '<p align="left">Connected successfully'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } //Save File if (isset($_REQUEST['save'])){ if (empty($_FILES['uploaded_file'])){ echo "Tidak ada file yang diupload."; }else{ …

Web Development php
Member Avatar for mschroeder
0
426
Member Avatar for a asif

I want to create a visual info system just like google earth. the difference being that it would help people search important educational, industrial, historical sites. what environment should i preferably go for? php or asp.net. i am new to both these env.s so kindly recommend the one that is …

Web Development php
Member Avatar for diafol
0
127
Member Avatar for cleggy1987

hi i am trying to call the Persons() from the user_friends() to get the data for the users it can grab 1 array but when its a multiple array i get this 1111ttTTdd1111110011ee00pp22ttUUPP1111iiSSWWRRii2211HHBB can some one help me please. [CODE]<?php class profile { // Get Person public function Persons($uid) { …

Web Development php
Member Avatar for cleggy1987
0
187
Member Avatar for davy_yg

[CODE] <?php // a) class LongName { var $firstname = " "; var $middlename = " "; var $lastname = " "; function firstname($string) { echo "First Name : ". $string; } function middlename() { if (middlename){ echo "Middle Name : ". $this -> middlename; } else { echo "Middle …

Web Development php
Member Avatar for davy_yg
0
140
Member Avatar for deebi

how can i load the browser extensions into my website?

Web Development asp.net web-browser
Member Avatar for deebi
0
113
Member Avatar for David 78

Hi to you guys, I've just been trying to sort this out...I know how to prevent a page load / refresh and I know how to get PHP ID from a html href link...but I have no clue how I can get the value and prevent the page from reloading …

Web Development php
Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for anand01

Hi all, I am learning j2ee with the help of this forum . First thanks for all of your replies realy that makes me to know more things . Now i have doubt, i don't know whether it is silly or not . How does RequestDispatcher works? I know it …

Web Development java-jsp
Member Avatar for anand01
0
112
Member Avatar for anand01

hi everyone, Am doing project for profit and loss account,I need to display daily expediences in graph format for that am using jquery bar graph its working separately when i integrate its not working properly. i used the following code for forward .. [CODE] request.setAttribute("listvalue", list); RequestDispatcher dispatcher = request.getRequestDispatcher("/ViewProfitLoss.jsp"); …

Web Development java-jsp
Member Avatar for anand01
0
288
Member Avatar for nakor77

Is there not a location here for ASP.NET Tutorials? I see the one for code snippets, is that supposed to be for both snippets and tutorials? I've seen a couple of the languages with a specific tab for tutorials but haven't found one in the ASP.NET forum yet.

Web Development asp asp.net
Member Avatar for dnanetwork
0
115
Member Avatar for calebcook

Hi. I'm not sure if this is possible: I found out that Blogger allows you to email text, images, etc to a unique email address, and then it'll post the email as a blog post. I'm trying to create a system like that for my client. Is it possible to …

Web Development email php
Member Avatar for mschroeder
0
184
Member Avatar for onus

Here is a small PHP code which I am not clear with. [CODE]/** * Form for configurable Drupal action to beep multiple times */ function beep_multiple_beep_action_form($context) { $form['beeps'] = array( '#type' => 'textfield', '#title' => t('Number of beeps'), '#description' => t('Enter the number of times to beep when this action …

Web Development php
Member Avatar for cereal
0
125
Member Avatar for tapuwa2002

I have made a select statement with a date condition seems like its not reading the date condition please check the code below [CODE] Select * From tbltest WHERE (((Validity.ToDate)<><cfqueryPARAM value = "#31/8/2011#" CFSQLType = 'CF_SQL_DATE'>) [/CODE] Please help I don't want dates that are equal to 31/08/2011 its getting …

Web Development coldfusion
Member Avatar for arrgh
0
258
Member Avatar for Violet_82

Hi all, I am in the process of redoing my website and I have done pretty much all the html and css for it ([url]http://antobbo.webspace.virginmedia.com/photogallery/test/home.htm[/url]), so now I would like to add some javascript/jquery. This is essentially what I would like to achieve. On this page [url]http://antobbo.webspace.virginmedia.com/photogallery/test/gloom.htm[/url] I have a …

Member Avatar for Violet_82
0
957
Member Avatar for keyur.smith

Required field: [code] <asp:textbox id="textbox1" runat="server"/> <asp:RequiredFieldValidator id="valRequired" runat="server" ControlToValidate="textbox1" ErrorMessage="* Please enter a value" Display="dynamic">* </asp: [/code] how can i put the vlidation correctly

Web Development asp.net
Member Avatar for dnanetwork
0
99
Member Avatar for sun-tzu

I just made this code today for a site I'm working on and figured people may try to improve it. To use: [CODE] $("#randomize").randomize(); [/CODE] [CODE=HTML] <!DOCTYPE HTML> <html> <head> <title>Random Pick Test</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js"></script> <script type="text/javascript" src="randomize.jQuery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#randomize").randomize({ direction: 'topToBottom', evenBG: '#FFF', evenFG: '#000', …

Member Avatar for Taywin
0
707
Member Avatar for AODfan

Hello, New to JavaScript and I have an assignment where one piece of it needs to have the first name, last name, area code, and phone number when prompted by a function, once that info is had, it then needs to use the constructor function that is there to process …

Web Development javascript
Member Avatar for Taywin
0
202
Member Avatar for cjohnweb

Hey there, I'm still kinda learning JS. I can't figure this one out. I googled and discovered the issues is with placing the <!DOCTYPE html> tag at the top, but how to resolve the issue? I've a document with some Javascript and JQuery in it, it works great! I add …

Member Avatar for Taywin
0
2K
Member Avatar for vizz

Following code shows live search box. But it does not disappear when clicked on page anywhere or pressing escape key. How to hide search result when clicked anywhere or pressed escape key? index.html [CODE]<script type="text/javascript" src="jquery.js"></script> </script> $(document).ready(function(){ $(".search").keyup(function() { var searchbox = $(this).val(); var dataString = 'searchword='+ searchbox; if(searchbox=='') …

Web Development html-css javascript-jquery php
Member Avatar for mschroeder
0
267
Member Avatar for deceivingrakesh

I'm having a problem with css positions !! i want the position of an image to be fixed when the user scrolls till some point and the position should be set to relative after that . Thanks in advance !

Web Development javascript
Member Avatar for Taywin
0
128
Member Avatar for newbie14

Dear All, I would like to generate pdf document via my php page which are based on mysql data? Any recommendation so far I have seen fpdf and tcpdf. Which one will be better or is there any better tool for it? Thank you.

Web Development mysql pdf php
Member Avatar for chrishea
0
88
Member Avatar for cdoggg94

This is what I have for a main page and form and upload code for an image. The image information is stored in a Blob field in phpMyAdmin. [CODE] <?php error_reporting(0); mysql_connect("sql5c1d.megasqlservers.com","vincastweb356440","fakepassword") or die(mysql_error()); mysql_select_db("phpmy1_vincastweb_com") or die(mysql_error()); $picture = $_FILES['image']['tmp_name']; $brand = $_POST['brand']; $year = $_POST['year']; $story = $_POST['story']; $description …

Web Development mysql php
Member Avatar for cdoggg94
0
248
Member Avatar for lailalaila

Hi there, I'm trying to figure out how I can have a script add up the number of radio buttons selected for each category. For example, on a test, I'll have three options for each question. I want to add up how many A's are selected, how many B's are …

Web Development javascript
Member Avatar for MartinRinehart
0
123
Member Avatar for davy_yg

event_manager.php [CODE] // define variable $id = isset($_POST['id']) ? $_POST['id'] : ''; $event = isset($_POST['event']) ? $_POST['event'] : ''; $tempat = isset($_POST['tempat']) ? $_POST['tempat'] : ''; $mulai = isset($_POST['mulai']) ? $_POST['mulai'] : ''; $selesai = isset($_POST['selesai']) ? $_POST['selesai'] : ''; $keterangan = isset($_POST['keterangan']) ? $_POST['keterangan'] : ''; session_start(); // undefined …

Member Avatar for pritaeas
0
223
Member Avatar for drelix01

Every first time I create a .txt on my server using a Form, it writes like a charm, but when I add a new line in the .txt using also the Form, and view the .txt from a simple file browser made by PHPToys the new line in the .txt …

Web Development html-css php
Member Avatar for cereal
0
120
Member Avatar for chenschel

Hi and thanks ahead of time: I need an editable gridview with an Access database as it's source. The findcontrol is not finding control in gridview (dropdownlist). I have the following gridview: [CODE] <asp:GridView ID="gvRescue" runat="server" AutoGenerateColumns="False" onrowcancelingedit="gvRescue_RowCancelingEdit" onrowediting="gvRescue_RowEditing" onrowupdating="gvRescue_RowUpdating" onrowdatabound="gvRescue_RowDataBound"> <Columns> <asp:TemplateField HeaderText="ID"> <ItemTemplate > <asp:Label ID="lblID" runat="server" Text='<%# …

Web Development asp.net open-source
Member Avatar for chenschel
0
991
Member Avatar for jpknoob

Hi, i am trying to make a form that when a button is clicked, a hidden div is displayed with radio buttons. i have managed to do this, however, the pagerefreshes and after a few seconds the page resets back to normal. can anyone explain what i'm doing wrong. My …

Web Development javascript javascript-jquery
Member Avatar for gotboots
0
203
Member Avatar for deepak.marur

I'm ExtJS newbie. I need to send the contents of a ExtJS Textarea to the backend server for saving (autosave facility) as the user types in. How do I buffer the contents and push the buffer to the server after some threshold value. A code sample would greatly help me. …

Web Development javascript
Member Avatar for jogesh_p
0
326
Member Avatar for davy_yg

input_berita.php [CODE] $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $isiBerita = isset($_POST['isiBerita']) ? $_POST['isiBerita'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM berita WHERE id =".$_REQUEST['id']) …

Web Development php
Member Avatar for pritaeas
0
260
Member Avatar for davy_yg

[CODE] $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; //Hapus berita // undefined index: mode if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode'])){ if ($_REQUEST['mode'] == "delete"){ $id = $_REQUEST['id']; $result = mysql_query("DELETE FROM berita WHERE id =".$id) or die(mysql_error()); $confirmation = ($result) ? "Data Telah terhapus." : "Gagal menghapus data."; } } ?> <div …

Web Development php
Member Avatar for pritaeas
0
310
Member Avatar for Matthew N.

Hello. I'm going to show you how to make a basic php image gallery. Firstly, create the following files [LIST] [*]index.php [*]view.php [*]/images (dir) [/LIST] Now, for the code. index.php [CODE] <?php $img = array(); $img[] = array('title'=>'img1', 'src' = 'img1.jpg'); ?> <html> <head> <title>mygallery | homepage</title> </head> <body> <h2>mygallery</h2> …

Web Development image javascript php
Member Avatar for Matthew N.
0
423
Member Avatar for DaSpirit

I need to update the SQL table every minute, as if typing on an online notepad, that save frequently. So of course, I have: [CODE]<textarea rows="20" cols="80" id="notepad"> <?php $con=mysql_connect("localhost","username","password"); if(!$con) { die('Could not connect: '.mysql_error()); } mysql_select_db("database", $con); $result = mysql_query("SELECT * FROM Notepad"); while($row = mysql_fetch_array($result)) { echo …

Web Development javascript php sql
Member Avatar for pritaeas
0
122
Member Avatar for stoopkid

All I am trying to do is place the marker number in the map. I was able to do this with V2 of Google Map API, but now I have not a clue how to do it in V3. I've exhausted Googling this issue, and now come to my favorite …

Web Development api google google-api javascript seo
Member Avatar for pritaeas
0
112
Member Avatar for mshdpotato

Basically, I make a query based on the first query that I made. It returns the right number of rows but it only displays the first record based on the number of rows. For example, if my second query returns Result1 and Result2, the table will look like Result1 Result1 …

Web Development php sql
Member Avatar for pritaeas
0
144
Member Avatar for nera1981

I have two multidimensional arrays: [CODE]$instruments = array( array( ID => 'value', Name => 'value', Model => 'value ' ), array( ID => 'value', Name => 'value', Model => ' value' ), array(ID => 'value', Name => 'value', Model => 'value ' ), ID => 'value', Name => 'value', Model …

Web Development php
Member Avatar for cereal
0
165

The End.