52,566 Archived Topics
Remove Filter ![]() | |
hi i am making a program in php. it actualy involves two tables from database one is order and other product_details i want that when i select a order i get its product and quantity and respective to that product i find quantity of first raw material reqruired. and then … Web Development php | |
hey guys, I have a problem here. I wish to generate 1 pop out date function. below is my code of javascript..but still I cant get any pop out after I click my textfield..guidance needed...ty [CODE] <link rel="stylesheet" type="text/css" media="all" href="jsDatePick_rtl.min.css" /> <script type="text/javascript" src="img/jsDatePick..min.1.3.js"></script> <script type="text/javascript"> window.onload = function(){ … Web Development javascript ![]() | |
Hi, I've already created registration and login scripts for my application, however i now want to include an option for registered users to reset their password if they have forgotten it and cannot log in. As currently, passwords stored in my database are encrypted, they cannot just be emailed to … Web Development email http-protocol php | |
Greetings, I have been wrestling with displaying some output from a form I made for a client. The form must take a checkbox array and display it in a specific part of a sentence in the output. The form data displays properly but it displays like this: The answers are … Web Development php | |
Hi, In my page their is one combobox and one listbox. When i select an item in combobox then selected item added to listbox. Combobox has ispostback property to true. Now my question is, how to check item is already present in listbox on combobox selected item changed event. Thanks … Web Development asp.net | |
hi,guys, i am facing on hiding the image source problem, may i know how to prevent user by using right click on image and check on the path image source location?thks for any info ya.cheers | |
[B]Help me to use Search String[/B] [CODE]<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> <html> <head> <title>DrLop Report</title> <script type='text/javascript' src='JS/AJAXControll.js'></script> <link rel=stylesheet href='CSS/Style.css' type='text/css'> <link rel=stylesheet href='CSS/Style1.css' type='text/css'> <script language="javascript"> function fnTagCheckAll(obj, strt_r_no, r_per_page) { objText = document.getElementById("txtValueCollect"); objText.value = ""; for(var i=strt_r_no; i < (strt_r_no+r_per_page); i++) { v … | |
I saw this script but wondering if this is possible using div instead of image which maintains the ratio whether you adjust browser height or width [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>maintain height and width</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script … Web Development html-css javascript javascript-jquery | |
![]() | I have inputted a word from a user and i want to find that word in a text file. My text file is like this. -------------- name1:value1 name2:value2 name3:value3 ... ... -------------- So if my user inputs name1 so i want corresponding value1.. How can i do these? Can anyone … |
Not sure if this can be done in php or whether I should look at other alternatives. I'm trying to access 4 different sources of data to put on one page - Amazon API, Ebay, our sales data on one server and our inventory data on another server. (Historical reason … Web Development api javascript php | |
I am trying to create a web page for people with maladies of the hand. They have great difficulty with the double click. I want to be able to drag the links on my page to a "drop bucket". When dropped, the page should navigate to the link destination. Basically, … Web Development javascript ![]() | |
(Note: This was previously posted at [url]http://www.ruby-forum.com/topic/3426459#new[/url] , but received no responses after four days.) When attempting to install ruby-debug19 on a Windows 7 partition, I have gotten the following error sequence: [code] ERROR: Error installing ruby-debug19: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe extconf.rb checking for rb_method_entry_t.called_id in … Web Development ruby | |
Hi I have a search function where the user selects from drop down boxes. There are 4 fields to choose from and any of the 15 combinations can be used to search with. I am using Else If and the very first IF works, but when it is false it … | |
hi m writing a program n storing a values in session but one of them i.e of prie is not working . can any1 tel where m i wrong [CODE] $name=$_POST['P_list']; $quantity=$_POST['quantity']; $query= "SELECT product_name, unit_price FROM product WHERE product_name='$name'"; $result=mysql_query($query); if ($result) { if (mysql_num_rows($result)==1) { $orders = mysql_fetch_assoc($result); … | |
Parse error: syntax error, unexpected T_IF in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\test\fuction\register.php on line 3 I get this error at my register page [CODE]<?php include('conn.php') do($_POST['register']); <form action="register.php" method="post" { $username=$_POST['username']; $password=$_POST['password']; $password2=$_POST['password2']; $date_now=date('Y-m-d'); if($password==$password2 ){ $query = "SELECT * FROM Member Where ID='$UID'"; $result_ = mssql_query($query); $numRows = mssql_num_rows($result_); if($numRows==0){ $sql="dbo.up_CreateMemberAccount … Web Development php | |
I have a CRON job set to run every hour (have to do it this often due to scheduling facilities on server) and one of the sections of the script is to check if a closing date for entries into an event is within 2 days and if so to … Web Development php | |
i have a login page and it works well. but how can i make like after the log in successfully and all my other pages will have Welcome (lastname) of the user ? as currently, after log in succesfully will redirect to welcome.php and it seems like it only able … Web Development php | |
hi m write a program to get the values from the form and storing them in database but its giving me error of undefined index for all variables . my code is [CODE]<?php session_start(); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); $name=($_POST['name']); $type=($_POST['type']); $color=($_POST['color']); $unit_price=($_POST['price']); $size=($_POST['size']); $id=($_POST['id']); $query="INSERT INTO product (product_id, product_name, type, color, unit_price, … Web Development php | |
<?php session_start(); $database="myfriend"; $userid=$_SESSION['user']; mysql_connect("127.0.0.1","root",""); $db_found=mysql_select_db($database); $sql="select fuserid from friends where userid='$userid';"; $result=mysql_query($sql); $id=0; $users=array(); ?> <body > <center> <p> your friends list:</p> <?php while($db_field=mysql_fetch_assoc($result)) { ?> <a href="displayprofile.php" id='$id' onclick="validate(this)"><?php print $db_field['fuserid']."<br><br>";?></a> <?php $users[$id]=$db_field['fuserid']; $id=$id+1; }?> <head script type="javascript/text"> <script> function validate() { var id1=document.getElementById(</script><?php print $id ?><script>); </script> … Web Development php | |
I Hope Any One Can Modify My File To Working Fine ... Sorry 4 My English [CODE]<?php if ( ( "randgames.php", $_SERVER['PHP_SELF'] ) ) { ( "Location: ../" ); exit( ); } $xBhtml = ( "table.tpl", $ccthemes ); $unixtime = ( ); $deltime = $unixtime - $randcachetime; @( "DELETE from … Web Development php | |
Hey guys, what the best practice for session check without duplicate code. I mean when check the session in some controller I have to duplicate the code to other controller, and that is not a good idea. <?php [CODE]class Ctrl extends Controller { private function _ses_check() {...} } class Second_ctrl … Web Development php session software-architecture | |
Goal: Get values which are unique in $resultSecond So I have two objects. $result->>entity_id $resultSecond>entity_id I want to get values which are unique to $resultSecond and are NOT in the $result. I tried to use array_diff(). It did not work as they are objects. I think. Below is the code … | |
I'm new to OOP php and I am trying to load objects into an array. I followed the syntax I found [URL="http://www.daniweb.com/web-development/php/threads/286967"]here[/URL] and it works but only for the first object :sad: Here is the code i am using for the class [ICODE] class category { // Variables var $id, … | |
Hi guys, I think I need a help. My teacher gave us a activity on Postgres and PHP to query what's inside the database file and code it to PHP to view the results. I have a screenshot on the Database of the Postgre. [URL="http://theoutdatedblogger.com/Email-Newsletters-Template/database.png"]http://theoutdatedblogger.com/Email-Newsletters-Template/database.png[/URL] What I need to do … | |
hi i am writing a program which take the value from form and then execute a error "failed" each time. which means there is some error in my query but i cant find the problem. here is the code [CODE]<?php session_start(); //print_r($_POST); $name=$_SESSION['SESS_CUSTOMER_ID']; $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); $product_id=$_POST['P_list']; echo "$product_id"; $quantity=$_POST['quantity']; $query= … | |
I'm using CODEIGNITER framework. My situation is this. I have a list of data. The user selects which record to delete (through checkboxes). I have to do it in ajax because my client doesn't want to see the system refreshing. I've successfully transferred the data through JSON. Now, my problem … Web Development client-server json php php-codeigniter | |
hi m making a program n i want that when i want to add update a stock it get the name of product from data base and show it in drop down list so that i can select one of them which i want to update. my code for that … | |
hi, i need to empty all the divs whic has an id like 'bkoption' eg : my html code is like this [CODE] <div class="subsubsubmenu" id="bkoption1">some content</div> <div class="subsubsubmenu" id="bkoption2">some content</div> <div class="subsubsubmenu" id="bkoption3">some content</div> [/CODE] so when i trigger an on click function i need to empty all of … Web Development html-css javascript javascript-jquery | |
I'm kind of new to JavaScript, I know the basic syntax and how it works but I've been hit with this problem that I can't seem to solve... I use the following code to call a file which gets the RSS feed from one site. [CODE] <html> <head> <script type="text/javascript"> … Web Development javascript | |
I’m having some trouble and can’t seem to find the solution. Hopefully someone here can help me out. I have two tables in a SQL Database and I’m trying to select some information from both tables where the column‘UniqueID’ has the same value. Here is the information I require from … | |
Hi there, I am reading a javascript book and I got a little stuck when analysing one of the scripts built as test. This is the one I am talking about [url]http://aharrisbooks.net/jad/chap_08/bounce.html[/url] I went through it but I don’t seem to be able to understandexactly the way it works. Here’s … Web Development javascript | |
Hi, I want to open jsp page in particular frame from servlet. plz try to help me. i attached my code. [CODE] RequestDispather rd = request.getRequestDispathcher("Adimn.jsp"); rd.forward(request, response); [/CODE] i want to forward Admin.jsp to frame whose name is "frame1" Web Development java-jsp | |
hey can any1 tel me the eror in my code part of code where problem lies is [CODE] if($result) { if (mysql_num_rows($result)==1) { session_regenerate_id(); $employee = mysql_fetch_assoc($result); $_SESSION['SESS_EMP_ID'] = $employee['employee_id']; $_SESSION['SESS_NAME'] = $employee['employee_name']; $_SESSION['SESS__dept']=$employee['department_id']; $_SESSION['SESS_rank']=$employee['rank']; session_write_close(); if ($_SESSION['SESS_rank']==$employee.rank("admin") { header("location: administrator.php"); exit(); } elseif($_SESSION['rank']==$employee.rank("shift incharge") { header ("location: Shift_incharge.php"); exit(); … Web Development php | |
hi i have made a html page in which i have a drop down list whose code is [CODE]<p>Please select the product you want to add <label> <select name="menu1" onchange="MM_jumpMenu('parent',this,0)"> <option>Nylon Blisters</option> <option>PP plastic</option> </select> </label> </p>[/CODE] Now my main aim is that when a certain product is added and … Web Development php | |
hi i want to make a page for the user to take the orders from the user. i want that user select one product from the drop down list then select its size and then color. then submit it. this data about first product appears in the table then he … | |
Hi all, I'm trying to use the jQuery datepicker to create a booking date selection thingy on a personal plugin I'm trying to develop. This is the code I'm using to take an "arrival" date and a "departure" date, after click on the submit button the user is redirected to … | |
[CODE] $query = "SELECT item, description, price, imageData, status, username, item_id FROM items"; $result = mysql_query($query) or die(mysql_error()); $z=0; while($row = mysql_fetch_array($result)) { //echo other columns here// echo "<td><div id=status$z></div></td>"; <script type=text/javascript> function updatestatus(itemnum) { var url="updatestatus.php?auc=<?php echo $row['item_id']; ?>"; jQuery('#status' + itemnum).load(url); } setInterval("updatestatus(<? echo $z?>)", 1000); </script> <? … Web Development javascript javascript-jquery mysql php ![]() | |
Hi, I have been searching for a couple of days now for a resolution to this issue, and while I find a few references to it in google, nothing really defines the entire process. I have a MySql table called 'product_distribution' When a customer orders a product, all pertinent information … | |
Am trying to insert in to the same table two values from the same form. if counter equals to 1, do an update , else do an insert. only the insert part is working, it looks like my counter script is not working,any help? [CODE] $counter=0; $sre_log_num = 0; $sre_log_result … Web Development php | |
Hi friends here is me with another issue i have practicing about file upload, my script working with images perfectly but if i choose mp3 audio file its not moving to the directory which i have specified in my code here is my code [CODE]<?php include ("header.html"); require ("config.php"); error_reporting(E_ALL); … Web Development audio file-system php | |
hi, I want to add the same ReportViewer control to the different PlaceHolders. This is what i tried [CODE] PlaceHolder placeHolderDate = (PlaceHolder)TCMain.FindControl("TP" + monitoringObjectName).FindControl("TCInner"+monitoringObjectName).FindControl("TPDate"+monitoringObjectName).FindControl("PHDate"+monitoringObjectName); DropDownList DDLDate = (DropDownList)TCMain.FindControl("TP" + monitoringObjectName).FindControl("TCInner" + monitoringObjectName).FindControl("TPDate" + monitoringObjectName).FindControl("DDLDate" + monitoringObjectName); PlaceHolder placeHolderWeek = (PlaceHolder)TCMain.FindControl("TP" + monitoringObjectName).FindControl("TCInner" + monitoringObjectName).FindControl("TPWeek" + monitoringObjectName).FindControl("PHWeek" + monitoringObjectName); DropDownList … Web Development asp.net | |
Hi sir pls help i have an error in line 13 .. and still i don't no where can i find this error... Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\login.php on line 13 [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = … | |
Hi everyone how are you? I want to share my php problem with you. Please! help me if you can. I am making a database for employees’ record. I want to keep Experience head just one time, and if anyone wants to add more experience, he/she just click on add … | |
I am building a search engine and trying to get the title to be a link and in the code it looks like this [CODE=php]echo("<img src='$Thumbnail' width='90' height='75> <a href=\"watchvideo.php?ID=$id\">$title</a><br /> $description<br />");[/CODE] and i want the "watchivideo.php?ID=$id" to have the ID of the video in the database, and the … | |
I've the following code for the two radio buttons but it isn't working i don't know why :S If 'On' is selected it displays 'ON is selected' and so on but it isn't working :S and i want one button to be selected at a time but when i run … Web Development php | |
[url]http://feeds.bbci.co.uk/news/rss.xml[/url] ^^ I'm extracting data from the above website. I can extract most actual elements using the following code: [CODE] $xml="http://feeds.bbci.co.uk/news/rss.xml"; $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); //get elements from "<channel>" $channel=$xmlDoc->getElementsByTagName('channel')->item(0); $channel_title = $channel->getElementsByTagName('title') ->item(0)->childNodes->item(0)->nodeValue; $channel_link = $channel->getElementsByTagName('link') ->item(0)->childNodes->item(0)->nodeValue; $channel_desc = $channel->getElementsByTagName('description') ->item(0)->childNodes->item(0)->nodeValue; [/CODE] ...but I can't read the attributes … | |
Ok, I have two radio buttons 'A' and 'B' and user have a choice to select anyone of them, by default button 'A' is selected but when user come to my website and selects 'B' then selection changes to button 'B' however the problem is, when the user move to … ![]() |
The End.