52,566 Archived Topics
Remove Filter ![]() | |
I am filling a dataset from a database. When there are no rows to return it still tells me that the count is 1. I can't figure out what is going wrong. if I look at a visual of the dataset, the row is blank, but the count is 1. … | |
Hi everybody, I have a specific problem, and cant get over it. For my latest project I need a simple PHP script that display an image according to its ID sent through URL. Here's the code: [CODE]header("Content-type: image/jpeg"); $img = $_GET["img"]; echo file_get_contents("http://www.somesite.com/images/$img");[/CODE] The problem is that the image doesn't … | |
[B]The Idea[/B] The idea is that my PHP page will execute specific SQL statements on a database depending on which form elements are filled in. Instead of having to write continuously lengthy IF statements to determine which statement to use, I would like to have the necessary statement "looked up". … | |
Hi, I know the problem that I am having is related to the change in PHP5 about strings and arrays, however I do not understand why my script is affected. It seems like I am not trying to add more variables to an array. I do not success in order … Web Development php | |
Hey Guys :) I want to be able to rewrite my URL's like so: [B]site/profiles/(username)[/B] but this would really only be site/profile.php?username=* I have this so far: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^profiles/$ profile.php </IfModule> How would I do the [B]bold[/B] located above? Web Development php | |
Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set … Web Development php | |
[CODE]<?php $host="xxxxx.xxxxxx.com"; // Host name $username="xxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $id=$_GET['id']; // Retrieve … | |
Hi, I have a form where the users can add "name" and "id" fields by clicking on the "Add" button. The input fields look like this (each pair is a row): [CODE]<input name="name_1" id="name_1" /> <input name="id_1" id="id_1" /> <input name="name_2" id="name_2" /> <input name="id_2" id="id_2" /> ... [/CODE] The … Web Development javascript | |
Description: ------------ Doing the following SimpleXML text comparison does not give the expected results. Reproduce code: --------------- [CODE] <?php $sxe = simplexml_load_string('<root a="123" />'); echo $sxe['a']."\n"; if ($sxe['a'] == '123') { echo 'They are equal.'."\n"; } else { echo 'They are not equal.'."\n"; } [/CODE] ?> Expected result: ---------------- 123 … | |
Hi! I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so. The code I am using is: [CODE]$(document).ready(function () { $("#addaccount").dialog({ height: 'auto', width: 'auto', modal: true, autoOpen: false }); $("#addaccountlink").click(function (e) { $('#addaccount').dialog('open'); });[/CODE] Here … Web Development javascript javascript-jquery | |
I am retired person who volunteers for several youth organizations. I have no IT training. In my capacity as a volunteer I manage a couple of websites using Front Page. Because of some issues with ASP, I am attempting to migrate some work I completed in Front Page to a … | |
Hello I have this.. I have a Scrip with name [B]MiScript.jsp[/B] and code.... [CODE]<%@ include file="Func.jsp" %> <jsp:include page="Func.jsp"/> <% String Mipath = "C:\\"; String Mifile = "File.Ext"; if(mifuncion(Mipath , Mifile )) { out.println("OK!!!"); } else{ out.println("ERROR!"); } %>[/CODE] And I have the other Script [B]Func.jsp[/B] with a Method.... [CODE]<%@ … Web Development java-jsp | |
i want to add watermark in image.i am using image handler. its not properly working. i want to add watermark at runtime only no need for original image.in my home page i have 25 thumbnail images. when i click any one of the image it goes next page and display … | |
i am trying to store the user entered form data (using php )to a .txt file.. and when i am trying to display the .txt file using php .. the contents are displayed along with the delimiter ( ||) ..how do i get rid of the delimiter in the display … Web Development php | |
I am having the hardest time trying to figure out what I am doing wrong with this section of code. Basically, I am using the GET method to pull a variable from the URL which I then want to search the database for. This "ticket" is unique and I only … | |
I take value from textbox as, [CODE] var perOfEasyQues = parseInt(document.getElementById("<%=txb_EasyQuesPerc.ClientID%>").value); [/CODE] but as I put 012 it takes 10. Can anybody suggest solution over it? Web Development javascript | |
Hello, I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give … Web Development javascript mysql php | |
Hi there, I got this annoying problem... I have to create dynamically an image control that has got to be accesses later through javascript. In other words, I got an image that was created in the page code, and using javascript I got to be able to work with it … Web Development asp.net image javascript microsoft-access | |
Hi all, I have a number of refreshing divs in my code, all of which work fine. Ive been trying to create a dynamic graph using the same method, but when i run the script all i can see is the following when the graph should be PNG ��� … Web Development php | |
Hallo @all my problem is XMLHTTP by Mozilla Browser is an example W3SCHOOL [URL="http://www.w3schools.com/xsl/xsl_client.asp"]http://www.w3schools.com/xsl/xsl_client.asp[/URL] [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>html work with xml and xsl</title> <meta content="text/html; charset=us-ascii" http-equiv="Content-Type"> <script type="text/javascript"> var xsltProcessor; var xml; var xsl; var xhttp; var ex; function checkBrowserName(name){ var agent = … Web Development javascript xml | |
I'm not really sure what's going on. I've looked all over the internet and have been stuck on this issue for days. It seems as though few have run into this problem and those that have - have no suggestions or even any replies. CKEditor's help forum has nothing on … Web Development php | |
I started learning AJAX recently and I must say that it is very interesting. But I have a little problem understanding why [B]nodeValue[/B] is not returning any value. But when I change the [B]nodeValu[/B]e to [B]nodeName[/B] I get the right result. I am currently accessing the individual elements manually because … Web Development javascript xml | |
Ive read a few tutorials to try and get this mod_rewrite to work but have no luck. I have checked my phpinfo and everything should work. I am trying to change this url: [url]http://domain.com/viewAlbum.php?aid=2[/url] (any number) to this url: [url]http://domain.com/album/2/[/url] Here is my .htaccess file and I dont know if … | |
I have cretaed a login page in php got the database and connection how ever when i register i get an error Error: User not added to database. this code is in my register.php file can anyone help thanks [CODE] // Make sure query inserted user successfully if ( !mysql_insert_id() … Web Development php | |
Hello I want to make file hosting website. As like megaupload or rapidshare. How can I do this. I know how to upload a file, rename file, etc. Actually I need to know. How to prevent file or directory to access from un authenticated user. Please suggest what is the … Web Development file-system php | |
ok guys i have a litle peace of script that needs some modefying the page was original that you must ad you admin pass to accept a new fusker upload! but becouse i intregrate it in a new system it can be done after you see the images so only … | |
Hi! I have a problem with the following statement: [code] $dbres = mysql_query("SELECT UNIX_TIMESTAMP(`huur`) AS `huur`,huur1,`login`,UNIX_TIMESTAMP(`signup`) AS `signup`,`attack`,`defence`,`clicks`,`attlosses`,`attwins`,`deflosses`,`defwins`,`cash`,`type`,`clan`,'maffiamode',`avaurl` FROM `[users]` WHERE `login`='{$_GET['x']}'"); if($def = mysql_fetch_object($dbres)) { if($def->login == $data->login){ print " <tr><td class=\"mainTxt\">You kicked yourself in the nuts... now what?.</td></tr>\n"; }else if($def->login == $admin1) print " <tr><td class=\"mainTxt\">Do NOT attack … Web Development data-protection php | |
hello.. i am creating cmc pages from admin side. i have 3 level menu in front end. my database table structure for cms pages 'name,parent_id,description,status'. now i have to display all pages subpages and sub of subpages in menu. how to write this query? [CODE]<!-- BEGIN Menu --> <ul id="nav"> … | |
[I]Hi, I'm a intern as a web developer in a bank.. I really don't know much about this field but still im trying. I am a given a project "Service Request Monitoring System".[/I] [COLOR="Red"] IDE: Eclipse Europa Database Mgt System: Postgre SQL 9.0 Server: Tomcat 6.0[/COLOR] [B]my task now, is … | |
developing two pages html in front page n other in asp.net using vs 2005 i want to in html page there is a submit button when i click on it asp.net page will b opened and code written asp.net will b wxwcuted need help | |
Hi, I am using MasterPages with ASP.NET. The main contstruct of my MasterPage is a table providing a header, menu panel, main content and footer. I would like the table to at least fill the whole screen height. I've found (thru Google) a way of determining the screen height. The … Web Development asp.net client-server javascript | |
[CODE]function getUsers(column, id) { $.get('userlist.php', {column: column, id: id}, function(output) { $("#userlist").html(output); }); setTimeout(getUsers(column, id), 5000); }[/CODE] userlist.php checks for users online. i want it to check every 5000ms (for example, doesnt have to be that) Firebug is giving me 'too much recursion' errors. I've used this exact code structure … Web Development javascript javascript-jquery | |
i wanna get two inputs and calculate them. how can i do? my code is [CODE] <input type="text" name="a" /> <input type="text" name="b" /> <input type="submit" name="Submit" value="calculate" /> <?php if ($a > $b) echo "a is greater than b"; else echo "a is greater than b" ?>[/CODE] please help … Web Development php | |
Hello all, I am working on a project where i save client machine path into my database. And if end user clicks download files button, then the files from ftp server have to be download in client machine directly. My application resides in web server. Please give me some suggestions … Web Development client-server file-system java-jsp | |
Hello guys, i got a problem here.. I would like to change the url: [url]http://mysite.com/edit_files.php?deleteid=26[/url] to something randomized so people can change the numbers in "deleteid=26" I know i need a htaccess code for this, and i've searched allot to try bring this bitch down, so asking some pro fellas … | |
hi All I hace created job site i writed to my own CSS. but it displays in IE fine like i want. but in Mozilla it displays all borders. how can i do that in displays table like in IE. Thank you very much. this is my site [URL="http://www.karyeram.com"]http://www.karyeram.com[/URL] my … Web Development javascript | |
[CODE] <?php class X { function X(){ if($_POST['break']=='yes'){return;} } } class Y extends X{ function Y(){ parent::__construct(); print("Y_constructor_finished"); } } $_POST['break']=='yes'; $new_Y=new Y(); // will print "Y_constructor_finished" [/CODE] i does't work with return it still print Y_constructor_finished Web Development php | |
Good day all please ADO, I need help.After developing my jsp,the code work fine except that it displays image link from the database instead of the image itself.I tried manipulating the blob datatype by setting (Blob bl=resultset.getBlob(n)) but it returns an error.Secondly,assuming i want the size of that image to … | |
Hi! I am a developer. I am using jquery to implement various functionalities. I am using jquery.js with jquery-1.2.6.min.js. It shows an error in the following code snippet: (!q&&!n&&c.data(this,k,new c[l][k](this,p))._init()) as object expected when I debug the web application. I am a novice in this field. Any kind of help … Web Development javascript javascript-jquery | |
I want to download the records of the output of search criteria to excel. As the fields for search criteria are more than 20. I am submitting the form with POST method rather than GET. On click of "Download2excel", the hidden variable name1 is set to Yes. so i will … Web Development javascript | |
I have been trying to make images appear in a table from a database i have created in MS Access this code [CODE] <td><%=(Recordset1.Fields.Item("Image").Value)%></td>[/CODE] is the code that is original used that shows the path, i was told to replace the code with the one below the original but i … Web Development asp microsoft-access vbscript | |
html.html is below [CODE]<form action="734608271.php" method="POST" /> Carrier: <select> <option name="car" value="nothing">------------------------------</option> <option name="car" value="Alltel">Alltel</option> <option name="car" value="AT&T">AT&T</option> <option name="car" value="BoostMobile">Boost Mobile</option> <option name="car" value="CentennialWireless">Centennial Wireless</option> <option name="car" value="EinsteinPCS">Einstein PCS</option> <option name="car" value="Nextel">Nextel</option> <option name="car" value="Sprint">Sprint</option> <option name="car" value="T-Mobile">T-Mobile</option> <option name="car" value="US Cellular">US Cellular</option> <option name="car" value="VerizonWireless">Verizon Wireless</option> <option name="car" … Web Development first-post php ![]() | |
hi all, I dont really know jquery that well but im looking for a function that maybe you would know. What i would like to do is insert text into a text area where the cursor last was. I do have this little piece that i found on the web. … Web Development javascript | |
My phpthumb will not generate thumb nails on one of my sites. The other site seems to work(although sometimes only some thumbnails are generated). My first problem was, I was running my image paths like so: [CODE]<img border='0' src='http://domain.com/phpThumb.php?src=".$row['path']."&w=150&zc=1' /> //.$row['path']. = http://domain.com/path/to/image.jpg[/CODE] I was getting an error telling me … Web Development php | |
Hi Guys, I really don't not know where I'm going wrong with this. I am learning PHP. I have been able to input a user birthday on registration on my website using a list menu such as is on facebook. I however just cant be able to extract the date, … | |
I have taken little CMS script. but there some lines in script it confises me. who can help me to understand this lines this is [B]index.php[/B] [CODE]<? //ə session_start(); $sid = md5('atlasmed.az'); define('_INCLUDED_', true); include_once('config.php'); include_once('class.php'); $class = new functions(); $id = $class->is_num($_GET['id']); $menu = $_GET['menu']; $menus = array ( … Web Development cms html-css javascript-jquery php | |
Hi I have my initialise constructor, why won't my function to_hash work ? [CODE]def initialize(msg) @original_msg = msg.strip.delete(' ') s = ["|","^"] @chunked_msg = @original_msg.split(s[0]) @msg_hash.self.to_hash end def to_hash @chunked_msg.each do |x| s = x.split("=") @msg_hash[s[0]] = s[1] end return @msg_hash end[/CODE] Web Development ruby | |
Hi everyone, I am new to PHP and need help in making my script be able upload multiple images simultaneously. I need a large image and a thumb for each. I got this script from the web and made a few changes. I would really appreciate any help. The forms … | |
Hi all, I need help in the alert function. I'm using count in php in which if the item is less than or equal to 10,the alert function would pop up. However my code does not work.Below is my code. Part of the php code: [CODE]echo "<td>".$row['COUNT(item)']."</td>";[/CODE] Javascript code: [CODE]<script … Web Development javascript php | |
I don't know if this is more efficient or if it is just as quick to just code out a new page. But what I was wondering is how you create an index page and call on a new page, but the url usually says something like: index.php?page=contact instead of … Web Development php |
The End.