17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Sinha's

Hello Experts, I have a web application build with asp.net(c#) and SQL Server 2005. Where user can enter customer record. But my problem is that, whenever end user try to enter record from two different places at the same time, it shows an error for violation of primary key constrain. …

Web Development asp.net web-server
Member Avatar for dnanetwork
0
105
Member Avatar for Stefano Mtangoo

Hi, I'm learning making CMS. As you can see, I cannot do everything from scratch. So I request anyone with code in his codebase that works fine on paging or knows practical code to point me. I want to page my articles once are more than let say 10 Cheers …

Web Development cms php
Member Avatar for Stefano Mtangoo
1
127
Member Avatar for Zagga

Hi folks, just a quick form question. Whenever I have used forms in the past I have always sent the data to a seperate page to be analysed, with a 'Back' button (using history.go(-1)) to return to the form to correct any errors. When editing forms (populated from a database) …

Web Development php
Member Avatar for digital-ether
0
153
Member Avatar for toasty525

Hi, could someone please point me in the right direction for creating an AJAX page that displays "live" data from a mysql database ? I need the page to update its self every time data changes in a mysql table. Thanks, Mark H.

Web Development javascript mysql
Member Avatar for ndeniche
0
164
Member Avatar for ajwei810192

Hi, I wonder if anyone has tried to implement PHP with Javascript. I have the code here like this: if($name=='Mary') { echo "<script type=\"text/javascript\">window.alert(\"Hi, Your Name is " . $name . " \")</script>"; } For some reason, I don't get anything on the screen. Could I embed javascript in PHP …

Web Development php
Member Avatar for ajwei810192
0
110
Member Avatar for kirtan_thakkar

I have a folder in witch i have a sub-folders and in each sub-folder i have text files(.txt). I want to count that text files and want to print the result on the page. Can someone code it out???

Web Development php
Member Avatar for kirtan_thakkar
-1
747
Member Avatar for digiplaystudios

Hi There, I currently have a PHP/MySQL query script which displays the top 50 MySQL rows in the table, however, it displays the top 50 of all time. I would love a way for it to display the top 50 rows in the last 7 days. The table looks a …

Web Development mysql php
Member Avatar for digiplaystudios
0
275
Member Avatar for kirtan_thakkar

[code=php] echo ("<a href=foldername/".$file.">".$file."</a>"."<br>"); [/code] and there [code=php] $file = readdir($handle); [/code] in that case $file is a folder name with space.. So I have to put double quotation after href=. But it doesnt printing that double quotation. The link I am getting is only the folder name's first thing …

Web Development php
Member Avatar for kirtan_thakkar
0
2K
Member Avatar for saiprem

Hi all, I implemented jsTree([URL="http://www.jstree.com/"]http://www.jstree.com/[/URL]) in my script, which is displaying a tree structure for me, but i have a problem The problem is onCliking on the anchor tag it is not taking me to the url given on the href attribute, please help me to resolve this Ex : …

Web Development php
Member Avatar for nilaa
0
361
Member Avatar for gershom

Hello, I have opened Visual studio 2008.And I clicked on View-->Other Windows-->Macro Explorer.Then I got a macro explorer window.I then clicked different options present in that window randomly .Now the code is not generating any color.And i am unable to copy the content of code.Even the solution explorer is not …

Web Development asp.net visual-studio
Member Avatar for Ramesh S
0
122
Member Avatar for kirtan_thakkar

I have a complete list of a topics. I have to create a Index for A B C D E ... On Clicking those buttons without navigating to another page it shows only topics wich starts from that letter... How to code it in php???

Web Development php
Member Avatar for kirtan_thakkar
0
159
Member Avatar for fizanos

Hello guys, pls i need a Form And PHP Code To Get Upto 15 Values Into A Normalize DB At Once Sample Attached MySQL DB Syntax [CODE]-- -- Table structure for table `litorder` -- CREATE TABLE IF NOT EXISTS `litorder` ( `order_ID` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Order identification …

Web Development data-structure php
Member Avatar for digital-ether
0
158
Member Avatar for franksmule

I have a very strange problem... I have the exact same data on my local server and remote server, same php code everything... Same PHP Version.. I use this code.. echo ord($str[11]) << 24; And it returns a totally different incorrect result on the remote server, but totally fine on …

Web Development php
Member Avatar for Lapixx
0
92
Member Avatar for Acute

Hi, everybody)) In Daniweb when you click LOG IN, the page becomes like inactive, and box appears in the center with username and password fields. And there are many similar effects on other web sites. For example images in LightBox from Yootools. So, do you know any tutorial about how …

Web Development javascript
Member Avatar for Acute
0
115
Member Avatar for kirtan_thakkar

I need a php code that will open and show a random text file(something.txt) in the webpage.I found so many scripts that open a random line in one textfile but i need a code in php that will open a random .txt format file in a specific folder to see …

Web Development php
Member Avatar for kirtan_thakkar
0
181
Member Avatar for shithindas

where can i get good tutorials for Asp.net Using c#................ pls reply.......... thanks in advance.........

Web Development asp asp.net
Member Avatar for Ramesh S
0
86
Member Avatar for CFROG

I'm toying around with a script to allow users to search for other users based on certain criteria contained in their profiles. Anyhow, some of the attributes on the user profiles are things like what they are seeking like dating, someone to talk to, etc. I decided to serialize the …

Web Development php
Member Avatar for CFROG
0
67
Member Avatar for json101

How to read a text file into PHP with set format? My text file: [QUOTE]user@example.com user1@example.com user2@example.com user3@example.com user4@example.com user5@example.com ...[/QUOTE] How do I add the text file to my PHP file like this: [B]'user@example.com', 'user1@example.com'[/B] [CODE]<?php function nl2br2($text){ return preg_replace("/\r\n|\n|\r/", "<br>", $text); } $str= file_get_contents("sheet5.txt"); echo nl2br2($str); ?>[/CODE] This …

Web Development file-system php
Member Avatar for json101
0
1K
Member Avatar for pbcomput

hi... i know how to upload video...even i can upload video to specific folder...but my question is user are upload video of any formate.. and i want to convert that video into .flv after uploading... can any one tell me how to do this..?? i will be very thankful to …

Web Development file-system php video
Member Avatar for Tauseefuomian
0
160
Member Avatar for Zurompeta

Hello everyone, I'm having an issue that's only appearing in Internet Explorer browsers. It works fine in Firefox and Chrome. [CODE]var yDiff = wHeight - 102; [COLOR="Red"]login.style.top = yDiff+"px";[/COLOR][/CODE] The line of code highlighted in red is triggering an "invalid argument' error in IE browsers but not others.

Web Development javascript
Member Avatar for scrappedcola
0
114
Member Avatar for swati.n

Hi I have to display 4 BufferedImage in jsp page.I am getting these images from a java code. In the jsp page i am using: ImageIO.write(demo.getBuffImage(), "png", response.getOutputStream()); With this i am able to get the image. However if i write different ImageIO.write(....) for displaying each of the 4 images, …

Web Development java-jsp
Member Avatar for ~s.o.s~
0
1K
Member Avatar for benhowdle89

Hi, I'm designing a web page that has 6 drop down html form inputs (d, m, y, d, m, y) for pulling records from a mysql database depending on users input of a range of dates. I'm trying to use an Ajax script that will hopefully, on submit of form, …

Web Development mysql php web-server
Member Avatar for benhowdle89
0
190
Member Avatar for Boskor

Hello I have another problem. Here is previous thread: [url]http://www.daniweb.com/forums/post1237196.html#post1237196[/url] and my code: [CODE]$tipster = mysql_query("SELECT SUM(Analysis.Profit), Users.id, Users.Country_name, Users.Username, User_status.id_status FROM Users INNER JOIN User_status ON Users.User_status_name=User_status.user_status left outer JOIN Analysis ON Users.Username=Analysis.Tipster WHERE User_status.id_status>=3 GROUP BY Tipster ORDER BY SUM(Analysis.Profit) DESC"); while ($row = mysql_fetch_array($tipster)) { $sel_tipster=$row['Username']; echo …

Web Development mysql php
Member Avatar for Boskor
0
246
Member Avatar for dnanetwork

How to Find a Control in Listview on ItemDataBound Event? well i know it's easy to do it.. but how will you find my div which is kept runat= "server" in my Listview's ItemDataBound Event.. and i want witout using javascript? thanks in advance!

Web Development asp.net listview
Member Avatar for dnanetwork
0
103
Member Avatar for kirtan_thakkar

I have a database some short notes in a .txt format file and i have created a php webpage that includes a txt file in html format. Now I have to use "Next" and "Preview" links for that .txt format files. Can anyone suggest me the php or JavaScript code …

Web Development javascript php
Member Avatar for kirtan_thakkar
0
161
Member Avatar for ayesha789

Dears I have Developed a System for UPLOAD PDF files in Database. [INDENT]I Require to rename the file as LA when file is Uploaded in DB.[/INDENT] Here is my Form [CODE]<form enctype="multipart/form-data" action="dS.php" method="POST"> <tr> <td><table width="98%" border="0" cellspacing="0" cellpadding="0" > <span class="style7 style1">Site Id</span><input type="text" name="id" value="" /> <tr> …

Web Development file-system pdf php
Member Avatar for ayesha789
0
1K
Member Avatar for slyme

I have seen the mail function preceded with an @ symbol. I have tried it in my code and I cannot see what difference it makes. I have searched Google and the PHP documentation and I have not been able to find an explanation for this @ symbol. Would someone …

Web Development php
Member Avatar for slyme
0
98
Member Avatar for niths

hi all, i had a page where we can upload files.so when i upload pdf,wmv,win files, they are not uploading. but the rest like txt,doc,jpeg are uploading fine. so i need pdf,wmv,win files also upload. so can any one please... here is my upload code. [CODE]<?php ob_start(); @session_start(); require_once ("check.php"); …

Web Development pdf php
Member Avatar for json101
0
118
Member Avatar for Z_KiNGPiN

Can anyone help me out in calling a JavaScript function from ASP.Net or if anyone can direct me to a good site/tutorial defining things in detail example (working) code would also be great great benefit :) Thank you

Web Development asp asp.net javascript
Member Avatar for Z_KiNGPiN
0
185
Member Avatar for rics

I have placed three comboboxes on PHP form. One for Year, one for month, one for year. How do i pick values from these three combos and concatenate them & transfer them to Dateofbirth field in Mysql table. Please give code.

Web Development php
Member Avatar for urtrivedi
0
136
Member Avatar for niths

hi all, i am having some check boxes in my page. so i dont know the number because it is cuming from data base, so i need a javascript validation for this check boxes because he should check atleast one check box. so can any one please... here is my …

Web Development php
Member Avatar for niths
0
106
Member Avatar for tyson.crouch

G'day, Before i start, i have to admit that I'm out of my element when dealing with javascript! I've been developing a site for a travel agency, and opted to use some of the UI elements which can be found in jQuery. The problem is however, that when I move …

Web Development javascript javascript-jquery
0
89
Member Avatar for Odubz

Hello, I have looked over many examples of how to populate a dropdown with rows like [code=php] $sql="SELECT id, thing FROM table"; $result=sqlsrv_query($conn,$sql) or die("Couldn't execut query"); while ($data=sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)){ $id=$row["id"]; $thing=$row["thing"]; $options.="<option value=\"$id\">".$thing "</option>"; } [/code] But i need to populate this list with tables and will need to …

Web Development client-server php sql
Member Avatar for jenyroger
0
2K
Member Avatar for tjcares

I I am trying to make a site checker for my traffic exchange Now i was able to get this to work [CODE] SELECT*FROM vtp_urls where ID=326 [/CODE] and it puled up the right file and everything so I search the web for a way to display the url so …

Web Development php
Member Avatar for scaiferw
0
158
Member Avatar for json101

Is there a better way to write this if statement? Option1: [CODE]if (isset($_GET['item']) || isset($_POST['item'])){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] Option2: [CODE]if ('item' != $_GET['news'] || 'item' != $_GET['events'] || 'item' != $_GET['download']){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE]

Web Development php
Member Avatar for json101
0
121
Member Avatar for ajithraj

haii friends.... [COLOR="Red"]i want to select a particular string from textarea...i need it in javascript.... am using the tag <layout:textarea> i did not need the whole ,but only a part...plzz help me...[/COLOR]

Web Development javascript
Member Avatar for fxm
0
236
Member Avatar for emilio

hi as i learned, asp .net login control has a built in required field validators but how can i use a regular expression validators to validate the UserName and Passwords textboxes ? is there a way ?

Web Development asp.net
Member Avatar for Vally
0
148
Member Avatar for dnanetwork

i can handle a store procedure which returns one output parameter using ExecuteScalar() but wot if my store procedure returns more than one parameter then how can i handle it. any advice Adapost ?

Web Development asp.net
Member Avatar for dnanetwork
0
91
Member Avatar for Pari13

Hello All, what is code for exceute one aspx page onclick hyperlink without dispaly that page? Basically, I have one page p2.aspx.,which getting querystring parameter from page p1.aspx. When I cliced on hyper link of p1.aspx page .it redirect to the p2.aspx. but i want only that the code on …

Web Development asp.net
Member Avatar for dnanetwork
0
398
Member Avatar for RaulGonzales

How i can Rewrite URL JSP in Apache tomcat same MOD Rewrite in PHP [U][B]EX.[/B][/U] [CODE]test.jsp?id=1 as test/1[/CODE] Thank You.

Web Development apache java-jsp
Member Avatar for RaulGonzales
0
113
Member Avatar for samsons17

Hi.. I'm not sure whats the array_merge doing here in this code? I've read the mysql manual,but i just not sure what it is really means,so hope somebody could clear it out for me. By the way this is the code : [CODE] if (isset($_POST['submit'])) { // Form has been …

Web Development php
Member Avatar for samsons17
0
361
Member Avatar for Monster Killer

What i want may seem simple but i have been at it for hours trying to get it to work and searching the internet for answers. What i have been trying, and failing at doing, is taking X minuets from a time selected from a database (which is in the …

Web Development php
Member Avatar for Monster Killer
0
104
Member Avatar for ajwei810192

Hi, I have a line of text here: Directions: Take the #8 from Meadow Park(31), and get off at Kroger East (57). I am trying to get it to match both (31) and (57), which some other context may have different numbers, but there could be either 1 or 2 …

Web Development php regex
Member Avatar for pritaeas
0
70
Member Avatar for ayesha789

I have Developed a Database using MySQL and PHP. Now there are 60+ users who are using this DB. I want to make a system which tells me about Active and inactive users. Please guide me. My memebers table is like [CODE=mysql]-- -- Table structure for table `members` -- CREATE …

Web Development php
Member Avatar for ayesha789
1
246
Member Avatar for samsons17

I just wanna ask whats the difference between trim() and mysql_real_escape_string() functions? because i see this code below : [CODE] $username = trim(mysql_prep($_POST['username'])); $password = trim(mysql_prep($_POST['password'])); [/CODE] and myql_prep is a function being made thats contain this : [CODE] function mysql_prep( $value ) { $magic_quotes_active = get_magic_quotes_gpc(); $new_enough_php = function_exists( …

Web Development mysql php
Member Avatar for samsons17
0
3K
Member Avatar for louiscos77

Hy every body, what I am making is some functions for other people to make figures with pixels. So I put two documents: imagepixel.html [CODE=dhtml] <!doctype html> <html> <head> <meta name="author" content="Someone"/> <meta name="description" content="my webpage ..."/> <meta name="keywords" content="my, webpage"/> <title>image by pixel</title> <script language="JavaScript" type="text/javascript" src="imagepixel.js"></script> <script language="JavaScript" …

Member Avatar for louiscos77
0
202
Member Avatar for xylude

I have 2 files: master.php and test.php. master.php has a class in it that I would like to include in test.php. The only problem is that test.php is ignoring the class in master.php. Here is the code: Test.php: [code] include("http://".$_SERVER['HTTP_HOST']."/rebuild/scripts/php/master.php"); $loader = new modLoader(); $module[0] = 'm.class.templating.php'; $module[1] = 'm.class.userInfo.php'; …

Web Development php
Member Avatar for xylude
0
248
Member Avatar for ajwei810192

Hi, I have a code snippet here as in the following: [CODE] if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { $day_query ="start_time.day='12345' AND end_time.day='12345'"; } if(preg_match("Sat/i", $keywords[$i])) { $day_query = "start_time.Sat_route != 'NULL' AND end_time.Sat_route != 'NULL'"; } else { echo $keywords[i] . " is not a term that exists in the database. Make sure …

Web Development php
Member Avatar for MVied
0
86
Member Avatar for ms_sws

I have a table that looks like: [CODE] <table id="mytable" border="2" width="640px"> <tr> <td></td> <td><b>Col 1</b></td> <td><b>Col 2</b></td> <td><b>Col 3</b></td> <td><b>Col 4</b></td> <td><b>Col 5</b></td> <td><b>Col 6</b></td> <td><b>Col 7</b></td> </table> [/CODE] and a function to add a row and cells in the row that looks like: [CODE] function addRow() { //add …

Web Development javascript
Member Avatar for ms_sws
0
715
Member Avatar for spacepilot5000

Data entered in textboxes is not getting updated in database. In debug mode I see that textbox1 and textbox2 in ItemUpdating event contain the same values as they had before calling ItemUpdating. Here's my listview control: [CODE]<asp:ListView ID="ListView1" runat="server" onitemediting="ListView1_ItemEditing" onitemupdating="ListView1_ItemUpdating" oniteminserting="ListView1_ItemInserting"> //LayoutTemplate removed <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%#Eval("id")%>'></asp:Label> <asp:Label …

Web Development asp.net listview
Member Avatar for pippopboy
0
898

The End.