52,566 Archived Topics
Remove Filter ![]() | |
This loop does not show images from the database and show only one record .. where is the problem And how can i make the id changes with loop This loop to show per line two records but how the show every time a different record, such as the latest … Web Development php | |
<?php // Dump the games.csv file into an array $games = fgets('file/games.csv'); // Parse the array foreach($games as $game) { echo "{$game}"; } ?> Error i get Warning: fgets() expects parameter 1 to be resource, string given in C:\wamp\www\test\peartest.php on line 3 Call Stack # Time Memory Function Location 1 … Web Development php ![]() | |
Strange little glitch in a function. I need to replace a class for an element. I can add class, but I don't want that. I need to replace the class. And it's not working. The variable passes with .addclass. and not the other way. maybe there's some syntax I'm not … Web Development javascript | |
Hello, Currently I have a wordpress website running on a multidomain linux hosting. Now am planning to develop a new website by myself using php, But I need to include e-mail features on my website for purposes like 1. Resetting Password 2. e-mail varification of registered users etc Please help … | |
Friends iam using Struts1.2 and iam new to this framework. Iam stuck at one place. I have fetched the records from oracle database and set it in the arraylist of type(DTO object) which is defined in bean class. Now iam facing problem in iterating through the arraylist in the jsp … | |
HEllo i want to know how to submit form to email so that one can received all form infromation in email , if u have seen Contact pages, inquiery pages in website same as i want. Either in PHP or ASP | |
Hello people, I was wondering what are the most popular email services (eg. Hotmail, yahoo, gmail...) Please help. Web Development client-server email | |
hi guys.. i need your help.. i want to display the user's login information. like, storage location..but im not sure how to do it.. this is how i try to do it.. $tenantID = $_GET['tid']; " " " $query_recTenantuser = "SELECT * FROM md_storage WHERE tenantID='".$tenantID."'"; $rs_recTenantuser = mysql_query($query_recTenantuser) or … | |
Hi, I am having an issue where i want to be able to read the value of a particular cell from a selected row in telerik radgrid. I am using the following code: <%@ Page Language="C#" MasterPageFile="~/Page.master" AutoEventWireup="true" CodeFile="ProductSignup.aspx.cs" Inherits="ProductSignup" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style2 … ![]() | |
Hi My error log is showing the following error every five minutes so I suspect it is related to one of my cron jobs, The error is: PHP Notice: Undefined index: HTTP_USER_AGENT in /home/myaccount/public_html/mysite.com/app/config/config.php on line 18 The relevant line 18 is: $_is_hashbang_supported_bot = (strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false); Line 19 … Web Development ![]() | |
I have a search in my drupal website which searches for users registered in my website (finder module). Upon clicking any user from the user search result, it takes to that user's profile page. At the top of that page, a text 'Relationship' is displayed. Under it, a link saying … Web Development php ![]() | |
Hi, I'm trying to update the user information from textbox when the user click view my account information in the main page it will take them to another page which will display their account information they will be able to change everything excpet for the username becouse it is primary … Web Development asp.net ![]() | |
I am currently working on an open source dating script. But I have one bug that I just can't seem to fix. I am unable to send system generated emails to Yahoo! and gmail. I have done a lot of searching online, but can't seem to get it working. I … Web Development email open-source php | |
My desired effect is for a comment delete button like what Facebook has on mouseover. The parent element is inserting a new div that will be the "delete" button on mouseover, and removing it on mouseout. My problem is, when I try to mouse over the div being inserted, it … Web Development javascript | |
hi... all... i'm doing a wordpress jobsite... in the home page i want to load all the jobs list by using infinite scrolling with load more button... i found an example here http://www.authenticjobs.com/ and i dont know how to do it.. can anyone help me pls... here is my index.php... … | |
I have a weird problem. I try to add two strings together but instad the variable evaluates to 0. Why is this happening and how to fix it ? <?php require_once('config.php'); $connect->query("SELECT id, name FROM room"); $rooms = $connect->get(); print_r($rooms); $result = "<ul>"; $asd = "Test"; /* foreach($rooms as $room … Web Development php | |
Hi Everyone, I am new to JQuery, Java Script & Ajax. Hope you dont mind the daft questions I may post. Here is my first Jquery, JS & Ajax question. I have the follow script inside my head section of a website I am testing with. <script type="text/javascript" src="jquery-1.9.1.js"></script> <script … Web Development javascript javascript-jquery | |
Hi, I'm having trouble getting the information I need from my mysql db. I need to write a query that gets me: 1. A list of all combinations of answers from 8 columns and the frequency of them. Every row contains answers from 1 person from a survey and I … ![]() | |
Hello guys, I want to create download file script, I used an **id** to refer to a file in my site here is the script get the id and search in database for filename then return it for download. <?php if ($_GET['file']) { $id = (int)$_GET['file']; $sql= "SELECT filename FROM … Web Development file-system php | |
<form name="form1" method="POST" action="#" onSubmit="return check();"> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("shg", $con); $result = mysql_query("SELECT * FROM consumer"); $email=$_POST['myusername']; $password=$_POST['mypassword']; $query="select * from consumer where email='$email' and password='$password'"; $result=mysql_query($query); if(mysql_num_rows($result)==1) { $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table … | |
Hi everyone, I am having some trouble with a mysql select query not working correctly. The query I am trying to run is "SELECT * FROM cards2 WHERE cardid NOT LIKE '".$_SESSION['clubsId'][0]."' " I have also tried mysql_query(" SELECT * FROM cards2 WHERE NOT (cardid =".$_SESSION['clubsId'][0]." || ".$_SESSION['clubsId'][1]." Would appreciate … | |
hi!here my problem again! Can you tell me how to display image map when choose image map name from drop down menu? help me again! thanks for your time! good luck! | |
what I am trying to do is use this php script to load the data being submitted in the html form into my database and then populate the database into an excel (csv) file and then e-mail it to my address. Everything works great it populates into the database and … Web Development email microsoft-office mysql php | |
I want to include an external php file in wordpress single.php file; conditional to existance of certain custom taxonomies. That file should only include if post is linked to specified custom taxonomies. If custom taxonomy terms do not exist for that post, then file should not appear. Thanks in advance; Web Development file-system php wordpress ![]() | |
I was wondering if there is any way of tracking the number of times that a .jpg is displayed? The way that it is being used is that it is being displayed in an advertising campaign, and when someone opens the email, the .jpg is displayed, and I would like … Web Development advertising php ![]() | |
The form submits even when there are validation errors. How do I disable the submit button when there are validation errors? Here is the .js file ,submitFu:function(){ _.validateFu(_.labels) if(!_.form.has('.'+_.invalidCl).length) $.ajax({ type: "POST", url:_.mailHandlerURL, data:{ name:_.getValFromLabel($('.name',_.form)), email:_.getValFromLabel($('.email',_.form)), phone:_.getValFromLabel($('.phone',_.form)), //fax:_.getValFromLabel($('.fax',_.form)), //state:_.getValFromLabel($('.state',_.form)), message:_.getValFromLabel($('.message',_.form)), owner_email:_.ownerEmail, stripHTML:_.stripHTML }, success: function(){ _.showFu() } }) }, showFu:function(){ … Web Development javascript javascript-jquery ![]() | |
I want to have this table and user will be able t delete row of data if they wish to with the checkbox. But the errors i don't know how to solve: *Notice: Undefined index: itemcode in /home/lh026/public_html/pro1/ostock.php on line 153* *Notice: Undefined index: saiz in /home/lh026/public_html/pro1/ostock.php on line 154* … Web Development | |
Hey fellas, My prof gave us a php example in class and I'm having some trouble understanding a peice of code: isset($_POST["item"])? $item = $_POST["item"]:$item = "Not Set"; isset($_POST["quantity"])? $quantity = $_POST["quantity"]:$quantity = "0"; The problems: Does isset just check if "item" is equal to something? The format of the … Web Development php | |
![]() | im trying to submit data from my form into a database. After validating everything the code to insert the data is: $qry = "insert into users(id, name, surname,email, password,date) values (id,'$name','$surname','$email','$password','$date')"; On testing the code i get an error that says:"error: unkown column 'geek' in field list". geek corresponds to … |
This is what I am tring to do... I have a table with 4 items: id (primary key) group_name employees surveys What I need to do is display all the data on a html table in input boxes, and allow a end user to update each field. I have tried … | |
hello guys. i want to add a button in php wich loads a document and includes it into the text area. sample we have a file called document.txt and if we load this file by pressing the button load, the textarea then is filled with the text that was in … Web Development php | |
Hello all. Currently I develop PHP website, and I do simple java programs. Since I will continue learning more and more java, I decided to learn JSP/Spring MVC (Don't really know how Spring MVC Framework uses JSP, check next paragraph) combination of my web knowledge and the Java programming language. … Web Development java-jsp php-codeigniter spring-framework | |
Hi I have been trying to wrap my head around a small issue I have. I'm trying to show a messagebox if a value a met. [CODE]if (CurrentProcess == "Test") //Show message then do something else else //Do Something else [/CODE] JScript confirm will work with onclientClick but that is … Web Development asp.net | |
I want to make it create the upload folder by itself.right now it creates the thumbs and so but I want the script to create the folder automatically <?php function createThumbs($pathToImages, $pathToThumbs, $thumbWidth) { $dir = opendir($pathToImages); while(false !== ($fname = readdir($dir))) { $info = pathinfo($pathToImages . $fname); if( strtolower($info['extension']) … Web Development file-system php | |
Hi, I have a problem I just cant solve. First I will explain what I am trying to do. I have a page with a menu consisting of categories of products, some of these categories have subcategories and some don't. Categories and subcategories are kept in mysql tables. The tables … Web Development php | |
So what is going on is. For some reason if I just invoker "render();" the function does not run. But when I put it under the main(); function, and then invoke the main function under a "setInterval()" method then everythig works. Why is this? // Draw everything var render = … Web Development javascript | |
So, i enabled mod expires to my web page. Here's the code i used: <IfModule mod_expires.c> ExpiresDefault "access plus 2 months" ExpiresByType image/x-icon "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 … | |
i have a database with several paths looking like the one below C:\S&M Site Project\NEWSMAA\SitePhotos\2\GUY093\GUY093-Tulips.jpg what i aim to do is load the images into a gallery control (if one exist) the users viewing the images should be able to do either of the following: 1.Double click on an image … | |
Hi guys, let me get to the point: I want have a button that when clicked allows the user to browse to any folder in any location whether it is a flash or the c-drive. Depending on the location and folder selected the user must see all image files in … Web Development asp.net | |
hi, i have a class handler and a class health monitor. i have 2 instanses of the handler class as primary and secondary. in the start of the appliacation the primary and th secondary handler is set. what i want to do is once the primary is set up every … Web Development asp.net | |
I'm making a full-screen slider with [maximage][1] & [cycle][2] that (so far) does the following: - Compares a given URL hash against each slide's ID and loads a match, if found, - Appends the first slide's ID to the address bar as a hash, if none is specified, - Replaces, … Web Development javascript javascript-jquery ![]() | |
hi. i want to load and read a file in php. i wrotte this code but it doesn't work. i want when the user loads a txt file, then it will be shown in the page. i can use fopen but i dont know its directory for example. any help … Web Development php | |
Hi chaps, I am having a little problem. Given the following snippet: html <div id="carousel"> </div> css #carousel{ border:1px solid magenta; width:600px; height:258px; background: url('sprite.png') no-repeat 0 0; position:absolute; left:0; top:28%; } jquery $(document).ready(function(){ function scroll(){ $("#carousel").animate({ backgroundPosition:'-600px'}, 500); } setInterval(function(){scroll()},2000); }); I am trying to run scroll() forever to … Web Development html-css javascript | |
Hi. I want to remove lines with same text. i wrote this code, but it doesnt work. where is the problem ? $total=$_GET['name']; $keyarr=explode("\n",$total); $int=sizeof($keyarr); for($a=0;$a<$keyarr;$a++){ for($b=$a+1;$b<5\$keyarr;$b++){ if($keyarr[$a]==$keyarr[$b]){ unset($keyarr[$b]); } } } echo $keyarr[$int-1]; foreach($keyarr as $new){ echo $new."<br>"; } Web Development php | |
My code Search_restl.php <html> <body> <head> <font size="3"><strong> <?php // Connects to your Database mysql_connect("mysq.com", "bd", "pass") or die(mysql_error()); mysql_select_db("products") or die(mysql_error()); $q = mysql_real_escape_string($_GET['query']); $data = mysql_query("SELECT * FROM Products where name LIKE '%$q%'") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { echo "Product Name: $info[name]<br>"; echo "Grade A: … Web Development php | |
hello everyone i am facing a little problem I have a 3 dependent selectboxes and i want to save the selected values in the session so user can remember what category i selected before also it prints the last visited link here is my code pelase tell me what code … | |
I am currently using a datalist to update the database with a textbox control. The problem is that when I am pressing "Edit" and entering values in the textbox and when trying to update the database, the database is not getting updated with the entered value. Could someone please let … Web Development asp.net | |
![]() | Hello all, First, if I may, a comment. This is my first post. I have been a member of another forum and found that users are treated with little respect... assumptions are made, stupid questions are not allowed patience, etc. I work for a large IT corporation (if I told … |
ASP.Net master page and content page I have a login screen in the content page ,Aftre login the values should go to the Master page on the Label. please give some solution |
The End.