52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shahiduop

hi i display images from database, i want that there should be at most 4 photos in each row,when the number photos exceeds 4, it should displays the remaining images in next rows, the code i have written displays all images in the same row, i don't know how to …

Web Development php
Member Avatar for andy106
0
951
Member Avatar for RobotFX

Hi I'll get straight to the point. I'm using this code [CODE] $sex = @$_GET['v'] ; $sex= trim($sex); //trim whitespace from the stored variable $sex = htmlentities($sex); $age= @$_GET['age'] ; $age = trim($age); //trim whitespace from the stored variable $age = htmlentities($age);[/CODE] ... to get the age and sex credentials …

Web Development php
Member Avatar for Sorcher
0
252
Member Avatar for showman13

Hi All, I know this sounds like a simple issue, and it may in fact be, but I have never figured out how to give the admin of a website an easy to use ability to enter the body of an email that they want to send to their members. …

Web Development php
Member Avatar for showman13
0
101
Member Avatar for garyrichard

I want to create a dynamic drop down list box in which Locality is loaded on page load then Depending upon selected Locality... Sub locality , Ward will be Loaded... .. I done it by using form with 'get' method.. but I want to done it using post method.. so …

Web Development php
Member Avatar for decade
0
750
Member Avatar for BorisBox

I get this error im trying to setup my PTC site :S Parse error: syntax error, unexpected T_CASE in /home/a9378945/public_html/index.php on line 72 [CODE]<?php # CHECK SESSEION COOKIE if($_SERVER["SERVER_NAME"] != 'localhost'){ if($_SERVER["REQUEST_METHOD"] == 'GET'){ if(strpos($_SERVER["HTTP_REFERER"], 'google') !== false){ if( isset($_COOKIE['r']) || isset($_GET['r']) ){ setcookie('r', '', time()-3600); header("HTTP/1.1 301 Moved Permanently"); …

Web Development php session
Member Avatar for diafol
0
140
Member Avatar for luweegee

Hello Guys! I'm looking for a javascript that will expand the list and collapsing of this menu... [CODE] <ul id="menu"> <li>Menu Item 1 <ol> <li><a href="#">Sub Item 1.1</a></li> <li><a href="#">Sub Item 1.2</a></li> <li><a href="#">Sub Item 1.3</a></li> </ol> </li> </ul>[/CODE]

Web Development javascript
Member Avatar for AleMonteiro
0
352
Member Avatar for hindu times

Hi there, I'm working on someone else's site, and I need to add something to their form to make sure that the email address people enter is the correct format (i.e. it has a @ sign and a "."). It currently only checks if there is anything in the field …

Web Development email javascript
Member Avatar for MeSampath
0
157
Member Avatar for McLaren

Hello, I am having trouble in starting apache. I had vista before and it worked well. Now I installed win 7, and have trouble. When I want to start, I get messages: Busy... Apache started [Port 80] I tried turning off skype, because it was causing problems often. But didn't …

Web Development apache php
Member Avatar for McLaren
0
3K
Member Avatar for MrJody

Hello, I would like to use a button as a link and pass the session variable in a jsp! The below code should work. Any help is appreciated. Thanks. I use encodeURL if the user has cookies off. This works with links but not when using an input button with …

Web Development java-jsp session
Member Avatar for sarathpetec
0
1K
Member Avatar for nickg21

Hey everyone, I'm fairly new to .Net and I am just starting to write some queries to begin using my database files, and I keep running into these errors. I have stepped through numerous tutorials and reference guides and still cannot seem to get things working properly. Basically I have …

Web Development asp.net vb.net
Member Avatar for nickg21
0
173
Member Avatar for calebcook

Hi. I'm trying to make a site where people can purchase zip files. The zip files will be made on-the-fly. My question is: [B]how do I restrict access to the files? I need to make it where the zip file can only be downloaded once, and it can only be …

Web Development microsoft-access php
Member Avatar for calebcook
0
187
Member Avatar for sammry

I have a registration form where I need to prevent people entering bad usernames. For example, people when they enter their username as virus, then the form should not be accepted. How can I prevent bad usernames in my Registration forms. Is there any function to do the same? Please …

Web Development php
Member Avatar for diafol
0
762
Member Avatar for bangla

Hi, [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] I have the code. Where would i save welcome.txt file. Will I save it on desktop or server side same directory as what i am currently working on? Thanks.

Web Development php
Member Avatar for nalini@121
0
77
Member Avatar for domh87

Hi, I am building a site and i need to move the contents from one form to another on a different page. The code i have used worked fine when i was testing, but since i put it on my live site i get syntax errors which i think is …

Web Development javascript
Member Avatar for Airshow
0
149
Member Avatar for stanley87

Hi,pleasure to meet you all.I wanna to ask how to write a javascript code to connect with php api authentication located at my server(eg. [url]www.mydomain.com/api/index.php[/url]). 1.I wanna put a javascript code to call the api authentication function at my website server so that other people can access through the api …

Web Development api javascript php
Member Avatar for Stefano Mtangoo
0
355
Member Avatar for aliyesami

hi ! below is a simple html code which lets a user input a value and then passes it to a php program which runs a sql querry againt an oracle database displaying the result set. what I would like to do is to be able to offer a drop …

Web Development oracle php
Member Avatar for sarper
0
898
Member Avatar for theighost

Hello, I have a huge issue with firefox and some versions of IE. I have a flash embedded into HTML and at some action in the flash, a javascript is called that changes the CSS properties of the div containing the flash (postion, from relative to fixed) the problem is, …

Member Avatar for theighost
0
163
Member Avatar for Motifaithed

Hi everyone, I'm new to php and I'm working on a project, it's very typical that when you type in a search box and press the submit button, it will link you to a table with minimal content, but upon clicking a list on the table, it will link you …

Web Development php
Member Avatar for rpv_sen
0
336
Member Avatar for RazorRamon

Ok I am stumped so bad. I am using a form to insert a topic and comment into a table and if the topic is new it creates a new table specific to that topic. So I pass the topic name through the url and Im trying to retrieve it …

Web Development mysql php sql
Member Avatar for Stefano Mtangoo
0
8K
Member Avatar for Stefano Mtangoo

Hi, I was reading on the net and could not find how to implement as loop something like twig's [CODE] <ul id="navigation"> {% for item in navigation %} <li><a href="{{ item.href }}">{{ item.caption }}</a></li> {% endfor %} </ul>[/CODE] I want to have idea of what is going on!

Web Development php
Member Avatar for Stefano Mtangoo
0
166
Member Avatar for greenblack

anyone please help me, whats wrong with this code: this is codeigniter, i can't upload file with this code/script: [code=php] class MUpload extends Model{ function MUpload() { parent::Model(); } function upload() { $data = array( 'my_file' => $_POST['userfile'], 'my_user' => $this->authniter->getUsername(), //this is user login name with my library 'authniter' …

Web Development php php-codeigniter session
Member Avatar for saadi06
0
104
Member Avatar for nalini@121

Hello Everyone! I am unable to change permission of folders created on C-Panel with chmod('folderpath',0777); Please help on this.

Web Development php
Member Avatar for nalini@121
0
160
Member Avatar for aru211285

Dear All, I have created a multi dimensional array and stored elements in that through while loop like $human = array(); and at every iteration the while loop will add elements like $human["IPI"]["Description"][] = $row; $human["IPI"]["link"][]= $link; but when i wanted to print this array contents in a table format …

Web Development php
Member Avatar for diafol
0
515
Member Avatar for Mohammed Saeed

In my company, we have a big excel sheet that we use it as a data entry. This matrix is filled with the data by many employees. each employee is required to fill specfic cells in that data entry. Now, we want to automate this matrix by developing a web-based …

Web Development asp asp.net listview
Member Avatar for vistriv5
0
262
Member Avatar for scamquist

I am new to php. I am trying to run a loop 5 times. Each time the loop runs I need to run a batch file and test the value of a query. If the query is > 0 exit the loop. Otherwise run a different batch file and continue. …

Web Development php
Member Avatar for scamquist
0
258
Member Avatar for Heinz Stapff

OK. My 'logincontainer is hard coded HTML in the index.html page and is shown when a 'placeorder' button is clicked. The client enters their e-mail address in the only input visible and javascript addevent onchange checks to see if it is a valid e-mail or not. Above the input id …

Web Development client-server javascript
Member Avatar for Heinz Stapff
0
199
Member Avatar for furlanut

I have been able to write functions but cannot get them to work. Many sites show you how to write them but not how to call them in your web programming. Can someone explain why this call does not work for me ? the function is: [CODE] <? php function …

Web Development php
Member Avatar for furlanut
0
115
Member Avatar for rohit.k2903

Not able to upload files on server. It is working fine in local. I want to upload some files. In my previous server it was uploading without any error.. not in new server. I set folder permission to 777, still it is not uploading. I delete existing and create new …

Web Development php
Member Avatar for veedeoo
0
127
Member Avatar for gourav1

hello! i have no knowledge of PHP at this time when i m writing this thread.my vacation are coming and i am eager to learn the PHP on my own means without any coaching institute.please help me by telling books for me and websites from where i can have a …

Web Development php
Member Avatar for Stefano Mtangoo
0
118
Member Avatar for komara

pls help i am beginner and i am trying to create a simple Guestbook but i got error "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /index.php on line 43" here is the code i use : <?php require ($_SERVER["DOCUMENT_ROOT"]."/komara/config/db_config.php"); $connection = @mysql_connect($db_host, $db_user, $db_password) or die …

Web Development mysql php
Member Avatar for pritaeas
0
234
Member Avatar for bbizzl

Hello! Currently I have a form where the user can submit emails in a comma separated format to the $row in database $contacts. How can I set this up correctly so the user can email their contacts? As of right now the script emails everybody but just not in the …

Web Development email php
Member Avatar for pritaeas
0
159
Member Avatar for tgr0ss83

cant figure out why i'm getting this error: Warning: implode() [function.implode]: Invalid arguments passed in C:\Users\Travis\Documents\choicegrid\dam_spp.php on line 67 [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>Untitled Document</title> </head> <body> <?php require_once('dom/simple_html_dom.php'); $url = "http://www.ercot.com/content/cdr/html/"; // The simple url $name = …

Web Development php
Member Avatar for tgr0ss83
0
1K
Member Avatar for riya_developer

Hello........ I have my my own localhost link.. [url]http://localhost:3965/Survey/SurveyPreview/105[/url] But it can not work in all computers... How to make this link general...that from all computers it can be opened...

Web Development asp.net
Member Avatar for urtrivedi
0
99
Member Avatar for lenyjose

Dear visitors, I found a site, they collect jobs from other jobs sites through rss feeds. How to collect records to MySQL database from rss feeds by using Php? . How to develop rss feeds by using Php and how to convert rss feeds into records of MySQL database? I …

Web Development php xml
Member Avatar for peter_budo
0
187
Member Avatar for PhatBEAT

Hi guys, I’m a new to web programming. I am learning ASP.NET in VS2010 and PHP in Netbeans, using XAMP. I’m having problems debugging my tutorials because they both use [url]http://localhost[/url]. When I try to run VS2010 code, I get some error, apparently because [url]http://localhost[/url] is assigned to XAMP. I’m …

Web Development asp asp.net
Member Avatar for pritaeas
0
256
Member Avatar for cskinittest

hi Iam using following script for time count, my Quiz project <script type="text/javascript"> var javascript_countdown = function () { var time_left = 10; //number of seconds for countdown var keep_counting = 1; function countdown() { if(time_left < 2) { keep_counting = 0; } time_left = time_left - 1; } function …

Web Development javascript
Member Avatar for cskinittest
0
162
Member Avatar for devinodaniel

Hello! I have this: [CODE] <?php $next_friday = strtotime("next friday"); echo "<select>"; // If you want to loop for 8 weeks for ( $i=1; $i < 10; $i++ ) { echo "<option>".date("m-d-Y",strtotime("+{$i} week", $next_friday)); } echo "</select>"; ?>[/CODE] It shows every friday and but all together. How would I modify …

Web Development php
Member Avatar for pritaeas
0
88
Member Avatar for garyrichard

I have created a report using NAVICAT Report Tool Report has an extension RTM . How..Do i run this report on Online web server..

Web Development php web-server
Member Avatar for pritaeas
0
393
Member Avatar for nikki05

Hi, I want to insert and select the data from the same table.I am using following query to insert and select the data from the same table. However, I am not able to insert the data. Is there any method to do this? $sql=mysql_query("INSERT INTO users (name,ref_no) VALUES( '$name', (SELECT …

Web Development php
Member Avatar for nalini@121
0
144
Member Avatar for ebanbury

Hi When I load my renew.php page - the following warning appears. However when I click the 'renew' button in the page, the code below still works, but only when I click the 'renew' button twice. I can't find what is wrong with the code to cause the error message …

Web Development mysql php
Member Avatar for ebanbury
0
4K
Member Avatar for jemz

Hi, I need some help in making the login like the daniweb...How am i going to do this that when i click the login it will show the div and the background will turns to gray.just like the daniweb...I am not quite good in javascript i am still studying on …

Web Development javascript
Member Avatar for jemz
0
102
Member Avatar for geneh23

Hey everyone, I have another issue with my login page...It is in the checkuser.php and after I register, get the automated email that directs me to a page where my account has been activated..and redirects me to a log in page..I put in my info that the email gives me …

Web Development php session
Member Avatar for geneh23
0
174
Member Avatar for ankit.pandey3

Hi friends... I am using Wamp with PHP 5.3 and want to connect with SQL Server 2005 but not successful. I also tried it with PHP 5.2.8 but it still not working. I google it and found some solutions but not successsful yet. Can anyone give me detailed guide (step …

Web Development mssql php sql
Member Avatar for ankit.pandey3
0
178
Member Avatar for ebanbury

Hi I have a function 'checkfile'within my 'add a record'form which checks to ensure that the images which users are uploading with the form are within a certain size...in this case 32kb, which is specified within GW_MAXFILESIZE. What would actually be much more useful and user friendly is if when …

Web Development image php
Member Avatar for ebanbury
0
252
Member Avatar for tozenter

Hi, I'm using a javascript function to toggle and display only 1 div at a time. In this case, I have 3 divs as toggle buttons and 3 divs to show content (which belong to those 3 buttons). My problem is these 3 divs (divs with class .linkBox) that act …

Web Development javascript
Member Avatar for MartinRinehart
0
222
Member Avatar for saad_sinpk

can u guys help me out i have make one form and i want that if i click on text around radio it select radio here is my form code [CODE]<form name="myForm" action="join.php" method="post" id="joinPool" name="insert" > <input type="hidden" value="" name="event_id" > <input type="hidden" value="survivor" name="game_type" > <input type="hidden" value="38" …

Web Development javascript
Member Avatar for super9876
0
116
Member Avatar for thenajsays

I'm having an issue with prototype... I have the following code that I want to execute: [CODE]Event.observe(window, 'load', function(){ $('mesTour1').hide(); $('mesTour2').hide(); $('mesTour3').hide(); $('mesTour4').hide(); $('mesTour1').appear().delay(0.5); $('cancelTour').observe('click', function(){ $('mesTour1').fade(); }); });[/CODE] the very first time it's loaded, it doesn't work, but if the page is refreshed, it works perfectly. is there something …

Web Development javascript
Member Avatar for super9876
0
105
Member Avatar for itisnot_me

ok so i am using jquery ajax to send post data to the php page to get processed. since im using a textarea with an editor on it i have to call the content like so var content = $('#pagecontent').val(); then post it through to the php page. which works …

Web Development javascript javascript-jquery
Member Avatar for itisnot_me
0
135
Member Avatar for daniel36

i am using this code and want to include one get variable in url which will be used in database query to show result.How it is possible .please solve my problem. i[CODE]<?php // database connection info $conn = mysql_connect('localhost','dbusername','dbpass') or trigger_error("SQL", E_USER_ERROR); $db = mysql_select_db('dbname',$conn) or trigger_error("SQL", E_USER_ERROR); // find …

Web Development php
Member Avatar for Stefano Mtangoo
0
115
Member Avatar for ALFA-FOXTROT

Hey guys im blind here... Im sending data to the controller to be processed... It works... except when a send two types of words... they are <script> and <scripting> Example: Input 1: <javascript> Input 2: <js> click SUBMIT (retuns no problem) [code] Array ( [answers] => Array ( [0] => …

Web Development php
Member Avatar for Stefano Mtangoo
0
654

The End.