17,029 Solved Topics
Remove Filter ![]() | |
I would like to understand how to retrieve an Image stored in a mySQL database as a longblob. Once retrieved, assign that image asp.net image control. Heres the code that uploads the pic to the MYSQL database [CODE] If (Not myups.HasFile) Then Return -1 End If 'FileName.PostedFile.InputStream() Try Dim fs … | |
hi all i need to learn what does this mean (this style of writing) may be is there another variant to write the code [CODE]<? exit;} if($_GET['step'] == "2"){ $name_db=$_POST['name_db']; $host_db=$_POST['host_db']; $user_db=$_POST['user_db']; $password_db=$_POST['password_db']; $connect=mysql_connect($host_db,$user_db,$password_db); mysql_query("create database $name_db"); $connect=mysql_pconnect($host_db,$user_db,$password_db); mysql_select_db($name_db,$connect); $sql1 = "create table `config` ( `id` int(1) NOT NULL default … | |
I am trying to learn a little about ajax and prototype.js. Here's what I have so far: [B]boardtest.php[/B] [CODE] <html> <head> <title>AJAX Test with new javascript</title> <script src="scripts/prototype.js" type="text/javascript"></script> <script src="scripts/ajax.js" type="text/javascript"></script> </head> <body> <div id="products">(...locaing inventory...)</div> </body> </html> [/CODE] [B]ajax.php[/B] [CODE] <?php $company = $_GET['company']; $limit = $_GET['limit']; $line … Web Development javascript | |
I need to use a DropDownList in my application made in VB.Net where I can select multiple values from the List. Please help me out.. thanks | |
hi, i have designed my clients site, and currently you can login and add a client, i then have a few tables which are policies that are sold to the client. i have created a foreign key between the policy table and the clients table. what i want to do … Web Development client-server display php ![]() | |
Hi all I am using sqldatareader to read data from sqldatabase. The data is being shown on web forms with tabcontainer and tabs. The scenario is I have three rows of data for a client.I want to read row by row data on a button click event.I used while loop … Web Development asp.net | |
hi any one try to tell me,, i created a button control ,, by double clicking only the process was going on,,when iam single click the button nothing is to be happenend,,so i want to change into single click insted of double click........ here my coding is given below....... [code] … Web Development asp.net | |
Hi, I recently created a website with a spry dropdown navigation bar. On preview from Dreamweaver CS4, in Firefox, IE, Opera, Chrome, all elements work properly and the dropdown menus work as well. However, when I upload it to my server at the domain [url]http://www.kcsslibrary.com[/url], the dropdown menus do not … Web Development javascript | |
Does anyone know how to use httpcontext.response.transmitfile or any other httpcontext function to download a file from a network drive instead of local drive? When I tried to use context.Response.TransmitFile(DownloadPath) to download files, the DownloadPath has to be local drive. If it's a network drive, the download failed. Thanks in … Web Development asp.net | |
is there a possibility to retrieve a search from an ldap search (for my case) which is in done php <?......?> outside of it to the body of my page? to have a general idea i try to create a table that will be completed dynamically from the search being … Web Development php | |
I am building a website that uses php5 and mysql database. I want to upload images alongside other information. To get other information into the table of the database, this I can do very well, but to upload and display the images alongside other information(which may be done online by … | |
I got everything going regarding PHP widgets and successfully fetched my DB. [CODE]<?php $con = mysql_connect("mywebsite.com","DB","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("pages", $con); $result = mysql_query("SELECT ebayid, reason, DATE_FORMAT(date, '%M %d, %Y') FROM `blacklist` ORDER BY `ebayid` ASC"); echo "<table border='0'> <tr> <th>EBay ID</th> <th>Reason</th> … | |
Hi all ... During a session a user causes information to be added to a temporary database table. At the end of the session, the information has to be removed. How can I tell when a session has ended so that I can clear the rows from the table that … | |
I have a great download script I have been using from: [url]http://www.zubrag.com/scripts/download.php[/url]. It uses the following headers: [code=php] header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Type: $mtype"); header("Content-Disposition: attachment; filename=\"$asfname\""); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . $fsize); [/code] My goal is to call this php … Web Development file-system html-css php | |
I am trying to send mail with attachment after using browse button. in this process some error shows [CODE]Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/php_upload/phpLc37tw) is not within the allowed path(s): [/CODE] thsese are code for my mail file [CODE]$filename=$_FILES["strresume"]["name"]; $filetype=$_FILES["strresume"]["type"]; $filesize=$_FILES["strresume"]["size"]; $filetemp=$_FILES["strresume"]["tmp_name"]; $fp = fopen($filetemp, "rb"); $file = … | |
Hi there I am very new in useing jsp but here is my first problem. I registered a bean in the applicationContext.xml with the id myBean. Now I want to call a function like this ${myBean.myFct} but the function does not exist and it should not. In PHP there exists … | |
hi guys, just wanna ask how could i pass the value of a certain variable coming from one frame into another frame having that the frames are both present in one webpage only?? thanks thanks..^_^ Web Development php | |
I want to set the value to <td><div class='urg5'>High</div></td> in JTSL. [CODE]I tried <c:set var="ack" value="<div class='urg5'>High</div>"/> <c:out value="${ack}"/> Page source of the JSP web page is <div class='urg5'>High</div></td> i.e. special characters appear. instead of <div class='urg5'>High</div>[/CODE] Web Development java-jsp | |
Hie guys does anyone know something about dotProject. l am trying to modify code in completed.php to display en extra column which is Project Name in a pdf file Web Development open-source pdf php | |
I 'm trying to create my own Javascript library which I want to be able to access in the same way as you do with Jquery (by writing Jquery.something or $.something). But I can't figure out how that is done. The object Jquery must in someway be created and have … Web Development javascript javascript-jquery | |
I am using Visual Studio 2005 to build a website using ASP.NET and VB.NET. It is accessing data on SQL Server 2005. I have a form (actually it is in a wizard) that needs data populated from a sqldatareader. This all works for the first two steps in the wizard, … Web Development asp asp.net vb.net visual-studio | |
hi, i m asha bhatt i have create check box list dynamically and i want to do the validation for that its checked or not this is my .aspx.cs code [code] using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using … Web Development asp asp.net dataset open-source web-server xml | |
Hi, I want to validate the user id that was entered in a textbox (similar to while registering to a site, we come across something like "this username already existed please choose different") without refreshing the page (or i can say in textbox onchange event) can someone guide me how … Web Development php | |
Hi Everyone, I have one master page and one user control I want to add and use the user control at runtime in the master page. I have used LoadControl Method to add usercontrol but in that case i was unable in getting the tagprefix and tagname value of the … Web Development asp.net | |
for some reason i am getting an error with my query statements here is my code [CODE]if ($_GET['mode'] == 'edit') { $c=$_GET['coursecode']; echo"$c"; // editing an existing entity // check for value of id if (!$_GET['coursecode']) { echo "error: no coursecode specified, <a href=\"{$_SERVER['PHP_SELF']}\">click here to continue</a>"; exit; } if … Web Development php | |
hi guys, just wanna ask is there a good software which can help me plot data or draw a line graph in php? these data are dynamic, and will come from the database..just a simple line graph will do. thanks thanks. | |
Is web.config file is must to execute any asp.net application if we are maintaining connection strings on the page itself. Web Development asp.net | |
Hello, I'm trying to let users know how many times there personal page is viewed. Here is some code. [CODE] $colname_Recordset1 = "-1"; if (isset($_GET['user_name'])) { $colname_Recordset1 = $_GET['user_name']; } mysql_query("UPDATE content SET counter = counter + 1 WHERE user_name = $colname_Recordset1");[/CODE] It works if I remove the WHERE clause … Web Development php | |
Hi, I am trying to create a website where the visitor can choose one of two languages when first arriving at the website. Then I want that choice to be saved throughout the whole visit without the visitor having to log in. I've always felt that cookies are a lame … Web Development javascript session | |
hi all, I wonder if anyone can help me, first of all im new to asp.net and am trying to learn it. Right, i have developed a website locally which works fine, but when uploading it to my host i am receiving a runtime error on the pages that interact … Web Development asp.net web-server | |
Is the form below a valid method of changing the id of an XHTML element, specifically the one actually being referenced? It does not seem to work for me. [CODE]document.getElementById("Original_Name").setAttribute("id", "New_name");[/CODE] Web Development javascript | |
Hi! I am testing how to make an easy chat engine [URL="http://erlendhl.ueuo.com/c/ExternalChat.html"]here[/URL]. First I used[ICODE]xmlhttp.open("GET",url+"?F="+FILE,[B]false[/B]);[/ICODE], but I noticed that it was very bad to use false, because then, every 2 seconds, the page stops working. (like you can't do anything for like 0.5 sec) So I tried to use [B]true[/B], … Web Development javascript | |
Shall i know if there is implementation of gridview in php as it is in .net please help me Web Development php ![]() | |
[CODE][/CODE]Can someone plese have a look at this for me and tell me why @userid is giving me a scaler error.... [code] Protected Sub recordcount_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles recordcount.Click Dim con As New Data.SqlClient.SqlConnection() con.ConnectionString = ConfigurationManager.ConnectionStrings()("ConnectionString").ConnectionString Dim cmd As New Data.SqlClient.SqlCommand() cmd.CommandText = "select … Web Development asp.net | |
hi,im having a problem with my code.im trying to edit data that im retrieving from my database tables.but im unable to submit the data after editing it.my code is shown below [code=php] <?php require_once "../inc/functions.php"; require_once "../inc/vars.inc.php"; sessionCheck(); session_start(); $old_sessionid = session_id(); //i've added these lines session_regenerate_id(); //i've added these … Web Development php | |
Hi All, Im having some trouble with creating PDF's. I have researched and found a boat load of scripts, but non work as I dont have a library installed. That is my question.... How do you install a pdf library? I have tried PDFLib but when i run a script … | |
[CODE=AJAX] function update(value1) { doAjax("behind_scan.php" , "id="+value1); } function doAjax(url , str ) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } url=url+"?"+str; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { //document.getElementById("txtHint").innerHTML=xmlhttp.responseText; //alert(xmlhttp.responseText) document.forms.myform.scanner.value = ""; document.forms.myform.scanner.focus(); } } function GetXmlHttpObject() { if … Web Development javascript | |
hello all, i am using script functions for tooltip. [code=JavaScript]function showTip(js_element) { var str_selectedElement=""; var str_tipElement=document.getElementById(js_element); var str_comboElement=document.all('cmd_combo'); for(var i=0;i<str_comboElement.length;i++) { if(str_comboElement[i].selected) { str_selectedElement=str_comboElement[i].text; break; } } str_tipElement.innerHTML=str_selectedElement; }[/code] This function is giving me tooltip on clicking/selecting items from dropdown list.i want tooltip according to my mouse movement over the … Web Development javascript | |
hello everyone i m inserting data from text file into database. .......but the data into the text file is not inserted into database only blank record display in the database.......... my text file is like this: james flower 22 may be i m not giving space delimiter correct... plz help … Web Development file-system php | |
Hey, I've come to a bit of a problem - I'm updating a website for users to upload their own games, animations ("toons") and artwork. The trouble is, I've made separate tables for each one, each with very similar structure What I want to do is show, say, the first … Web Development data-structure mysql php | |
I'm relatively new to session variables, and have been trying to use them in the following way: [CODE]session_start(); $daddr1=$_SESSION["daddr1"]; $daddr2=$_SESSION["daddr2"]; $daddr3=$_SESSION["daddr3"]; $daddr4=$_SESSION["daddr4"]; $daddr5=$_SESSION["daddr5"]; $iaddr1=$_SESSION["iaddr1"]; $iaddr2=$_SESSION["iaddr2"]; $iaddr3=$_SESSION["iaddr3"]; $iaddr4=$_SESSION["iaddr4"]; $iaddr5=$_SESSION["iaddr5"]; $notes=$_SESSION["notes"]; $purch=$_SESSION["purch"]; echo "<form name='form1' action='view_order.php' method='get'>"; echo "<table border='0' width='100%'>"; echo "<tr align='center'>"; echo "<td width='16%'> </td>"; echo "<td width='16%'>Your purchase … | |
Does anyone know why these event codes run twice? E.g. I am using a cookie to keep track of [Ctrl] + [Shift] + [F] by incrementing a variable once everytime it is used. However the code for it runs twice and thus the variable is never odd as it always … Web Development javascript session | |
hello Sir, I can not able to store file content into byte variable. I have do below code. aspx.cs page: [CODE] [B]code on button click[/B] DirectoryInfo dInfo; FileInfo[] FilesList; byte[] bytecontent; dInfo = new DirectoryInfo(Server.MapPath("upload")); FilesList = dInfo.GetFiles(); if (FilesList.Length>0) { files = new string[FilesList.Length]; foreach (FileInfo fi in FilesList) … Web Development asp.net | |
Hi, I'm trying to use the asp.net Input (file) with my program - i've placed it ont my program and I can click browse and it locates the file I want. Eg: "C:\Users\Name\Desktop\test.rtf" However, I then want to have it so that when I click a 'Submit' button it reads … | |
![]() | Hello I've got the following Problem: I want to add a Templatefield at a specific column in a Gridview. Is this possible somehow without too much effort? I tried tons of things but haven't found a solution yet. the thing is, that I add most columns via VB code. I … Web Development asp.net |
Hi.., all, I need both date and time to be displayed in my grid view in the dd/MM HH:mm format. I used dataformatstring={0:dd/MM HH:mm} but its not giving wat i need. so please can u suggest what should i do to get my problem solved. Thanks in advance. Web Development asp.net | |
Hi All, I want url rewrite for my page.i having idea about how to rewrite for querystring and for other some cases. but i have something new at this time and i cant able to find solution for same this time. see my URL is like search.php?q=brand:Bosch:price:100to200:search:14.4~cordless~Hammer And I want … Web Development php | |
Hi friends, I have a major doubt: Could you please help me with this... I have a create company form, create project form.. In the create company form, it creates the company name and a company code for it..and in the project form, i have one field as option value, … Web Development php | |
this is just part of the code. when i added the variable hide it stopped working. basically i want the php variable hide to add on to the variable newtext2. if i've implemented it wrong, need help correcting it. [CODE] var newtext2 = obj( "reply" ).value; var hide = <?php … Web Development javascript | |
HI, i'am an newbie and have following question I have two tables 1. repair_details with fields partnumber, quantity, Pn_id 2. Parts with fields Pn_id, price, partnumber.... I would like to fill in repair_details the Pn_id automaticly after I input the partnumber and quantity. Any suggestions? thanks Web Development php |
The End.