52,566 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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"); … ![]() | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
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 ![]() | |
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 | |
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 | |
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 … | |
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, … Web Development flash html-css javascript javascript-jquery | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 ![]() | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 |
The End.