17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for anirban1087

Hi, I am new to php. I am working on a product. My product has a search page, with multiple criteria. Next page will show the matched recodes (with some information) in a table format. Now I would like to show the details of a particular record, by clicking on …

Web Development php
Member Avatar for MindSter
0
90
Member Avatar for arthurav

I have a file upload website. Information about files and the files themselves are stored in a mysql database. I want to allow the users to delete their own files. On every line I have put a delete button. My concern is which is the most secure implementation. I am …

Web Development mysql php
Member Avatar for MindSter
0
76
Member Avatar for Mecklar

Hi all: I am pretty new to php and am currently trying to make a simple website with a login script. I am however having a problem with the header already being set. I understand that this is because of having whitespace or calling certain things before setting the header, …

Web Development html-css php
Member Avatar for sourcebits
0
168
Member Avatar for mastermind2

i am try to create a drop down cms menu in my Website [url]http://4your.co.in/demo2/[/url]. Problem is i have used a while loop to show main menu and another while loop to show submenu . Main menu is working but sub menu show online one record . My Code Is . …

Web Development cms php
Member Avatar for dev.vini
0
190
Member Avatar for threat

i have a .php webpage with the following basic structure [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>index</title> <style type="text/css"> .style1 { background-color: #4BACC6; } .style2 { background-color: #005AE7; } .style3 { text-align: center; color: #FFFFFF; font-family: Arial; } .style5 { …

Web Development html-css perl php
Member Avatar for threat
0
191
Member Avatar for dandixon

Got the code below for a login form to check that users dont miss a field and then to check wether or not the data user and pass fields match what is in the database but i cant seem to structure my [COLOR="Red"]if, elseif, else[/COLOR] statements correctly [CODE] <?php /** …

Web Development data-structure php session
Member Avatar for dandixon
0
87
Member Avatar for sami.asanga

Hi, I need to hide the login screen of my web site whenever a customer has logged in..It should be done with javascript right?? Any suggestions?? Can someone help me to do this?? Thanks....:)

Web Development javascript
Member Avatar for gunnarflax
0
114
Member Avatar for dflor

For instance, the following script works fine without html <html><head></head><body><?php $im = imagecreatetruecolor(100, 100);// sets background to red $red = imagecolorallocate($im, 255, 0, 0); imagefill($im, 0, 0, $red); header('Content-type: image/png'); imagepng($im); imagedestroy($im); ?></html> How could we include a php gd library into html?

Web Development html-css php
Member Avatar for gunnarflax
0
141
Member Avatar for phplover

Hi, I know and understand what magic quotes does, but have never written any of my scripts to check whether magic quotes is on or not; and if on stripslashes() . I thought it was time that i do this check incase any of the scripts i create are used …

Web Development php
Member Avatar for hielo
0
124
Member Avatar for new SE

hye all.. now i'm doing an insert statement in asp.net using c#.. how i can make a validation for same data entry? anyones can help me? thanks in asdvance...

Web Development asp.net
Member Avatar for new SE
0
75
Member Avatar for cpu278

Hi, quick question, more of a curiosity. Is there a PHP method that has as input an int and returns the name of the number as a string value? Say, for input 0 it returns "zero", for 7 returns "seven", and so on? Thanks

Web Development php
Member Avatar for cpu278
0
146
Member Avatar for focusondot

Hi Community of DANIWEB, first time here, first post below...and I'm pretty new at this as well. I'm getting this error "Column count doesn't match value count at row 1" My code is: [CODE]$insertSQL = sprintf("INSERT INTO tearSheet (". "compType, ". "compType2, ". "report_date, ". "numEmployees, ". "cliNumber, ". "execSummary, …

Web Development php
Member Avatar for focusondot
0
132
Member Avatar for sgweaver

I am creating a form that you don’t actually submit in order to allow people to download files. You select different options with radio buttons and drop-down menus and then use that information to “show/hide” divs with javascript. That part works, but if the user leaves the page and then …

Web Development javascript session
Member Avatar for azegurb
0
272
Member Avatar for pgmarco

Hello, I am trying to add variables from select options, but I am getting the $NaN error with certain items. The first item is the video under the low end build, you have to select MSI Radeon HD430. The second item is sound under the high end build, you have …

Web Development javascript
Member Avatar for pgmarco
0
135
Member Avatar for heshanm

Hi, I want to retrieve data from my database and display it in a particular form. The data should be displayed in text boxes. This is the coding that i have used. But it is not working. Can someone help me out...... [CODE] <?php $connect=mysql_connect("localhost","root",""); mysql_select_db("bank",$connect) or die ("could not …

Web Development html-css php
Member Avatar for MindSter
0
148
Member Avatar for lgriess

Hi all, I need some advice, I've been asked to connect an html application to a .net application. I have a login form in the html that needs to be authenticated and the user to be brought into the .net app, how can I use the same authentication functions in …

Web Development asp.net html-css
Member Avatar for lgriess
0
186
Member Avatar for Blackred

Hello, first post so be kind ;) I'm using the ModalPopup to display a loading message when the user clicks on an imagebutton. The problem here is that while the ModalPopup is on screen, the button event doesn't fire so the page doesn't do anything - it just sits there …

Web Development asp asp.net
Member Avatar for gauravkukreja06
0
640
Member Avatar for ivan3510

Hi all. I'm trying to create custom prompt. When I click on the button, appears custom prompt and ask "Do you realy want to submit?". When I click "Yes", the form isn't submited. Here's html code: [CODE]<html> <head> <link rel="stylesheet" href="look.css" type="text/css"> <script type="text/javascript" src="script.js"></script> </head> <body> <form name="novo" action="obrada.php" …

Web Development html-css javascript
Member Avatar for ivan3510
0
628
Member Avatar for phplover

Hi, I am driving myself mad. I have not posted the full code but wondering if someone can help. I am testing a deletion of a record and file using the code below. The problem i am having is that although i delibrately remove the the variable $id from the …

Web Development php
Member Avatar for phplover
0
103
Member Avatar for Mecklar

I have a simple 2 option drop down menu which corresponds to a column in my database. The drop down menu is not populated by the database it is just used to update the data in that 1 column. However I was wondering if it would be possible to make …

Web Development php
Member Avatar for Mecklar
0
94
Member Avatar for ayooshkasmth

Hi, i have been trying in vain all day to assign child name to a parent id in an innodb table with foreign key. I can retrieve the parent id fine, but the problem is when i try to insert child name, PHP doesn't seem to be passing any values …

Web Development mysql php
Member Avatar for MindSter
0
93
Member Avatar for dandixon

[url]http://www.dandesign.co.uk/steel/register.php[/url] above is the link to my register page, filling the form in works fine but if you leave it blank and click the submit button it removes the footer of my page, please someone help i really need to get this sorted heres the code to my page too, …

Member Avatar for MindSter
0
223
Member Avatar for arthurav

I use a mysql database with students and grades for a training program. I would like to create a dynamic form with one field that works like this: if i write the name in the form and press check, and the student exists, i want it to show me the …

Web Development java-jsp
Member Avatar for javaAddict
0
117
Member Avatar for cristi08

Who can repair this it really a wizard. I try to add a column to an existing table. It a compound foreign key column from ather two. [CODE]ALTER TABLE valoare_lucrari ADD COLUMN id_oferta FOREIGN KEY (id_ofertant, id_proiect) REFERENCES valoare_lucrari(id_ofertant, id_proiect)[/CODE] It may be a problem of sintax or even it …

Web Development php
Member Avatar for cristi08
0
75
Member Avatar for levsha

Here is my php: [CODE]<?php $confirm = $_POST['confirm']; if(($_POST['confirm'] == 'Y') {header("Location: http://mysite.com/sage/page1.php");} else {header("Location: http://mysite.com/sage/disagree.html");} ?>[/CODE] Here is the HTML: [CODE]<form id="form" action="terms_redirect.php" method="post"> <table id = "radio"> <tr> <td> <input type="radio" id="agree" name="confirm" value="Y" /> </td> <td> <label for="agree">I have read and agree to the Terms and Conditions</label> …

Web Development php
Member Avatar for levsha
0
210
Member Avatar for newbietophp1221

i have a form that searches only text based on 2 criteria. 1st criteria is the user selects from a drop down. The drop down is a table in the database. 2nd criteria is what the user enters in the text box and then clicks to submit. SO whatever the …

Web Development php sql
Member Avatar for newbietophp1221
0
149
Member Avatar for doctorphp

Hi there. I am trying to use a html form to send a PHP email but I am having some problems when I enter the message in the text area. The messages that I send have line breaks in but instead of doing a line break it shows the [B]<br …

Web Development email php
Member Avatar for Daiva
0
155
Member Avatar for heshanm

Hi, I want to retrieve data from my database and display it in my form. How can i do that? i mean the php coding of the process. Thanks, Heshan.

Web Development php
Member Avatar for heshanm
0
212
Member Avatar for dandixon

I have this for my register form that if it exists die which falgs up a new blank page that displays the message but i just want the error to stop the script and appear on the form. [CODE] if(usernameTaken($_POST['user'])){ $use = $_POST['user']; die("Sorry, the username: <strong>$use</strong> is already taken, …

Web Development php
Member Avatar for dandixon
0
135
Member Avatar for phplover

Hello, I have created a script and as part of the script i want the script to detect the upload_max_filesize which is set in the web servers php.ini file. It will be displayed on the file upload webpage which is accessible to admins only. Now at the moment i am …

Web Development php
Member Avatar for phplover
0
177
Member Avatar for missbeginner

hey all could you please help me fix this problem? i spent hours looking for the solution, but haven't solved the problem. [code = c#] [U]web.config file[/U] [B]authorization[/B] [code=xml]<authorization> <allow roles="Admin"/> <allow roles="Employee"/> <allow roles="Manager"/> <deny users="?"/> </authorization> <roleManager enabled="true"/> <compilation debug="true">[/code] [B]authentication[/B] [code=xml]<authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" name=".login" …

Web Development asp.net xml
Member Avatar for new SE
0
284
Member Avatar for gpmmuthu

Hi all.. I have a static page called news. This page have more than 100 articles link and small description. Now i am planning to implement a pagination of every 10 links. Anyone help this problem? Thanking you. Regards, Ram

Web Development php
Member Avatar for gpmmuthu
0
405
Member Avatar for punkrockbboy

Hey everyone, so my work wants me to update their website with a email contact form, i foolishly agreed not realising what i was getting myself into, i didn't know how complicated php is (i am an artist, not a coder :icon_redface: ), it's taken me about a week and …

Web Development api email google-api php
Member Avatar for punkrockbboy
0
368
Member Avatar for terrymold

Hi everyone I'm trying to create a PHP/MySQL script which will allow a user to enter some details about an image (.jpg or .gif or whatever) and upload it to a MySQL Table. Now, I've got it working perfectly in Firefox 3.6.8 and in the script portion below, it outputs …

Web Development php
Member Avatar for metalix
0
143
Member Avatar for jv_web

Hello, Im trying to generate an email with Multiple Listbox selections... Unfortunately the listbox allows me to select multiple choice but when I submit the form only one "selection" is shown... Im assuming a for each or something will be needed here... all tests using that method have failed. Could …

Web Development asp.net email
Member Avatar for jv_web
0
183
Member Avatar for atrueresistance

I'm trying to connect and can. The code fails at the select database. I have created the Tools database already. The table is an exact clone of the mysql counterpart that is currently working. Any Suggestions? [CODE]<?php $dbuser="yukon"; $dbpass="yukon"; $dbname="Tools"; //the name of the database $chandle = odbc_connect("sqlserver", $dbuser, $dbpass) …

Web Development mssql php
Member Avatar for atrueresistance
0
143
Member Avatar for MichaelWClark

I have a reporting page I am working on and I need to get this gridview exported to CSV. I have gotten everything setup properly but now when I export it the key collumn data is empty while all others are there. No where in the code do I mess …

Web Development asp.net
Member Avatar for MichaelWClark
0
91
Member Avatar for new SE

Hi, once page is display, i want to display all record in gridview from database..in the page also has one button to search..then upon the button search is click, i want to display the result in other gridview and hiding the last gridview..how can i do?

Web Development asp.net
Member Avatar for plusplus
0
87
Member Avatar for sugumarclick

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a Class method which should return a result set as an array. I will show my code as some one can point out where am i going wrong. Currently …

Web Development java-jsp
Member Avatar for sugumarclick
0
689
Member Avatar for whiteyoh

Hi all, I'm building a questionnaire and would like to know how i can get a selected option to stay selected after clicking submit. thanks paul

Web Development php
Member Avatar for vibhaJ
0
111
Member Avatar for MooGeek

Hi guys!! I'm currently developing an opensource CMS. but I've noticed that lots of Pro Programmers use Linked List. and of course if I want to make a opensource CMS I want to code it Professional way. that's why I've decided to use Linked List instead. the problem is I …

Web Development cms linked-list php
Member Avatar for rajarajan2017
0
146
Member Avatar for jaycastr

Hello all I have a page in php that INSERTs data in a database via a query. My problem is that when you refresh the page the data is INSERTed again. How can I stop this. Thanks in advance

Web Development php
Member Avatar for metalix
0
109
Member Avatar for Kligham

Hi, I'm having trouble getting access to a Radio button. I found on the internet that I can use: [CODE]document.form_name.radio_name[number].checked = true;[/CODE] So I'm doing that: [CODE]document.hitForm.Answer_1[0].checked = true;[/CODE] But it isn't working. I have included a picture of the Chrome Dom inspector. [URL="http://yfrog.com/n0radiobuttonsj"]Pic[/URL] The first circle points to the …

Web Development javascript
Member Avatar for Kligham
0
90
Member Avatar for AndrewDBrown

I am just starting to play with PHP (and this is my first post). I need to send out an invitation via email to some of our clients. This email will contain a hyperlink along with a unique reference ID for each client, something like this: [url]www.oursite.com/invitation.php?ID=ABC123[/url] I need to …

Web Development client-server email php web-server
Member Avatar for AndrewDBrown
0
134
Member Avatar for farhan386

I have a string contains sequences of 0 and 1. I need to replace all zero sequences whose length less than 5, into number 1 with same length. The zero sequences with length 5 or more should be left as is. For example source : 11000001100010011000001 result : 11000001111111111000001 [CODE] …

Web Development php regex
Member Avatar for farhan386
0
176
Member Avatar for nirveshverma

hi to all this is my script for login means somebody wants to acess the private folder first it say to login then it redirect o requested page but ther is error when i submit the button please help me i take more than 26 hours but i am unable …

Web Development asp.net c# web-server xml
Member Avatar for lifefuture
-1
263
Member Avatar for DeadLikeMe

Hi, i have a problem with this code. I wanted to add the values of the parameters at the beginning to the URL entered in the code. i already tried confirmation.php?username=$username added the ?username=$_GET[username] but the Url in the browser is displayed like it's written in the php file and …

Web Development php
Member Avatar for DeadLikeMe
0
200
Member Avatar for Rizzuti

I was wondering if you guys can help me with this! I'm trying to display data on the items_Deltails.php page from classifieds1.php page using $_GET. I'm able display all data from [B]items[/B] table without any problem, however when i try to display the field pix from the [B]images[/B] table it …

Web Development php
Member Avatar for Rizzuti
0
152
Member Avatar for sg552

Hello everyone, I have a working page in PHP. What this page do is student will keyin his/her ID and press Papar (Display in English) and th result will be shown in the same page in a lightbox. The problem is (well not really a problem) the page need to …

Web Development javascript javascript-jquery
0
56
Member Avatar for nigelsponge

I am trying to figure out how to add up a series of text boxes which contain numbers that a user will input and have the total of those text boxes show up in a quantity text box on the next page. Not sure if i should use javascript or …

Web Development javascript
Member Avatar for scotttheath
0
208

The End.