17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for EvolutionFallen

Hi, I'm using GD to dynamically draw a rectangle on an image I have of a map. I've got that part working fine. Here's my question: I know I need to set the headers of the page to [icode]content-type: image/png[/icode], otherwise I get a bunch of characters instead of the …

Web Development php
Member Avatar for EvolutionFallen
0
101
Member Avatar for whitestream6

I've just been learning arrays, and so far it's going well :) This is my current PHP code: [CODE]<?php $states = array ('MD' => 'Maryland', 'IL' => 'Illinois', 'MI' => 'Michigan'); $provinces = array ('QC' => 'Quebec', 'AB' => 'Alberta'); $abbr = array ('US' => $states, 'Canada' => $provinces); $japanesemotors …

Web Development php
Member Avatar for nav33n
1
192
Member Avatar for lifeworks

Hi Im setting up a news distribution system... sort of... i want to record everyone who downloads the news articles... so ive blocked direct linking to the pdf files using an htaccess file. my htaccess file redirects people to a page which captures where they came from ( for interests …

Web Development apache pdf php
Member Avatar for Airshow
0
146
Member Avatar for ym_chaitu

[CODE]<?php include("access.php"); mysql_select_db($dbname); $user="ym_chaitu"; //$e=mysql_query("select email from userlogin where username='$user'"); //$email=mysql_query($e,0); $query = mysql_query("SELECT username,password FROM userlogin WHERE username = '$user'") or die(mysql_error()); $data = mysql_result($query); echo $data; ?>[/CODE] this is my code,,when i am using it out, it is giving me an error Warning: Wrong parameter count for mysql_result() …

Web Development mysql php
Member Avatar for nav33n
0
90
Member Avatar for ruwanaru

I am New in web designing What i want is i have one List/Menu its called Make it's containing some vehicles Brands when i selected a brand name i want another list/menu display the models that relevant to Brand this is a screen shot that what i need [IMG]http://i256.photobucket.com/albums/hh192/magnificent_roo/model.gif[/IMG] some …

Web Development javascript
Member Avatar for ruwanaru
0
728
Member Avatar for buffalo0

Hi, i need to pass a value from an asp.net application to a php page stored online. Having searched around I can not find a easy solution to this can anyone point me in the right direction please. Many Thanks

Web Development asp asp.net php
Member Avatar for Ramesh S
0
109
Member Avatar for levsha

Here is my code: [CODE] <?php $connection = mysql_connect("myserver.com","myuser","mypassword") or die ("Couldn't connect to server."); $db = mysql_select_db("mydb", $connection) or die ("Couldn't select database."); $search=$_POST['search']; $data = "SELECT firstname, lastname, task FROM inventors WHERE taskdate - curdate() = 1"; $query = mysql_query($data) or die("Couldn't execute query. ". mysql_error()); $data2 = …

Web Development php
Member Avatar for levsha
0
113
Member Avatar for love_dude1984

hi.. im retriving some data from a database to a dataset...i want to show the data in a gridview..but my problem is, i want data to be shown in last to first format. i mean, if the dataset contains, A as first record & z as last record, then the …

Web Development asp.net dataset display
Member Avatar for love_dude1984
0
118
Member Avatar for Blake98

[I m still a newbie in ASP.Net] I want to create an interface with asp.net for an SQL backend. On the interface i want the buttons to be able to execute some stored procedures. Any Ideas? Or code

Web Development asp.net sql
Member Avatar for kvprajapati
0
94
Member Avatar for hobo38

I need help with a java script that increases image size and decreases on mouseover and mouseout for multiple images per page. In an html page. This script that I have tried to modify is for one image. Can anyone help me with this, please. Jerry Here is the html …

Web Development html-css image javascript xml
Member Avatar for hoping2
0
3K
Member Avatar for julzk

I have an SQL Query question that I'd like help with if possible :) I have two tables "tbl_jobs" and "tbl_jobs_done" Here are the fields for both tables: tbl_jobs -jobs_id -jobs_description -jobs_datestart -jobs_dateend -jobs_datetype -jobs_user -jobs_updateuser tbl_jobs_done -jobs_done_id -jobs_id -jobs_date -jobs_comment -jobs_datedone -jobs_timedone -jobs_user How this works is, I have …

Web Development mysql php
Member Avatar for Atli
0
168
Member Avatar for thuku

I wana perform a search on my mysql database.i want to search 4 categories at the same time e.g a person who wants to search for a nike shoe, size no 7, in africa, in kenya. How will i go about dat.

Web Development php
Member Avatar for thuku
0
115
Member Avatar for benkyma

I have the following code which results in a mysql error. However, when I use this query in PHPMyAdmin it works fine. Can anyone see what is causing the error? [CODE] for($i=0; $i<10; $i++) { $nextDay = $i+1; $startDateTime = date("Y-m-d H:i:s", strtotime("-$i days")); $endDateTime = date("Y-m-d H:i:s", strtotime("-$nextDay days")); …

Web Development php
Member Avatar for benkyma
0
94
Member Avatar for Kruptein

I have this table(building_lvl): [icode]lvl | building_id | region_id[/icode] And I want to get the region_id for which building_id=3 has lvl 2 and building_id=2 has lvl 5 [code]SELECT * FROM building_lvl INNER JOIN regions ON regions.region_id = building_lvl.region_id WHERE ((building_lvl.building_id='3') && (building_lvl.lvl > 1)) && ((building_lvl.building_id='2') && (building_lvl.lvl > 4)) …

Web Development php
Member Avatar for Kruptein
0
78
Member Avatar for veledrom

Hi, Code below returns this. [code] Array ( [0] => 3 [id] => 3 [1] => John [name] => John [2] => Goog [surname] => Goog ) [/code] Everything repeated. Why? Also, I need to serialize. I need it for some other reason. [code] $sql="SELECT * FROM friends WHERE id='3'"; …

Web Development php
Member Avatar for network18
0
95
Member Avatar for iraberyl

hi, got a new prob, how can i create a php page that automatically refreshes each time i access the page.

Web Development php
Member Avatar for iraberyl
0
153
Member Avatar for Clawsy

Hi I'm making a login panel which sends data to the same page and I use a class made by me and called 'user' that stored user information and autentification. When I refresh the page I check if any session was created before (it was created at first successfull login …

Web Development php session
Member Avatar for darius_#2
0
240
Member Avatar for dmkc

Hi everyone, I've been a reader for a long time, now I've joined up, as I'm fairly stumped on this one!! I'm currently teaching myself mysql and php at work, and have a problem. I am using php to produce a listing of restaurants on a page, and I would …

Web Development mysql php seo
Member Avatar for dmkc
1
735
Member Avatar for Muazam

Why doesn't this work? I choose English and it doesn't do anything... neither does Norsk work. Anyone help please, thanks. [CODE]<?php //nodag = Norwegian day //endag = English Day // dag = day if(!isset($GET_['ok'])) { //start if ?> <form action="" method="get"> <select name="lan"> <option value="eng">English</option> <option value="no">Norsk</option> </select> <input type="submit" …

Web Development php
Member Avatar for network18
0
151
Member Avatar for futhonguy

I would like to make some query using the SELECT function. However i wasnt able to get the results i want. My code is as follow: [CODE] $sql = "SELECT * FROM device WHERE ((device_num like '%$val_d%') OR (dib like '%$val_dp%')) ";[/CODE] can i write it in this way? pls …

Web Development php
Member Avatar for network18
0
90
Member Avatar for levsha

I have an HTML form with three dropdown selects: month, day and year. I have four fields in my MySQL table: month, day, year, and date. The 'date' field is supposed to contain the concatenated values of the year, month and day separated by dashes. I write this in my …

Web Development php
Member Avatar for levsha
0
76
Member Avatar for 15389049

I am trying to search a database using a user defined string from a text box. I am getting an error message with the "objectadaptor.Fill" Here is the code: [code] Imports System.Data.OleDb Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Partial Class Search Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal …

Web Development asp asp.net dataset seo web-server
Member Avatar for shibbard
0
127
Member Avatar for arushibafna

hello i am new to xampp . and making a project using php & mysql. whenever my php files run, its doesn't show any changes in my database. for eg. ,if i have entered certain values on my html page and through my php page ,the values is getting inserted …

Web Development php
Member Avatar for arushibafna
0
123
Member Avatar for sadiebee

Hello folks! Is it possible to create directories on my web server based on new database entries? I am implementing a photo gallery and want to have it such that, when a user ADDS a new Gallery, a (sub)directory is created with the name that the user gave the gallery. …

Web Development php web-server
Member Avatar for Stefano Mtangoo
0
102
Member Avatar for motieno

Hi, Could someone assist me with this code. It gives me an error message whenever i press the submit button. It gives me this error message We are very sorry, but there were error(s) found with the form your submitted. These errors appear below. Please go back and fix these …

Web Development email html-css php
Member Avatar for Stefano Mtangoo
0
181
Member Avatar for Rblalock

[CODE]<html> <head> <title>Moultrie Technical College - Worth County Campus</title> <style type="text/css" media="all"> /* Ryan Blalock (ShoppingCart.htm) 10/29/09 */ body { background: transparent url(images/bg.gif) repeat left top; } table { color: white; width: 800px; margin-left: auto; margin-right: auto; font-size: 10pt; font-family: arial,helvetica,sans-serif; background-color: black; } td#header { font-size: 16pt; text-align: center; …

Web Development html-css javascript web-design
Member Avatar for Rblalock
0
225
Member Avatar for whiteyoh

Hi All, the following code is giving me the following error and i would appreciate any help in identifying where the error lies Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /Applications/MAMP/htdocs/CG0119/index.php on line 6 the code is here, and line 6 is the echo statement [code] …

Web Development php
Member Avatar for whiteyoh
0
62
Member Avatar for elanorejoseph

Hi how can i make a drop down menu usibg java script.... please help its urgent.

Web Development php
Member Avatar for iraberyl
-2
106
Member Avatar for phouse512

Hello, Right now, I am working on a little text-based game in PHP, and I am running into some problems with some functions that I defined. The exact error is this: [b] Notice: Undefined variable: level in C:\Program Files\wamp\www\germ\game_functions.php on line 52 Notice: Undefined variable: exp_cap in C:\Program Files\wamp\www\germ\game_functions.php on …

Web Development php
Member Avatar for network18
0
1K
Member Avatar for vishalonne

I am developing a small web site. I have a login Page (login_form.php) from where user has to select there user type from dropdown box values are "Administrator", "Store Keeper", "User". When user select "User" option from list in onchange event I am opening one popup window (depart.php) from which …

Web Development display php
Member Avatar for network18
0
1K
Member Avatar for OmniX

I was stuffing around and I was wondering if it was at all possible to make a function or method, dynamic at all? In what context? well I would like not to have the specify the elements required by the function so at any given day it can be more …

Web Development php
Member Avatar for network18
0
182
Member Avatar for Kadjii

Hi, I am trying to code a game program in js that will allow the user to click on a "Roll Dice" button that calls a js function to randomly display various images of dice. My problem is that I cant find a way to display the images where I …

Web Development image javascript
Member Avatar for Kadjii
0
107
Member Avatar for pradeep.singh28

I am trying to run my web project on Localhost but the browser is not able to load any of the .aspx pages whether related to this project or any other .aspx page.. The message displayed by the browser is"[B]IE cannot Display the page[/B]" plz give me the solution for …

Web Development asp asp.net web-browser
Member Avatar for pradeep.singh28
0
210
Member Avatar for wayz1229

can anyone teach me how to do loop for the script below.. thanks in advance.. [CODE] <?php require_once('config.php'); $aid1=$_POST['Question-1']; $aid2=$_POST['Question-2']; $aid3=$_POST['Question-3']; $aid4=$_POST['Question-4']; $aid5=$_POST['Question-5']; $aid6=$_POST['Question-6']; $aid7=$_POST['Question-7']; $aid8=$_POST['Question-8']; $aid9=$_POST['Question-9']; $aid10=$_POST['Question-10']; $qid1=$_POST['qid1']; $qid2=$_POST['qid2']; $qid3=$_POST['qid3']; $qid4=$_POST['qid4']; $qid5=$_POST['qid5']; $qid6=$_POST['qid6']; $qid7=$_POST['qid7']; $qid8=$_POST['qid8']; $qid9=$_POST['qid9']; $qid10=$_POST['qid10']; // update vote counter $query = "UPDATE answers SET acount = acount …

Web Development php
Member Avatar for wayz1229
0
102
Member Avatar for thenajsays

im trying to add a star rating system to a website. id like to do something elegant graphically instead of just using a drop down... the javascript framework im using is mootools and i found a great rating system [URL="http://birijan.com.np/?q=mootools+star+rating"]here[/URL], but have no idea how to adjust it so that …

Web Development html-css javascript
Member Avatar for Alxandr
0
132
Member Avatar for sleign

ok laugh at me if you will, call my code sloppy or retarded or not very secure (I'm self-taught and think I do pretty good for where I'm at) but I'm pretty proud of myself for having figured this out. I've been trying to validate a form for the past …

Web Development html-css php session
Member Avatar for Devoted Hosting
0
215
Member Avatar for mekmiotek

Hello Everyone, Quick history....Im a systems engineer, total newbie to web dev. Ive been trying to maintain a memorial website that we had created when my sister passed away. It was hosted somewhere but the person who made it couldn't maintain it anymore, so I downloaded all of the pages …

Member Avatar for mekmiotek
0
345
Member Avatar for gedas

hi everyone, im trying to create a little form that would simply keep the count of people that have voted and the score of the votes . here is my form in static html [CODE]<form name = "contestants" method="POST"> <font size = "3" face="Arial" color="#dddddd"> <input type="radio" name ="contestant" value …

Web Development gui php web-browser
Member Avatar for Atli
0
149
Member Avatar for dsmush

Hi, I'm doing an assignment for University that requires us to make a servlet. I haven't been able to start it yet as I am having trouble compiling the java files. I started of in Linux but could not get Tomcat working so I've resorted to Windows XP. I now …

Web Development java-jsp
Member Avatar for peter_budo
0
139
Member Avatar for bibiki

hey there. I am new to php and just out of curiosity I am trying to build an html table using nested while loops. I expect the following code to produce a table, but it is not doing so. [CODE]<html> <table border="1"> <?php $r=1; $rows = 5; $c = 1; …

Web Development php
Member Avatar for bibiki
0
800
Member Avatar for enzo420

Hi all, i've recently made a friends script that adds the id of user who requested the friend (user) and the requestee (req), with a confirmed column, 0 if pending, 1 if accepted. i was looking for a way to search through the friends table for all friends of a …

Web Development php
Member Avatar for diafol
0
180
Member Avatar for 3.14

hi friends, i try to make some selector of items placed in <div>, and click on some of items should delete one by changing innerHTML of <div>. delete works, but after delete html page reloads. i suppose its because element, originator, calling delete function exist at time of calling, but …

Web Development html-css javascript
Member Avatar for 3.14
0
133
Member Avatar for sarithak

hi frnds... i m using front end page is in HTML(contactus.html)... back end is in PHP page(contact_action.php).... here i m trying to send mail to admin from user...After successfull completion of mail sending , the user gets a Message.,..(like..messgae successfully send..).. below is my code...can any body change plz... [CODE]if …

Web Development display php
Member Avatar for rajabhaskar525
0
129
Member Avatar for therio7

Hi, I have a php form where I can upload 3 things into a database. 1. Image Description 2. Image category 3. Image (the image is uploaded in a folder with a unique random name, and the unique path name is inserted into the database) My script generate something like …

Web Development php
Member Avatar for diafol
0
131
Member Avatar for arvindikchari

Hello I have a simple requirement, I have a list of URLs on a page, I want that when the user clicks on any one URL, then a text box on the same page is filled with some data. The data to be filled in is specific for each URL. …

Web Development javascript
Member Avatar for augie804
0
4K
Member Avatar for elanorejoseph

[CODE]hi can any one please tell me how categorisation can be done [/CODE]

Web Development php
Member Avatar for network18
-2
83
Member Avatar for AdventDeo

Hello! I'm trying to extract a php table to an excel file. There's only ONE bit of problem. My table has alternating colors for each row and, lets say once extracted my cells range from A1:G20 in Excel, but instead of just coloring A:G, the row colors went all the …

Web Development php
Member Avatar for chaines51
0
112
Member Avatar for scottholmes

I have a snippet of code, thus: [CODE]$match |= in_array($type, $types);[/CODE] but I am unfamiliar with the |= expression and have been unable to find it in the PHP manuals.

Web Development php
Member Avatar for scottholmes
0
78
Member Avatar for crazygolfer

I have a table that is populated by php/mysql. I would like to have it were when you click on a row any where on the row the check box for that row gets checked. I have been searching the net for days looking for a way to do this …

Web Development javascript
Member Avatar for ogunm
0
299
Member Avatar for tmv105

Can someone help me store a string that has an apostrophe within it? I thought that using [B]mysql_real_escape_string[/B] was supposed to add a slash when retrieving, but remove the slash before storing. Here is a portion of my code and then also the result of the data after it is …

Web Development mysql php
Member Avatar for Atli
0
129

The End.