52,566 Archived Topics
Remove Filter ![]() | |
i can handle a store procedure which returns one output parameter using ExecuteScalar() but wot if my store procedure returns more than one parameter then how can i handle it. any advice Adapost ? Web Development asp.net | |
Hello All, what is code for exceute one aspx page onclick hyperlink without dispaly that page? Basically, I have one page p2.aspx.,which getting querystring parameter from page p1.aspx. When I cliced on hyper link of p1.aspx page .it redirect to the p2.aspx. but i want only that the code on … Web Development asp.net | |
How i can Rewrite URL JSP in Apache tomcat same MOD Rewrite in PHP [U][B]EX.[/B][/U] [CODE]test.jsp?id=1 as test/1[/CODE] Thank You. | |
Hi.. I'm not sure whats the array_merge doing here in this code? I've read the mysql manual,but i just not sure what it is really means,so hope somebody could clear it out for me. By the way this is the code : [CODE] if (isset($_POST['submit'])) { // Form has been … Web Development php | |
What i want may seem simple but i have been at it for hours trying to get it to work and searching the internet for answers. What i have been trying, and failing at doing, is taking X minuets from a time selected from a database (which is in the … Web Development php | |
Hi ALL, I want to develop mobile application for Symbian60 OS (nokia mobile) in asp.net. Could you please tell me what are the requirment for this. I have VS 2003 , 2005 and 2008 on my machine. Thanks ANANT | |
I need your help!!!. I need to query a table in my database that has record of goods sold. I want the query to detect a particular product and also calculate the quantity sold. The product are 300 now, but it would increase in the future. Below is a sample … ![]() | |
Hi, I have a line of text here: Directions: Take the #8 from Meadow Park(31), and get off at Kroger East (57). I am trying to get it to match both (31) and (57), which some other context may have different numbers, but there could be either 1 or 2 … | |
Hello, (C# AND ASP.NET) For a particular employee i have his details stored in the database. These details also contain joining date which is stored in the database in the format yyyy-mm-dd. In the front end i have 3 dropdown lists one for DD another for MM and the third … Web Development asp.net | |
I just wanna ask whats the difference between trim() and mysql_real_escape_string() functions? because i see this code below : [CODE] $username = trim(mysql_prep($_POST['username'])); $password = trim(mysql_prep($_POST['password'])); [/CODE] and myql_prep is a function being made thats contain this : [CODE] function mysql_prep( $value ) { $magic_quotes_active = get_magic_quotes_gpc(); $new_enough_php = function_exists( … | |
Hi All, I am looking for advice on approach more so than code. I want to make a page that has a list of products down one side that are clickable. Clicking on a product will populate a couple of detail areas (tables?) beside the list of products. I am … Web Development php | |
Anytime I try to extract the title of an article that has special characters, such as & or ', it's only returning the letters after the special characters. single quotes are displaying as ' (in xml) double quotes are displaying as " (in xml) ampersands are displaying as & (in … ![]() | |
How would I go about doing that? Here's my script: [code] <?php $q = mysql_query("SELECT * FROM users WHERE online = '1'"); while($array = mysql_fetch_array($q)) { if($array['banned']) { echo "<del><b><a href='User.php?ID=$array[id]'>$array[username]</a></b></del>"; } elseif($array['username'] == "Chosen" || $array['username'] == "CoderRyne") { echo "<b><a href='User.php?ID=$array[id]'><font color='red'>$array[username]</font></a></b>"; } elseif($array['level'] == 9) { echo … Web Development php ![]() | |
PHP UNIX_TIMESTAMP Help!? How do we make a function where after 5 minutes, there is an update query. | |
I have PHP code Using .htaccess mod-rewrite for company_name-ID.html TO index.php?id=ID the code gives me filename as index.php what I need is company_name-ID.html The code I am using is [code] $currentFile = $_SERVER['PHP_SELF']; $parts = explode('/', $currentFile); $currentFile = $parts[count($parts) - 1]; [/code] Please help me Web Development php | |
Hy every body, what I am making is some functions for other people to make figures with pixels. So I put two documents: imagepixel.html [CODE=dhtml] <!doctype html> <html> <head> <meta name="author" content="Someone"/> <meta name="description" content="my webpage ..."/> <meta name="keywords" content="my, webpage"/> <title>image by pixel</title> <script language="JavaScript" type="text/javascript" src="imagepixel.js"></script> <script language="JavaScript" … Web Development html-css javascript javascript-jquery | |
I have 2 files: master.php and test.php. master.php has a class in it that I would like to include in test.php. The only problem is that test.php is ignoring the class in master.php. Here is the code: Test.php: [code] include("http://".$_SERVER['HTTP_HOST']."/rebuild/scripts/php/master.php"); $loader = new modLoader(); $module[0] = 'm.class.templating.php'; $module[1] = 'm.class.userInfo.php'; … Web Development php | |
Hi, I have a code snippet here as in the following: [CODE] if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { $day_query ="start_time.day='12345' AND end_time.day='12345'"; } if(preg_match("Sat/i", $keywords[$i])) { $day_query = "start_time.Sat_route != 'NULL' AND end_time.Sat_route != 'NULL'"; } else { echo $keywords[i] . " is not a term that exists in the database. Make sure … Web Development php | |
I have a table that looks like: [CODE] <table id="mytable" border="2" width="640px"> <tr> <td></td> <td><b>Col 1</b></td> <td><b>Col 2</b></td> <td><b>Col 3</b></td> <td><b>Col 4</b></td> <td><b>Col 5</b></td> <td><b>Col 6</b></td> <td><b>Col 7</b></td> </table> [/CODE] and a function to add a row and cells in the row that looks like: [CODE] function addRow() { //add … Web Development javascript | |
greetings.. i'm newbie on php and mysql.. i need help on how to create search form that return the results related to it? i'm using php mysql.. thus, i need help on how to make each result that'll be as a link to all data in it's row.. thank you! | |
I have built a marquee of images that scrolls inside a cell of a table. The marquee width, of course, is dictated by the width of the cell. But I don't want the number of images that actually scroll inside the marquee to cut off based on the width of … Web Development image javascript | |
![]() | Data entered in textboxes is not getting updated in database. In debug mode I see that textbox1 and textbox2 in ItemUpdating event contain the same values as they had before calling ItemUpdating. Here's my listview control: [CODE]<asp:ListView ID="ListView1" runat="server" onitemediting="ListView1_ItemEditing" onitemupdating="ListView1_ItemUpdating" oniteminserting="ListView1_ItemInserting"> //LayoutTemplate removed <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%#Eval("id")%>'></asp:Label> <asp:Label … |
i have a problem regarding light box focus.. i have a button that whenever i click the button it will call the light box.. there are 2 function . [CODE] function focus_on_lightbox(seconds) { var seconds_waited seconds_waited = seconds document.getElementById(EducationBox).focus(); seconds_waited += 100; if (document.getElementById(EducationBox) != document.activeElement && seconds_waited < 2000) … Web Development javascript | |
Hello all: I find that the tag "<error-page>" could not be executed in my struts project. It could not be forwarded to the "error.jsp" when I try to access a not exist page or a wrong url.Why? The web.xml is like this: [code] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="[URL="http://java.sun.com/xml/ns/j2ee"]http://java.sun.com/xml/ns/j2ee[/URL]" xmlns:xsi="[URL="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/URL]" xsi:schemaLocation="[URL="http://java.sun.com/xml/ns/j2ee"]http://java.sun.com/xml/ns/j2ee[/URL] … | |
hi all, i had a page where there are three text boxes.username,password,allocatedmemory. Now when i placed an invalid number in allocated memory after submit button click it wil display a popup as invalid.so after clicking ok button,i need the value present in allocated memory to be cleared and cursor should … Web Development php | |
Hi frnds, I need to select some values in old table and send it into newtable. Here i placed my program. Anybody know say the corrections. <?php mysql_connect("localhost","root",""); mysql_select_db("menus") or die(mysql_error()); $idvalue=$_REQUEST['id']; //$iv=$_REQUEST['z']; $result=mysql_query("select * from smenu where id='$idvalue'"); while($row=mysql_fetch_array($result)) { $projectid=$row['id']; $projectname=$row['main']; $projectcat= $row['itemm']; $scope=$row['descrip']; $location=$row['Category']; $rate=$row['Rate']; } echo … Web Development php | |
I have to create a registration form through which data will be entered into two tables one the profile table n other the address table. The problem is that i have to enter the address id of address table simultaneously into the profile table. now i dont know how to … | |
Here I try to make a dynamic site, means the content only is displayed in a main part of website.Hmm, all related pages are called by the values that are passed by the URL. Here is my source Firstly, from the main.asp page I add page dynamic_site.asp to show other … Web Development asp | |
I have to develop a code editor as my internship project. But I could not find a head start in a brief search. Firstly what should I, in your opinion, develop? A desktop code editor or an online code editor? Currently I am inclined for an online code editor. However, … Web Development javascript | |
Hi all, Wondering if anyone can help me with this issue. I am using a SqlSiteMapProvider (inherits from SiteMapProvider) to build a menu on my site from an Oracle DB. This menu is built according to the user type, ie, user type A's menu is different from user type B. … Web Development asp.net oracle visual-studio | |
I have one problem with php and mysql. I have 3 tables (Users, User_status and Analysis) and want to display users and profit in a php table order by profit. So I wrote this code: [CODE]$tipster = mysql_query("SELECT Analysis.Profit, Users.Username, User_status.id FROM Analysis, Users INNER JOIN User.status ON Users.User_status_name=User_status.user_status WHERE … | |
This is first time to do the web program with vwd 2008 express, just tried to practice to add an Insert button on gridview, actually the insert button not working yet. MY QUESTION is when I connected the database with Access USING GRIDVIEW, if the Access table is empty, I … Web Development asp.net | |
Hello, I store Date in my database ( in sqlserver 2008 my datatype for this field is Date) however when i display the date in front end (ASP.NET C#) i get Date along with Time 12:00 AM as a default time. I dont want Time to be displayed in my … Web Development asp.net | |
Can I apply JSP and J2ee technology for Social Network developing I am novic in web programming and My thesis title is social networking ! Please reply and advice me how should I do? I have little experiences in J2EE and MySQl looking forward to your reply!! Opera, Mandalay Technological … | |
Hai, I am using MySQL table to store session values. i am getting sid as 'deleted' for some sessions in live server . but i am not able to simulate it in development server . what scenario it will occur. sample data. +---------+-------+-------------+ | sid | value | expire_time | … | |
Hi I would like to capture data from my friends. I'm going to use a page on my website with a form. I'll send my friends a link to the page such as [url]http://www.mysite.com/surveypage.htm?friend=john[/url]. When the friend hits my page using this url I would like firstly to show a … Web Development php | |
Hey Everyone, I know how to right a php script to send out an email. But I want to write a script that will send out an email at a certain time, The crux is, I need the email to be sent out even if nobody is accessing the page … | |
Hi I am trying to write a script that puts a Horizontal Line between MySQL query results but doesn't show up after the last row. eg: First Line ---------------- Second Line ---------------- Third Line I'm using PHP, MySQL and JavaScript AJAX. Don't know if that's relevant for this instance or … | |
hello again!well...I'm developing a Content Management System and I have a form where the user write a text then i'll store this text in my database and i'll write it on a page using the "echo",I store the text with the html tags like: <p> blablabla</p>.but the user doesn't know … Web Development php | |
I was wondering, is it possible to get specific data from another website ? Let's say i want from page X the content from a div. How can i make write in php a script that automaticaly gets and echo into my site what is inside that div from page … Web Development php | |
Hi friends, I have prblem that I need to view tab #2 when loading the index page, here is part of the index, it goes to tab1 as per the javascript function below (.tab_content:first).show, I tried (.tab_content:second).show but it did not work! Also I was unable to activiate first class.. … Web Development javascript | |
Hi In my web page i am using tweetmeme button java script code.its working fine.When i was trying to put js code inside ajax content,and click the ajax callback button the entire page shows blank page.I thought the reason for this is java script using window.location.href.But i am not sure … Web Development javascript | |
Hi everyone, basicly I have a CSV file which uses ^ as a delimiter. I have a textarea which is populated by the contents of the CSV file, and after editing it the user is redirected to the edit page. For some reason, everytime I save the file there is … Web Development file-system php | |
Hi, How can i return the server date? using [CODE]<?php $my_t=getdate(date("U")); print("$my_t[weekday], $my_t[month] $my_t[mday], $my_t[year]"); ?>[/CODE] gives me errors :( Thanks in advance, I know it probably has a very easy solution, but I just dont know what as I'm so totally new to php.. Web Development php ![]() | |
hi all does anybody here knows a good safe way to work with sql stored function with zend framework? i can do so with prepared statement but i'm sure that there is safer way to do so... i'm using postgreSql but i don't think that there's any different. thanks! Web Development php postgresql sql | |
I am trying to make a function that gets the name of a user from their user id. The function needs to search a database for the matching id. However, when I try the function i get the following error: [B]Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given … | |
i have a dropdown in one page i want the selected value of drop down in other page as a label lblBranchName.Text=Request.QueryString["cmbDatabase.SelectedItem"]; cmbdatabase is my dropdown and lblbranch is my label in second page how can i do this pls any 1 tell Web Development asp.net | |
Hi All, I need to disable Back button of IE when an welcome.aspx page load into the browser. I dont want the user to click back button after logging in. Is there any code to disable the back button of IE? Please send your suggestions. Thanks and with regards, Madhusudhan.H.K. Web Development asp.net | |
Sorry I think I posted it on the Wrong Forum, Please Delete this Post... :( [CODE] $result = mysql_query(" SELECT q.*, IF(v.id,1,0) AS voted FROM quotes AS q LEFT JOIN quotes_votes AS v ON q.id = v.qid AND v.ip =".$ip." AND v.date_submit = '".$today."' "); $i=1; $str=''; $script=''; while($row=mysql_fetch_assoc($result)) { … |
The End.