17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Namibnat

Please could someone just clear up, or point me to the right thing to read regarding mysql and php. Once you have made a query and saved it to results, I understand that the query accessed with a number of functions to extract that, such as mysql_fetch_array() and so on. …

Web Development mysql php
Member Avatar for somedude3488
0
137
Member Avatar for kayblack

Hello guys, I'm trying to make my PHP mailing script mail an html webpage. I've pasted the page code but I've been getting alot of error pages complaining about the tags in the html code (style, table width, etc) How do I get around this?

Web Development html-css php
Member Avatar for Atli
0
184
Member Avatar for darkRoom

My website I'm building has various image Arrays, I have JS code passing data so an image in 1st page exp:[image5] loads into 2nd pages Array as [image5], it works in all browsers except Firefox where 1st page reloads to [image1] in 1st page Array. Being a newbie I can't …

Web Development image javascript
Member Avatar for Airshow
0
184
Member Avatar for lifeworks

Hi So story goes, Ive recently started hashing user passwords to protect access, but have come to a bit of a problem in that if a user forgets their password, Im unable to retrieve it for them, because all I have is the salted-md5 hash? How has everyone else overcome …

Web Development php
Member Avatar for liamfriel
0
269
Member Avatar for dandixon

Im very new to php, but im trying to create a bit of code that you type in the part number and quantity you want and it returns the part number and the word "limited" if its the same "not enough" if it's less than and "in stock" if its …

Web Development php
Member Avatar for kekkaishi
0
156
Member Avatar for sarithak

Hi frnds... here i m doing search for my website... [CODE] $mcat='abc'; $query="SELECT * FROM news WHERE topic LIKE '%$mcat%' "; [/CODE] here , the problem is in my db table $mcat value stored as doublequotes ...the word itself having double qoutes.... the above query working for all other sarch …

Web Development mysql php
Member Avatar for sarithak
0
186
Member Avatar for Pankaj18

Hi, I have problem, i have designed a web page in asp.net 3.5. I have a TextBox and a button, the User is expected to write some comment in the TextBox. The TextBox can also have a comment pattern including a (') on the click of button the data in …

Web Development asp.net
Member Avatar for Kusno
0
85
Member Avatar for AdventDeo

Ok I'll try to be as clear as possible with what I want, but for all I know the solution might be so damn simple... anw... I have a picture, alright.. usual way of putting it: [CODE] <table><tr><td> <img src='bla bla' height='100%' width='100%'> </td></tr></table>[/CODE] And I actually wanted it to …

Web Development php
Member Avatar for diafol
0
129
Member Avatar for colerainescotty

Hi there, I am wanting to find out how to add text to a hidden field in a HTML form. I want to add text from an array, the array holds the information for the caption placeholder for the images. Basically i have an image viewer which lets you scroll …

Web Development html-css javascript
Member Avatar for colerainescotty
0
246
Member Avatar for web3

When i put in this code WHERE to='$username' won't work? [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username = $_SESSION['username']; $query = mysql_query("SELECT * FROM pm ORDER BY id DESC"); $message = '' ; while ($row = mysql_fetch_array($query)){ $id = $row['id']; $to …

Web Development php
Member Avatar for web3
0
112
Member Avatar for macneato

Hi, so im pulling arrays from facebook. But i would like to sort them. Here is how the arrays look [CODE] Array ( [0] => Array ( [eid] => 203966119376 [name] => Funtastic - a show for the whole family! [tagline] => [nid] => 0 [pic] => http://profile.ak.fbcdn.net/object2/857/53/s203966119376_6012.jpg [pic_big] => …

Web Development php
Member Avatar for macneato
0
205
Member Avatar for anup.maverick

HI, I am creating a Forum System, this is a small system, I want to know where to store the forum data(Messages posted by users), Should I store it in SQL database or a Text File. Please suggest something. Thanx....

Web Development asp.net
Member Avatar for Ramesh S
0
70
Member Avatar for j_limboo

Hi newbee to php mysql appreciate if anyone can help in change password in sha1 Current mysql table [CODE] `users` ( `id` int(255) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `firstname` varchar(50) DEFAULT NULL, `lastname` varchar(50) DEFAULT NULL, `password` varchar(40) NOT NULL, `active` int(1) NOT NULL DEFAULT '0', `ip` …

Web Development php
Member Avatar for j_limboo
0
140
Member Avatar for Stefano Mtangoo

How can I protect a folder with some files from being accessed by htaccess? I'm newbie so take it with grain of salt.

Web Development php
Member Avatar for Atli
0
121
Member Avatar for DARK_BYTE

Hi can someone please explain to me what is the difference between writing onclick="confirmLink()" and onclick="return confirmLink()" I tried both and they did the same thing and I am confused since the lazy fellows from my university have given me old notes in which they randomly include the "return" sometimes …

Web Development javascript
Member Avatar for DARK_BYTE
0
172
Member Avatar for Gearspro

Hi guys, really need your help on this one. Because i have been searching the web all day today and i cannot find out how to it. The only possibility i found was to pay a professionally do it for me, but sadly i don't have the money to afford …

Web Development php vbulletin
Member Avatar for Gearspro
0
157
Member Avatar for whiteyoh

Hi all, I have a pdo connection script to mysql, which works fine. What im a little stuck on is that when i "include" the file, its connected, but how do i call the table to which my query is related to? The first snippet is the connection, and the …

Web Development mysql php
Member Avatar for whiteyoh
0
122
Member Avatar for akkkk

Hello, can somebody tell me why I get a parse error in this file? The error message is on line 20 according to the error log, the last line. [CODE]<?php // errormsg.php function error($msg) { ?> <html> <head> <script language="JavaScript"> <!-- alert("<?=$msg?>"); history.back(); //--> </script> </head> <body> </body> </html> <? …

Web Development php
Member Avatar for akkkk
0
247
Member Avatar for j_limboo

Lately I have learnt many things from Daniweb specially on PHP and mysql. I am building a HR application where I was looking for visitor to leave a message and which should redirect to admin or who ever is responsible Any suggestions is greatly appreciated

Web Development email php
Member Avatar for j_limboo
0
90
Member Avatar for anup.maverick

Hi, I want to create a Forum System in asp.net 2.0, Its better that i download the open source from microsoft, if anybody has Link for this source code, then please give it to me.. Or Suggest what should i do? Thanx...

Web Development asp asp.net open-source
Member Avatar for Ramesh S
0
84
Member Avatar for vishalanuj

[CODE]<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@taglib uri="/WEB-INF/struts-html-el.tld" prefix="html_el" %> <%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Listing all cities</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <center><h3>city List</h3></center> </body> <html:form action="/UpdateSuccessAction.do" > <c:forEach …

Web Development java-jsp javascript
Member Avatar for vishalanuj
0
139
Member Avatar for dhanya_piit

[code=java]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Programs; import java.util.ArrayList; import javax.ws.rs.core.Context; import javax.ws.rs.core.UriInfo; import javax.ws.rs.Consumes; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.GET; import javax.ws.rs.Produces; import java.util.List; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import …

Web Development xml
Member Avatar for peter_budo
-1
93
Member Avatar for Ana D.

Hi, I have the following code: [CODE=ASP.NET]<asp:FormView ID="myFormView" runat="server" SkinID="DetailsFormview"> <ItemTemplate> <table width="400"> <tr> <td align="right"> <b>This is the label: </b> </td> <td align="left"> <asp:Label ID="myLabel" Text="Label Text" runat="server" /> </td> </tr> </table> </ItemTemplate> </asp:FormView>[/CODE] And in the code behind (VB.NET): [CODE=VB.NET]Protected Sub BindFormView() Dim myLabel As Label = myFormView.FindControl("myLabel") …

Web Development asp.net vb.net
Member Avatar for Ramesh S
-1
894
Member Avatar for skurenak

I am an absolute beginner with javascript and have no idea how to solve this one. got a function fu() which should display the NAME of the image upon onmouseover,but when I try it,all the images show the same name,although they have different names in the code. I thought the …

Web Development javascript
Member Avatar for skurenak
0
103
Member Avatar for Facte

Hi there everyone. Does anyone have any idea how to stop my xml feed displaying # instead of £ and companys instead of company's. I've tried everything I can think of. In UTF-8 it won't show hardly anything in ASCII it works but still spits out the errors above. [CODE] …

Web Development html-amp php xml
Member Avatar for network18
0
99
Member Avatar for Oskowich

I have a DataGrid that I create dynamically in codebehind. I add events to the datagrid, it works fine except of the SortCommand event. It will not fire. If I change my page_load to create and bind the datagrid everytime when a postback it works. But I don´t want to …

Member Avatar for Oskowich
0
260
Member Avatar for DemonGal711

I've been working on this code to get data from a website and bring it back to my page so that I can use it. I've got that and I have another script to create an image from the line I got from the site so I'm good so far. …

Web Development php
Member Avatar for DemonGal711
0
89
Member Avatar for ejazmusavi

Hi! i have an asp.net project developed. Now i want to run it on lan. I mean i want to store all the asp files on the server and access it from the clients through browsers. what is the mechanism used for it vry vry vry urgent plz thnx in …

Web Development asp asp.net
Member Avatar for jbennet
0
103
Member Avatar for O71v13r

Hi everyone, I have a problem with one of the problems (17) that i try to solve on the [URL="http://projecteuler.net"]Project Euler[/URL] site. The problem is as follows: If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + …

Web Development php
Member Avatar for somedude3488
1
197
Member Avatar for DemonGal711

Alright, I'm trying to get a script to visit a website and copy the contents. The problem is that I must fill out a form before I can get to the page I want, but that's not the issue really. The url basically does this. [url]www.mysite.com/page.php[/url] // form is submitted …

Web Development php
Member Avatar for DemonGal711
0
118
Member Avatar for CFROG

I'm trying to set up an app for users to put their individual photos into different albums, eg. friends, family, whatever. I would like one pic from that album to be displayed for each album along with the album name. I thought SELECT DISTINCT would do the trick for me …

Web Development php
Member Avatar for CFROG
0
90
Member Avatar for jimib

could be this is an HTML problem, but I'll take the help anywhere I can find it... [CODE] <% @ Page Language = "VB" aspcompat=true Explicit="True" Dim src As String = " bet " %> <html> <head ></head> <body > <form name=loc action=testsac.aspx method=get> <table class=s0 width=100% cellpadding=1 cellspacing=1 align=center …

Web Development asp
Member Avatar for jimib
0
120
Member Avatar for diafol

Hello all. This is not a php question, but I assume that you php aficionados will probably know more about this than most. I have a laptop that I use from home and work and have a different IP address when connecting from different locations. I am able to gain …

Web Development cpanel php
Member Avatar for diafol
0
95
Member Avatar for RunTimeError

Hello, I've made a website but I've run into a problem. The site looks great when the user has the browser window maximized but when the browser is minimized an image I have on the right side of the screen is pushed over onto my background image. This is what …

Web Development asp.net html-css
Member Avatar for RunTimeError
0
176
Member Avatar for ultras1

I have administration part of my web site. But it will have only one user who will login in the page.My question what is more safely from attacks ? The user and password to be stored in mysql database or directly in .php file ?

Web Development php
Member Avatar for smartness
0
124
Member Avatar for dvprez

I have a client that is posting a gzipped xml file on their site for me to download. I wrote the code the will unpack the gzip file. I'm stuck on how I copy the file from [url]http://www.ClientSite.com/feeds/20091020.xml.gz[/url] to my server. The file is 4mb, not sure if that makes …

Web Development asp.net client-server vb.net xml
Member Avatar for dvprez
0
109
Member Avatar for Graphix

I am currently having a problem with my BB-code editor, like most things it works great in FF, but i have an issue with IE: whenever i select a word that has already been previously typed, it selects that word instead of the one i selected. Here is the selection …

Web Development javascript
Member Avatar for Airshow
0
285
Member Avatar for paranjyoti

Hi All, I am stuck in a module. I want to know how to get back the response and see it in alert message from $ajax->observeField in CakePHP. What do we have to write against 'complete'? Moreover, i dont know whether it can be done in $ajax->observeField or not. Any …

Web Development php
Member Avatar for paranjyoti
0
83
Member Avatar for prnv.pr

I want to send emails to a list of people who's addresses are extracted from a database.I know the function to be used is 'Bcc:' but an not able to figure out the correct place where it should be placed in-the code. It would be good if anyone could come …

Web Development php
Member Avatar for prnv.pr
0
103
Member Avatar for Eriku

I have a PHP program that makes a simulation of an aircraft motion (for technical studies). It requires quite a lot of input data. Therefore it would be advantageous to be able to save that data on the clients computer and recall it when used. Of course there is a …

Web Development php
Member Avatar for Eriku
0
150
Member Avatar for thebluestar

here is my source code about login into a web [CODE= php] <?php /* $login=$_POST['login']; if($login=="Login") { */ $connect==mysql_connect("localhost","root",""); if(!connect) { die ('Cannot connect to the database'.mysql_error()); } mysql_select_db("firstdbs",$connect); $in_user= $_POST['username']; $in_pass=$_POST['password']; // To protect MySQL injection $in_user = stripslashes($in_user); $in_pass = stripslashes($in_pass); $in_user = mysql_real_escape_string($in_user); $in_pass = mysql_real_escape_string($in_pass); $sql="SELECT …

Web Development open-source php web-browser
Member Avatar for poojamakhija
0
89
Member Avatar for Jayakrishnan_gk

I have a search box. I need to remove all the special characters from the search term and then query it. “’-,?~!@#$%&*+-= all these characters.... can anybody suggest a proper regular expression for this ? and the syntax for using it in javascript. my query is saved in var query;

Web Development javascript
Member Avatar for Jayakrishnan_gk
0
154
Member Avatar for danang

hi, i've got a problem, hmm...there are three groups (A,B, and C) and their IP address are: A ==> 10.204.xxx.xxx B ==> 10.205.xxx.xxx C ==> 10.206.xxx.xxx how to read an IP Address, but only for 2 octet, (10.204, 10.205, 10.206)? I want to put them on index.php, so: if user …

Web Development php
Member Avatar for danang
0
172
Member Avatar for lcyew

Hi all. I have some problems with radio buttons. Hope to get some help here. Thanks in advance. Here's the html: [CODE]<?php while($row=mysql_fetch_array($result)) { ?> <input name="replacement" id="replacement" type="radio" value="<?php echo $row['date']; echo $row['title']; ?>"[/CODE] I need to validate if none of the radio buttons is checked using javascript. How …

Web Development php
Member Avatar for lcyew
0
123
Member Avatar for drspock

Hi, I am developing an ASP .NET website that needs to create images using a custom font. Obviously, to do this, I need the font installed on the web server. As I am using a hosting site, and I have no direct access to the server the site will be …

Member Avatar for sknake
0
600
Member Avatar for DemonGal711

I was just testing out a code and I found something rather pathetic. This code does not produce anything. [CODE]<?php $source = file_get_contents("http://mysite.com/random/page.html"); echo $source; ?> [/CODE] But this code does [code]<?php $source = file_get_contents("page.html"); echo $source; ?> [/code] The php script and page.html are in the same folder, so …

Web Development php
Member Avatar for DemonGal711
0
87
Member Avatar for mldardy

I have a .asp page that is a map of the U.S. When you click on a state it brings up a pop menu. This page works fine on IE but not on Firefox. On Firefox when I click on the state it opens up another tab of the .asp …

Web Development asp html-css vbscript
Member Avatar for codejoust
0
755
Member Avatar for benrich

Hey all Can anyone see why this isn't working for IE but is Firefox? I'm trying to update a div on the page using some javascript and php. Whenever a dropdown box on the html page is changed, its value is passed to a javascript function, then onto a php …

Web Development javascript
Member Avatar for benrich
0
153
Member Avatar for vidhyaponnusamy

hi i have created one simple page using ajax ,my index page contains menus page1 page2 page3 page4 if i click the page2 menu means my page2.html is opening in the same window index.html itself ,but in my page three i have a link if i click that link it …

Web Development html-css javascript
Member Avatar for vidhyaponnusamy
0
103
Member Avatar for just_me

hi guys. can someone show me the right syntax to make link based on the ID using php echo. My coding will not give any input. below is my coding: [code]echo "<td width='101'><a href=view_supplier_details.php?details_ID={$user['report_details_ID']}</td></a>";[/code]

Web Development php
Member Avatar for network18
0
100

The End.