17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mgn2683

I have a contact form that is using a Send Form php file to validate and then send an email with the form contents. The area I am having issues is debugging an error, I believe it is coming from the dropdown selection in my form. The page can be …

Web Development php
Member Avatar for mgn2683
0
290
Member Avatar for MaddTechwf

I have a GridView called GridView1. I want to load it based on a ButtonTest being clicked. When the button is clicked, I need to do a SQL retrieval of data and popuplate the GridView with it. I can write the SQL code to get the data but I wasn't …

Web Development asp.net
Member Avatar for MaddTechwf
0
112
Member Avatar for cristian.stilpeanu.3

Hi, i have a problem of some days. I'm working to a website but when I installed it I have a very noticeable error page, I wrote: "Notice: Notice: Undefined index: user_name in C:\xampp\htdocs\index.php on line 118" How can I get rid of this writing. Thank you! It is a …

Web Development php
Member Avatar for pritaeas
0
276
Member Avatar for code739

echo prev($result_row).'prev-'; echo curent($result_row).'cure-'; echo next($result_row); hi fellas as what you see above i print them all actually they were inside a foreach loop wahat i expect i they will print all but the firstline is the only one which appear what i observed is only one line out of …

Web Development php
Member Avatar for code739
0
153
Member Avatar for HunainHafeez

i have an html table which has asp.net textbox controls , total 50 boxes , so these all needs "Field Required" validators but it would take alot of time to do so and also i dont want the validation error message to appear next to each box, i want them …

Web Development asp.net
Member Avatar for HunainHafeez
0
86
Member Avatar for ChandanMandal

Hello. As a new learner to ASP.Net I was curious to make a small blog machine. A simple application, where I add a title, upload an image and put some text. I did that. To display it, I used an editbox for title, another for description and an image control …

Web Development asp.net
Member Avatar for ChandanMandal
0
202
Member Avatar for Hypalink

Hi guys, I´m attempting to write a simple "get quote" script, but need some advice about best practice. I want to structure it as follows, lets say a customer wants 1,2,3,4 or 5 apples - I want the quote to be $1. If the customer wants 6,7,8,9 or 10 apples …

Web Development mysql php
Member Avatar for Hypalink
0
188
Member Avatar for Stardemos

<?php $conn = mysql_connect("localhost", "sermail_demos", "demos")or die("sem conecчуo ao servidor"); $db = mysql_select_db("sermail_sermail")or die("Base de dados nуo foi encontrada"); $b=1; $c=2000; $sql2a = 'INSERT INTO content_type_image ( vid, nid, field_stock_value) VALUES'; for ($i=197; $i<2000; $i++) { $sql2a .= '('.$i.','.$i.','.$b.')'; } mysql_query($sql2a) or die(mysql_error()); echo $sql2a; ?> i cant finf out …

Web Development php
Member Avatar for blocblue
0
88
Member Avatar for joshl_1995

Hello Community, I was wondering, would it be mean to make my programs only available to members only?

Web Development
Member Avatar for pritaeas
0
201
Member Avatar for HunainHafeez

i am done with my forms , sign up and login forms etc. now i want to know that how to apply mechanism like "facebook" or any other site which has login facility. i mean like a user fills in his EMail id and password and then he browse through …

Web Development asp.net
Member Avatar for JorgeM
0
114
Member Avatar for Dani

Even though it's incredibly bad practice, most advertising servers still use document.write. It's terrible because placing `<script type="text/javascript" src="http://www.ad-server.com/foo.js" />` where you want the ads to appear is page blocking. I'm trying to move the script tag to the very bottom of the page (so at least everything above it …

Member Avatar for Troy3
0
2K
Member Avatar for opawix

if (@$_GET['action'] == "Edit Record") { print "<font color=black size=14><center>Edit Student Records</center></font><br>"; $result = mysql_query ("SELECT * FROM students"); $rows = mysql_num_rows($result); if ($rows != 0) { print "<form>"; print "<font color=black><center><b>Select Student:</b><center></font><br>"; print "<select name=idnum>"; for ($i=0; $i< $rows; $i++) { $row = mysql_fetch_row($result); print "<option value=$row[0]>$row[1] $row[3] $row[2]"; …

Web Development php
Member Avatar for pritaeas
0
119
Member Avatar for daniel36

i am having a string in a variable similar to $school="bal bharti vidhya mandir"; i want to change this string into 'bal-bharti-vidhya-mandir'.Is it possible?I also need its reverse in my project.

Web Development php
Member Avatar for lps
0
95
Member Avatar for garyjohnson

I am trying to join two database tables, the tables are set up like this, This is table fgusers3, which stores my users login information. id_user name email phone_number username password confirmcode 1 Bob bob@email 000000 bob1 bobby 12345 This is table videos, which stores my users video upload information. …

Web Development php
Member Avatar for garyjohnson
0
239
Member Avatar for showman13

Good Morning, I am working on a script that requires multiple embedded function calls that could go up to 5 levels deep My Question is this... I need to be able to use the accumulating variables from function D outside of all the functions to display data. if I have …

Web Development php
Member Avatar for DarkMonarch
0
147
Member Avatar for Angle90

Hello Everyone, I need your help please, using htaccess, I like to know how to deny access to an index.php file from all visitors except me. I have tried the following; <files index.php> order allow,deny deny from all </files> That works denying all access to that file. I would like …

Web Development apache cybersecurity php
Member Avatar for Angle90
0
180
Member Avatar for HunainHafeez

i have an issue , when i click on YES or NO (radio button) to enable/disable DIV section (EmployerInfo), it causes the whole page to refresh and scrolls back to the top of firefox every browser. i set Autopostback to true and i put MaintainScrollPositionOnPostback="True" in page directive but still …

Web Development asp.net first-post
Member Avatar for HunainHafeez
0
132
Member Avatar for HunainHafeez

i knwo that validation controls actually validates asp:net contols but the thing that confuses me is that "Wheter it validates at server side or client side " ? i heard that it validates at client side so what does it have an attribute "Runat=server" ? plz elaborate

Web Development asp.net
Member Avatar for HunainHafeez
0
84
Member Avatar for sonakrish

Hiii Alll I need to display a message to the user after clicking the button control. How to do this in c#.net? I could not find Msgbox() option as we hav in vb.net. can any one help me

Web Development asp.net c# vb.net
Member Avatar for walflo
0
2K
Member Avatar for HunainHafeez

what if i have two dropdown lists.....which has list items with same values ? is it harmful ? mean list item with same values of 2 different drp dwn lists ? and what does it mean actually ? usage ?

Web Development asp.net
Member Avatar for HunainHafeez
0
79
Member Avatar for garyjohnson

Here is a basic join code for two database tables, I want it to compare the two tables with a users email, it would have to be the current user logged on. How do i do so with php? SELECT column_name(s) FROM table_name1 INNER JOIN table_name2 ON table_name1.column_name=table_name2.column_name

Web Development mysql php
Member Avatar for garyjohnson
0
2K
Member Avatar for garyjohnson

Hello I have made a php file upload for the visitors of my site to upload small videos too, now I want the users that are logged into their account to have the videos they upload be linked to their user id, so anyone vewing the small video can know …

Web Development file-system mysql php
Member Avatar for garyjohnson
0
3K
Member Avatar for onofej

I have a xampp database user log in with username and password, but i want to send each user an ID after registration and this ID should auto increment in my database. at the moment i can only achieve this if i include a field on the registration form, but …

Web Development php
Member Avatar for LastMitch
0
1K
Member Avatar for logicaweb

I'm making a B2B portal that can see just loggedin business customers that I add to base, I finished almost all, but there is one problem. When customer add some goods to his cart, goes to checkout and confirm his order he will have a link to invoice.php?ids=156 and that …

Web Development mysql php sql
Member Avatar for urtrivedi
0
172
Member Avatar for Albert Pinto

Hi People, Got an issue with css in php. Actually I'm trying to create and send a html email. My front-end form consists of To(textbox where recipients email address will be entered) and then I've embedded ckeditor in place of Textarea where I will be typing the message... Now this …

Web Development email html-css php
Member Avatar for jstfsklh211
0
3K
Member Avatar for scholarwithfire

Hello guys, i want to populate a textbox based on the selected index of a combobox. For example, the textbox will only be displayed if the selected index is "5". But the problem is, i generate a series of comboboxes through a loop which is based on the number of …

Web Development php
Member Avatar for lps
0
985
Member Avatar for Riu 2009

how can i let image overwriting when uploading? and if uploading an image titeld different how can i make it to change to specific file tite?im trying to make an image replacement to change images on the web page like for example logo. how can i make the file name …

Web Development image php
Member Avatar for Riu 2009
0
311
Member Avatar for HunainHafeez

i have a signup form which needs user to submit his academic information also. academic info table in database is like this : tbl_acadinfo ![tblacademic](/attachments/small/3/tblacademic.jpg "align-left") now how would i fill this table via asp.net (as a part of signup form with title ACADEMIC INFO) ? bcz educationlevels are many …

Web Development asp asp.net
Member Avatar for HunainHafeez
0
194
Member Avatar for rotten69

Hi everyone, I just found something interesting in my code but I ain't sure why JavaScript. var input= 0; // But in my case, the input variable is getting the value from a field in a form if(!Number(input)){ document.write('it is not a ZERO'); } This is something similar to my …

Web Development javascript
Member Avatar for rotten69
0
148
Member Avatar for Djmann1013

I am having trouble with this page: <?php session_start(); // LOGIN PAGE... include('/mods/core/core_login.php'); // SQL stuff. mysql_connect('SQL host','Username','Password'); mysql_select_db('DB_NAME'); $ci = rand(1, 10); if ($ci == "1"){ $img = "http://images.awsomechat.comuv.com/cap_1.png"; // URL of image. $ans = "LoIs DDiO"; // Answer to image. }elseif ($ci == "2"){ $img = "http://images.domain.com/cap_2.png"; // …

Web Development php
Member Avatar for cereal
0
184
Member Avatar for paine_today

I just launched my first website I fully wrote myself in php/mysql - [www.TomPaineToday.com](http://www.TomPaineToday.com). After testing it on my own computer for a while, I decided I might as well launch it and see what problems I run into. The first issue I came across was that my link redirect …

Web Development google php seo
Member Avatar for paine_today
0
618
Member Avatar for raj-uk

how can we make Function in php this is the line to be read = 'i am going to [USA]' only required the USA to be print nothing else Please help

Web Development php
Member Avatar for diafol
0
105
Member Avatar for Shantanu88d

i have been given an assignment, to find frequencies of all words in a large text file. I have tried a program which finds the same in a sample string. Done by taking that string in an array. But in case of a text file spanning many pages with thousands …

Web Development php
Member Avatar for edwinhermann
0
577
Member Avatar for LastMitch

Hi I been doing some research on **PHP Frameworks**. I want to know what other Daniweb members used as **PHP Frameworks**? I'm still new to understand how it works but would like to know which one will suit my skills, so I can built on ... to move forward to …

Web Development php
Member Avatar for LastMitch
2
163
Member Avatar for Begginnerdev

Hello my fellow Daniwebers, I have a question for you. I have an asp.net page that contains a structure that looks like so: <asp:MultiView> <asp:View> <asp:UpdatePanel> <asp:Panel> <asp:TextBox ID="txtStartDate" runat="server" AutoPostBack="true" /> <asp:TextBox ID="txtEndDate" runat="server" AutoPostBack="true" /> </asp:Panel> </asp:UpdatePanel> </asp:View> </asp:MultiView> The curious problem is that I can't reference the …

Web Development asp.net
Member Avatar for Begginnerdev
0
234
Member Avatar for rm_daniweb

Hi All, I just want to share my code. A lots of website said that php is on server side and javascript is on client side...they said we cannot run php on javascript... here's how we can run php function when you click call the onchange events on javascript. [code=php]function …

Web Development client-server javascript php
Member Avatar for talad
0
3K
Member Avatar for HunainHafeez

i am done sign up form in asp.net but the problem is that how to put "captcha" facility in it ?

Web Development asp.net
Member Avatar for HunainHafeez
0
89
Member Avatar for reco21

Im grabbing a page with below. $homepage = file_get_contents('http://www.example.com/'); echo $homepage; How do I write it to a file.txt and overwite in the event the file exists ? Thanks.

Web Development php
Member Avatar for reco21
0
1K
Member Avatar for HasNor

Dear experties, I have a problem to insert checkbox value that called from database. How can I identify each checkbox's value? This is my code to show the checkbox. Dont know how to post the value to insert into database if checked. Please give me idea to solve it. Thank …

Web Development php
Member Avatar for HasNor
0
264
Member Avatar for morrisproject

HI, Is it possible to be able to upload a load of images in one go from a camera, using there file name and saving them in to my database? I have created a table called images, with fields, image_num and image.

Web Development php
Member Avatar for diafol
0
460
Member Avatar for NinjaMediaD

Here is my issue, I am really perplexed when it comes to string parsing and manipulation in php. I am writing a database driven inventory using mysql and php. One of the issues is that there are multiple people who are able (by company rule) to add to this database. …

Web Development php
Member Avatar for NinjaMediaD
0
154
Member Avatar for rakibtg

i have a script which will fetch content from a website, what i wanna do is modify all that links. Suppose: $html = str_get_html('<h2 class="r"><a class="l" href="http://www.example.com/2009/07/page.html" onmousedown="return curwt(this, 'http://www.example.com/2009/07/page.html')">SEO Result Boost <b> </b></a></h2>'); so, is it possible to modify or rewrite it in this way> <h2 class="r"><a class="l" href="http://www.site.com?http://www.example.com/2009/07/page.html">SEO …

Web Development html-css php seo
Member Avatar for rakibtg
0
553
Member Avatar for persianprez

I have a variable variable defined, suppose: $array[1] = Hello World; $i = 1; ${"name" . $i} = $array[1]; I then have the following: $val1 = "Hello World"; However when I try to compare $name1 to $val1, they are never equal. I've tried all of the following: if ($name1 == …

Web Development php
Member Avatar for persianprez
0
162
Member Avatar for HunainHafeez

i want to put likes button in my website, yet its running on LOCALHOST (IIS). e.g FACEBOOK like button in showing likes , google+ button etc. how ?

Web Development asp.net google
Member Avatar for HunainHafeez
0
191
Member Avatar for 417linux

What I'm trying to acomplish is to have a list of years in a <form> with a checkbox for each year and let the user select what year applies to the post such as: 2008, 2009, 2012 (they might select 4 out of 5 years, not just one year). Then …

Web Development mysql php
Member Avatar for 417linux
0
250
Member Avatar for HunainHafeez

In my registeration form i have fields named country and city. I want that i select a country lets say USA then city field should show all the cities in USA. i know that i have to put all the cities in Database and then bind it to dropdown box …

Web Development asp.net
Member Avatar for HunainHafeez
0
110
Member Avatar for HunainHafeez

anyone plz help me with it...... i have a signup form in asp.net but the only thing left the facility to upload files to page (server) from hdd e.g pdf, docx, .jpg etc. now i am using localhost. how to do it ? ?

Web Development asp.net file-system pdf
Member Avatar for HunainHafeez
0
116
Member Avatar for HunainHafeez

can i send Email via local host ? if have email class and every necessary elements. in php its not allowed . but in asp.net ?????

Web Development asp.net email
Member Avatar for HunainHafeez
0
80
Member Avatar for HunainHafeez

i want to execute Store procedure via asp.net code, behind submit button, (SIGNUP) and also for login . how should i run store procedure ? and store procedure is in DB(sql).

Web Development asp.net
Member Avatar for HunainHafeez
0
153
Member Avatar for bad.boy.Vlad

I have this code to showor hide a div when click on button.But... If you ckick button the div appear.. but when you click again the div doesnt dissapear:| Code: function infoshowhide(){ if(document.getElementById('info11').style.display = 'none') { document.getElementById('info11').style.display = 'block'; } else { document.getElementById('info11').style.display = 'none'; } } *and i need …

Web Development javascript
Member Avatar for bad.boy.Vlad
0
261

The End.