456 Topics
|
|
Hello, been lurking around to see if I could find any kind of solution to what I'm trying to solve, but the closest thing I got was this old thread: [url]http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/313687[/url] [B]What I want[/B] I'm trying to create is a SELECT menu with an INPUT field, but the INPUT field … |
|
Hi, i am just adding the last component to my registration page, but i am having a little trouble with it. Basically my website includes a referal based system, wherebye when the user signs up they can add a referal that benefits the referal later on. The code i am … |
|
I'm having issues in populating a select list in IE. The following snippet works fine in Chrome, Firefox and Safari browsers. Are there any obvious known issues with this snippet that would prevent the information populating? I can't figure out if it's the button IE doesn't like of the Select … |
|
This is homework. Here is the problem: Produce a list of employee last name, first name and department name. Use appropriate, user friendly column aliases. This is from the tables [ICODE]DEMO.EMPLOYEE[/ICODE] and [ICODE]DEMO.DEPARTMENT[/ICODE]. The relevant column names are [ICODE]LAST_NAME, FIRST_NAME, DEPARTMENT_ID[/ICODE] (from [ICODE]DEMO.EMPLOYEE[/ICODE]) and [ICODE]DEPARTMENT_ID, NAME[/ICODE] from [ICODE]DEMO.DEPARTMENT[/ICODE]. As you … |
|
i have the folowing code in my jsp page: [CODE]String[] name = null; String[] manufacturer = null; String[] description = null; String[] category = null; String[] price = null; String result = null; String connectionURL = "jdbc:mysql://localhost:3306/syte"; Connection connection = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL,"root",""); Statement statement = null; statement … |
|
Im trying to select data from a MS access database, i have done this for SQL server before with no problem, but now with a Access database i get a run time error for "No value given for one or more required parameters". Below is my code [CODE] Private Sub … |
|
hi. I'm working with php-oracle and I need to do a query that I know will return a unique string, but when I execute the query all that I recieve is a number. Why? this is my code: [CODE] $nombre=oci_parse($conexion, "select nombre_cliente from cliente where cod_cliente=$codigo_de_cliente"); $nombre_de_cliente=oci_execute($nombre); [/CODE] nombre_cliente is … |
|
I have a table called [COLOR="Red"]school[/COLOR] and a table called [COLOR="red"]students[/COLOR]. I have a foreign key in [COLOR="red"]students[/COLOR] called [COLOR="Green"]school_id[/COLOR] which is connected with table [COLOR="Red"]school[/COLOR] , field [COLOR="Green"]id[/COLOR]. I made a form where field **[COLOR="green"]title[/COLOR]** appears to the registration form of the [COLOR="Red"]student[/COLOR]. The problem is that i want … |
|
I am new to XSLT and am trying to solve the following transformation. I have an XML that looks like this... [CODE]<Groups> <Group> <GroupSelector>52</GroupSelector> <GroupDescription>Group 52</GroupDescription> <GroupValue>ABCD</GroupValue> </Group> <Group> <GroupSelector>27</GroupSelector> <GroupDescription>Group 27</GroupDescription> <GroupValue>PQRS</GroupValue> </Group> <Group> <GroupSelector>20</GroupSelector> <GroupDescription>Group 20</GroupDescription> <GroupValue>XYZA</GroupValue> </Group> <Group> <GroupSelector>15</GroupSelector> <GroupDescription>Group 15</GroupDescription> <GroupValue>MNOP</GroupValue> </Group> </Groups> [/CODE]There may be … |
|
Hi community, I am struggeling to get an ajax request to work. The main issue here is that I can't fill in a select box from jquery for some reason. I was working before without jquery and used the method innerHTML() to paste options into the box, which worked fine, … |
|
This is a very newbie post. I think I'm just missing something. Anyway. I'm trying to display the contents of one column's field (not column name) specified by the contents of another filed in the same row. Here I show you my table and what I need: [code] Enter password: … |
|
New to PHP and need some help with this. I'm creating a test, but I'm getting all of my questions randomly from my database. For example, if this is my table: ID S Q1 A1 A2 1 C Why A B 2 F When A B I know that I … |
|
Can you all tell me the difference in these 2 codes? I'm trying to learn JQuery and ive seen this code below in the tutorials. [CODE] $DB->Query("Select * FROM time"); [/CODE] I'm use to coding queries like this. [CODE] $res = mysql_query("SELECT timestamp, name FROM time ORDER BY timestamp DESC"); … |
|
I have a somewhat complicated select query which returns, in part, the following resultset (as an example): [code=text] threadid views -------- ----- 1 5 1 5 2 10 3 15 4 10 [/code] If I were to do the following select: [code]COUNT (DISTINCT threadid), SUM (DISTINCT views)[/code] then it would … |
|
I am trying to create a plant reference guide where the customer can grab plant description from one table (findplantsdb) and the availability from another table (plantsdb). I am new to PHP and I think I am close, but what is happening is that the plant description is coming up, … |
|
I'm trying to create a message board where members can post messages to other members. I'd like to have a section where it says "4 posts since Jan 2011" just like DaniWeb does. How do I get the date from the [CODE]"first row WHERE user='username'"[/CODE] with PHP & MySQL? Also, … |
|
Hi all. I have a database table containing the details of, lets say, Ninjas. It has a primary key called NinjaID. I have a second table containing a match-up of which Ninjas will be fighting eachother. This table has 4 Columns: 1.) MatchID 2.) BlueCornerNinjaID 3.) RedCornerNinjaID 4.) DateTime What … |
|
[CODE]function populateHarga() { var x=document.getElementById("barang").value; document.getElementById("harga").value=x; var y=document.getElementById('barang')[document.getElementById('barang').selectedIndex].innerHTML; document.getElementById("nama_brg").value=y; } function populateTotal() { var y=document.getElementById("jumlah").value; var x=document.getElementById("harga").value; document.getElementById("totalnya").value=x*y; } </script> <html> <body> <?php include ("db.php"); $now=date("Y-m-d",time()); ?> <? if($_REQUEST['action']=="del") { mysql_query("DELETE FROM temp WHERE t_no={$_REQUEST['id']};"); } ?> <table border="0"> <tr> <td>No.Faktur</td> <td><? echo "$no";?></td> <td></td> <td>Tanggal Order</td> <td><? echo "$now";?></td> … |
|
What does it mean when we [B]select [/B]a RAM by assigning [CODE]select = 1[/CODE]? Thanks. |
|
Hi everyone, My second time back to Daniweb looking for assistance with PHP. :) Okay, here's my PHP, and I'll explain what it does. [CODE]dbConnect(); if ($userclient == '2438') { dbOpenDatabase($GLOBALS['res_2438_contacts']); } else { dbOpenDatabase($GLOBALS['db_contacts']); } /************************************************ * THE IMPORTANT BITS - CHANGE BELOW * ************************************************/ //Product ID for Safety … |
|
Hello boys.. I'm here for an advice.. I have table 'users' with : ID , USER.. And 'activities' with : USER_ID , activity.. I want to select the USER_ID from 'activities' to find the user ID in the 'users' table.. I am using the VB database.. On php i know … |
|
Must need coffee or something :/ Cant figure this out. I have a table with following info: [CODE][B] unique_id block_id column_id order_id user_id[/B] 1 block-1 column-2 0 1 32 block-2 column-3 0 7 7 block-1 column-1 0 2 8 block-2 column-2 0 2 10 block-6 column-2 1 1 11 block-7 … |
|
Hi. I'm not sure if this is possible or not, but I need to be able to SELECT * FROM all the tables in the database. Is this possible? Thanks! |
|
I'm relatively new to VBA, and I'm trying to automate some macros for a datasheet. I need it to look at the value known as rackRack.Text (I know, not the best var name) and split it. The original value would look like: "B-04". I want it to split and select … |
|
Hi guys/gals, I have a menu with a div displaying onmouseover, and hiding onmouseout, it works great except in IE if I click on the [ICODE]<select>[/ICODE] tag, it triggers the mouseout event, interestingly enough the same does not happen when I click on a text field.. Code Example: [CODE] <ul> … |
|
Hi, I have some difficulty with my 'select' In my select/menu, I display all the options come from a table (table_db_email) in my database In this table ([B]tb_code_prmtn11_email[/B]) I have two field : [B]fld_email_id fld_name_email[/B] It works here is a code [CODE]<select name="email_adress_menu" id="email_adress_menu" class="valid" onchange="submit()"> <?php echo "<option selected=\"selected\" … |
|
Hi,I want to retain the selected value of dropdown list during validation check. Need suggestion. [CODE]<select name="year_nam" id="year_nam"> <?php for($yr_nam=1950; $yr_nam<=2020; $yr_nam++) echo "<option value=\"$yr_nam\">$yr_nam</option>"; ?> </select> [/CODE] |
|
All, I have a small select box for deleting a page, and I need to include the pos(which is position when it gets submitted) - So I can update the database position of the pages. How can I put the pos in this too when it gets submitted? [CODE] <?php … |
|
Everyone, Can someone see why this select box doesnt display the numbers, but only the default text? [CODE] <?php include_once "connect_to_mysql.php"; //Placing the page under the relevant subject, using a dropdown list $sqlCommand = "SELECT subjectid FROM pages ORDER BY subjectid ASC"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysql_error()); while … |
|
I have the following code doing ALMOST what I want. It shows an input field when the select value is "dropped". The problem I am having is that if I select "dropped" it will display the input field, but if i select a different value AFTER selecting "dropped" the input … |
The End.