17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for diafol

Hi all, preg-Replace has stumped me again. I'm just too thick to get it. This is my problem: I have two files. File 'newvalues.php' with an array like so: [CODE].... $lang['this_key'] => 'blah blah blah'; $lang['another_key'] => 'rhubarb rhubarb'; $lang['something_else_key'] => 'twitter twitter'; ....[/CODE] And another file: 'template.php' like so: …

Web Development php regex
Member Avatar for diafol
0
160
Member Avatar for OnnDay

Hi everyone. I'm using Tomcat 7.0.8 I have created servlet, which loads image to "webcontent\pic" folder of my project. Then I need to display this image. The servlet works, but with only restriction: i need manually refresh content of project, or directory (I'm using Eclipse). Otherwise ugly cross will be …

Web Development file-system ide java-jsp
Member Avatar for OnnDay
0
170
Member Avatar for charvie

Is Multiple download files possible using PHP? We did find a code for single download. but we need it for multiple download. can anybody help me? Thank you! :)

Web Development php
Member Avatar for FloridaCI
0
134
Member Avatar for rkayd

I am wondering if this is possible: I have a web page that displays a table which includes Work Order Numbers. I would like to make the numbers into a link that when I click it it automatically brings up an edit form for that particular record. For example, here …

Web Development php
Member Avatar for rkayd
0
189
Member Avatar for Ritesh_4

Hello Anyone can pls guide me to a tutorial which can allow me to develop an image scroller shown at the bottom of the page of this link: [url]http://www.breitlingsionairshow.com/fr-airshow-home.html[/url]

Web Development image javascript
Member Avatar for gogreen1
0
84
Member Avatar for cliffcc

How to rewrite the code so do the loop in this case? [code] <?php require("connect.php"); $banner1 = mysql_query("SELECT * FROM banner WHERE bannerid ='1'"); $row1 = mysql_fetch_assoc($banner1); $bannerpath1 = ($row1['bannerpath']); $bannerheight1 = ($row1['bannerheight']); $bannerwidth1 = ($row1['bannerwidth']); $bannerdescription1 = ($row1['bannerdescription']); $banner2 = mysql_query("SELECT * FROM banner WHERE bannerid ='2'"); $row2 = …

Web Development legal php
Member Avatar for perfectweb
0
178
Member Avatar for Sarama2030

i'd lyk to upload files into the database via a dataset to first test some conditions. i've maitained the dataset's state between postbacks to add all the rows b4 updating. however the datarow line[CODE]dim autorow as datarow autorow= viewstate("dataset").tables("datatable").newrow ' the dataset and the datatable are all declared [/CODE] pops …

Web Development asp.net dataset
Member Avatar for Sarama2030
0
78
Member Avatar for Dannis86

I'm trying to learn to program with PHP, and i got XAMPP. I watched a tutorial on youtube. It should say, ''Please enter a username and a password''. But instead it just shows a blank page. My index= [ICODE]<html> <form action='login.php' method='post'> Username: <input type='text' name=úsername'><br> Password: <input type='password'name='password'><br> <input …

Web Development php
Member Avatar for Dannis86
0
2K
Member Avatar for llamaboy

Hi all, I have few php pages. One is a dynamic form, one is an file holding some arrays, one is a script that is the action for the form and the other two are to update the array. What I am trying to do is append an array using …

Web Development apple html-css multimedia php session
Member Avatar for llamaboy
0
196
Member Avatar for ivan3510

Hi! I have a php code that reads xml file. In xml file I have the german letter ö (this xml file is saved as UTF). This is mistake. I don't get ö. I get some strange carachters (like ö). Can somebody help me? Thanks a lot!

Web Development php xml
Member Avatar for twiss
0
135
Member Avatar for cliffcc

How to creat the button for 'Export'? Thanks! I want to combine below two sets of code [CODE] <?php echo"<a href='export.php?'>Export</a> ?> [/CODE] [CODE] <?php echo"<input type='button' value='Export'>"; ?> [/CODE]

Web Development php
Member Avatar for cliffcc
0
108
Member Avatar for loopylou8

Hi, I am working on a gallery feature for my website. Currently I have the images displaying using a mysql query which returns the images and a product description for each image. I would like to add to the gallery by having a clickable link under each picture which will …

Web Development php
Member Avatar for Sorcher
0
114
Member Avatar for Joshua Kidd

Hello all, I am having an issue. The issue being is that i have a page connecting to a database and displaying it in tables. The problem is, is that I have one column in my page where I want to do this: [CODE]<td bgcolor="#817679"><center><? echo $rows['Airport']; ?><? echo $rows['Type']; …

Web Development php
Member Avatar for almostbob
0
83
Member Avatar for cuonic

Hi... Again :) Just after i fixed my previous problem thanks to me failing to put an echo before ".." I worked out that the incorrect image was showing. I'm making a stock trading website, and there will be an red arrow pointing downwards when it detects at - (negative …

Web Development image php
Member Avatar for cuonic
0
143
Member Avatar for karthik_ppts

Hi Frendz, I need to include speedometer application in my vehicle tracking system. Actually the current speed of the vehicle is stored in database. I need to show that speed in analog speedometer. If anyone have experienced with speedometer application in php then help me.

Web Development php
Member Avatar for karthik_ppts
0
295
Member Avatar for branding4you

I have table in mysql, have values in row i want when page loads the highest value is alwyas the selected one. Im using two queries first one pulls the top value and adds it to box then it populates the rest, so it shows this top value twice, is …

Web Development php
Member Avatar for branding4you
0
265
Member Avatar for veledrom

Hi, I want to buy a Codeigniter book to learn its framework and develop PHP applications with it. I've been using PHP about 4 years but never used any kind of framework before. Which one of these books would be good for me to get staring: [URL="http://www.amazon.co.uk/CodeIgniter-Professional-Development-Adam-Griffith/dp/1849510903/ref=sr_1_1?s=books&ie=UTF8&qid=1304357639&sr=1-1"]CodeIgniter 1.7 Professional Development[/URL] …

Web Development php
Member Avatar for veledrom
0
199
Member Avatar for Shantanu88d

Hi, I have rowcommand function, in which i m obtaining sr_no as datakey from a link button. now i want to know which row was that. How to get row index this way ?

Web Development asp.net
Member Avatar for shakeb@techwave
0
280
Member Avatar for virendra_sharma

Hi , i am getting syntax error in INSERT INTO statement. getting this error on cmdobj.ExecuteNonQuery(); [CODE]string connectionstring = @"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=D:\website\AddContact.xlsx; Extended Properties=""Excel 8.0;HDR=Yes"";"; OleDbConnection conobj = new OleDbConnection(connectionstring); string Query = "INSERT INTO [Sheet1$](Fname, LName,PhoneNo,Email-ID) values (" + TextBox4.Text + ",'" + TextBox1.Text + "','" + TextBox2.Text + …

Web Development asp.net open-source
Member Avatar for shakeb@techwave
0
287
Member Avatar for lovell_82

Hi there, I'm trying to setup a website with a database. I want my php code to create the database and then input the data into it, however a get the error on my register page: Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*****' (using password: YES) in /fg_membersite.php on …

Web Development html-css php xml
Member Avatar for diafol
0
539
Member Avatar for lovell_82

I'm trying to write php code to access my sql database. pretty new at this and was wondering for my hostname and username and that, do i prefix the web address to the username and password or what is it? I geta error saying my credentials are not correct. Can …

Web Development cpanel php
Member Avatar for lovell_82
0
143
Member Avatar for abhi10kumar

I am printing checkbox's value on combobox value using AJAX, but showing undefined. First time it ok, but When checkbox is clicked then value is set to be off, showing undefined. Here is the code. [B]Checkbox[/B] [CODE]<input type="checkbox" name="course_inactive" value="off" id="course_inactive" onclick="check(this.value); value2(this.value)">[/CODE] [B]Combobox[/B] <div style="float:right; height: 26px; padding-top:2px;" id="div_courses"> …

Web Development php
Member Avatar for twiss
0
167
Member Avatar for rb1234567

How do you [B]click[/B] on a [B]caleneder [/B]and it takes you to another page and how can you [B]click a button [/B]to [B]link[/B] you to a [B]database[/B] on another page where you can [B]add, update [/B]and etc things like bookings. Code please would help and your source of where you …

Web Development asp.net
0
90
Member Avatar for AMADH

Hello, I have a query, that I am trying to have a conditional statement for a variable that I will pass into the query. If I use one of the conditions it works, but if I try both I can't get it to work. I would appreciate any help. Thanks, …

Web Development php sql
Member Avatar for AMADH
0
126
Member Avatar for sainigks

Dear all i have created a from to receive data from users. and data will store in sql table. all is going well. BUT NOW i have installed a module so users can type in Hindi fonts to fill details in form. when users will type data in hindi font …

Web Development php sql
Member Avatar for bibleaudio
0
2K
Member Avatar for karthik_ppts

how to add circle marker on google map by giving latitude,longitude and radius in KM?

Web Development google php seo
Member Avatar for karthik_ppts
0
245
Member Avatar for klemme

Hi all, I have installed Tinymce on my textareas, which are working fine. I have more than one textarea, and the Tinymce attaches itself on ALL textareas, where I only need it to display on one. It starts like this, and logically it will show on textareas, anyone who knows …

Web Development php
Member Avatar for vibhaJ
0
221
Member Avatar for rotten69

Hey all, I'm just hoping to receive great help from you people.. I'm tryin to fix my PHP coding and it looks good,but the server says that a particular line is broken.. [CODE] <?php $hd = fopen('content.txt', 'r'); $line = fgets($hd); $content = array(); while($line) { $word = explode(',', $line); …

Web Development php
Member Avatar for vibhaJ
0
91
Member Avatar for dyingatmidnight

Hi all. I'm working on a database for school and I'm working between two computers, my laptop at home and my desktop at work. Now my code works fine on my desktop but when I moved it over to the laptop the two drop down select boxes aren't being created. …

Web Development php session
Member Avatar for dyingatmidnight
0
91
Member Avatar for adamworld

I have code where I am pulling data from my database and it needs to be separated by commas except the last value (that part works) so I can take those values and input into another SQL query. Here is the working code: [CODE]$biz_id = $row_businesses['id']; $query_related = sprintf("SELECT * …

Web Development mysql php programming-construct
Member Avatar for adamworld
0
112
Member Avatar for Hakoo

Hello Friends, I am working in JME. Now, I have situation in which, I suppose to connect with Database which has been used with PHP. So, How can I access to Mysql? As usual same as to connect mysql with JDBC? Is Mysql and Mysql in WAMP Server different? Please …

Web Development mysql php
Member Avatar for diafol
0
203
Member Avatar for branding4you

hi i want to direct my website to different pages If there are competions that are active to show the page list of them else go to other page i tried this but no luck [CODE]<?php include_once "connect_to_mysql.php"; $extract = mysql_query("select * from tbl_competition WHERE fld_closed='N'"); while ($row = mysql_fetch_assoc($extract)) …

Web Development php sql
Member Avatar for branding4you
0
167
Member Avatar for G_Waddell

Hi I'm writing a site that allows users to download documents securely stored on the network off of the web server. I'm using a com object on the server that we've been using here for ages that fetches the file from the network in a binary stream thus preventing user …

Member Avatar for G_Waddell
0
1K
Member Avatar for designalex

Hi, please point me in right direction. I want to be able to post php/html/mysql code on my website and have it viewed as i would if i posted code on daniweb and used the CODE tags for e.g [CODE]<?php echo "I would like to see my code like this"; …

Web Development php
Member Avatar for diafol
0
103
Member Avatar for branding4you

how does one search mysql where one fields has multiple entries. example: in my db i have two fields in table, one field is the type field: id | Garment | Type 1 | Satin Shirt | "Chemical Clean" 2 | Silk Shirt | "Dry Clean", "Chemical Clean" When i …

Web Development mysql php
Member Avatar for branding4you
0
101
Member Avatar for mangel.murti

hi all, i want loading image should be display first for 3-4 second on every search button click then result should be display. [CODE] $(document).ready(function () { $('#form').submit(function() { $('#dsr').addClass('loading'); $.ajax({ type: 'get', url: 'search_hotel.php', data: $('#'+this.id).serialize(), dataType: "html", async:false, success: function(result){ $('#dsr').html(result); }, complete: function() { $('#dsr').removeClass('loading'); } }); …

Web Development image php
Member Avatar for mangel.murti
0
888
Member Avatar for makimbo

I have this function: [CODE] function card_draw ($numeroDeobjetos) { for ($i=0; $i<$numeroDeobjetos; $i++) { $aleatorio=rand (1,40); $usada[$aleatorio]=true; } for ($i=0; $i<=39; $i++) { if ($usada[$i]==false) { echo '<img src="card.jpg">'; } else { echo '<img src="'.$i.'.jpg">'; } } }[/CODE] How can I do to prevent repeated numbers in $aleatorio? Thank you.

Web Development php
Member Avatar for makimbo
0
135
Member Avatar for Tenaciousmug

It's only displaying the first result and not the others. What am I doing wrong? I'm selecting the items the user occupies. Then I'm selecting the name and image of that item from the item table. [CODE]echo "<table cellspacing=\"0\" class=\"news\" align=\"center\">"; echo "<tr>"; $sql = "SELECT * FROM useritems WHERE …

Web Development php
Member Avatar for C#Jaap
0
138
Member Avatar for ivan3510

Hi! I have a page, and one part of this page (javascript) reads the duration of song. But what if user's javascript installed on computer doesn't support this? Do all javascript support this function? Here it is: [CODE] //for some browser this function (like IE): duration = document.sound.currentMedia.durationString; //and for …

Web Development javascript
Member Avatar for twiss
0
748
Member Avatar for klemme

Hey, I have a question on how to make an inline style to this..: [CODE] $sqlCommand = "SELECT * FROM pages WHERE subjectid='" . $subjectid . "' AND showing='1' ORDER BY pos ASC"; //*** $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); $PageMenuDisplay = ''; while ($row = mysqli_fetch_array($query)) { $pid …

Web Development php programming-construct
Member Avatar for klemme
0
158
Member Avatar for veledrom

Hi, I just started learning CodeIgniter. There is a library [ICODE]$this->load->library('form_validation');[/ICODE] for form validation with rules. Does that mean we don't have to use Javascript to validate forms anymore? Because, if we have to use those validators in CI (sake of the best practise), what is the point of using …

Web Development php
Member Avatar for veledrom
0
937
Member Avatar for muhito

Hello guys, I need help with this. When I run it, I get a blank page. Please Me out. [CODE] <?php //The Main Program $call_put_flag="c"; $S=50; $X=52; $T=0.5; $r=0.05; $v=0.15; BlackScholes ($call_put_flag, $S, $X, $T, $r, $v); //echo $call_put_flag, $S, $X, $T, $r, $v; //Commulative function function CND ($x) { …

Web Development php
Member Avatar for muhito
0
85
Member Avatar for Sorcher

Hello. i was wondering if this can be done,personally my knowledge of Java / ajax is bad.. How can i make the submit button unable to be clicked if there is no data in the input (usermsg)? [CODE]<form name="message" action=""> <input name="usermsg" type="text" id="usermsg" size="100" /> <input name="submitmsg" type="submit" id="submitmsg" …

Web Development javascript
Member Avatar for twiss
0
164
Member Avatar for Ritesh_4

Hello Am new to PHP coding, and would like to get some very good tutorials on PHP forms and processing involved, with mysql may be included as well as part of the forms data to be used, anyone can suggest some nice sites or ebooks or tutorials? Googled some, but …

Web Development php
Member Avatar for astra2000
0
141
Member Avatar for -==Zero==-

In This Page How Can I Make The Page Title Get Its Name From (( Title )) In Database Ads [CODE]("SELECT * FROM ads where id='$id'");[/CODE] [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" dir="ltr" lang="en"> <head> <title>:: [COLOR="Red"]ZERO XXX[/COLOR] ::</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="http://www.e-alriyadh.com/favicon.ico" …

Web Development html-css php
Member Avatar for Stefano Mtangoo
0
766
Member Avatar for CobRalf

Hello everybody ;) I have written a kind of css (pre)-processor in PHP, and it uses the GET-method to acces to the file: HTML: [CODE]... <link rel="stylesheet" href="css.php?file=style.css" /> ...[/CODE] PHP: [CODE] ...$pss=file_get_contents("css/".$_GET["file"]); ...[/CODE] My problem is now, if a user types something like "css.php?file=../index.php", he gets the source codes …

Web Development cybersecurity html-css php
Member Avatar for CobRalf
0
142
Member Avatar for ebanbury

Hi First I'm really sorry if this is the wrong area to post this query, but as my pages are all in php, I thought it may have something to do with it. I have just realised that the top part of my pages flicker when you move your mouse …

Web Development html-css php
Member Avatar for ebanbury
0
80
Member Avatar for Bline

I am an retired untrained volunteer who assist a couple nonprofits with their web sites. I could really use some help on a problem I have been attempting to resolve. I am developing an application for one of the sites that generates assignment cards for Football Game Officials from information …

Web Development asp.net perl
Member Avatar for Bline
0
115
Member Avatar for Mattshu

In the top of the first page that is requested, I make a global variable and store the value of microtime() in it. The footer of the page is require()'d at the bottom, and in the separate footer page is a code that subtracts the current microtime() from said global …

Web Development php
Member Avatar for diafol
0
62
Member Avatar for itisnot_me

ok so i am pulling my hair out here trying to figure out why php doesnt want to work right with this reg expression [B] what i am looking for [/B] {blog:name_of_blog} [B]what i have[/B] preg_match_all('\{blog:[A-Za-z0-9_]+\}', $replaced_content, $matches, PREG_SET_ORDER); [B] this is the error it is out putting[/B] Warning: preg_match_all() …

Web Development php regex
Member Avatar for itisnot_me
0
149

The End.