456 Topics

Member Avatar for
Member Avatar for mawk

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 …

Member Avatar for mawk
0
241
Member Avatar for kaosjon

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 …

Member Avatar for kaosjon
0
112
Member Avatar for Roy Murphy

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 …

Member Avatar for Taywin
0
197
Member Avatar for iamthesgt

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 …

Member Avatar for iamthesgt
0
187
Member Avatar for bowmaster

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 …

Member Avatar for bowmaster
0
188
Member Avatar for dakaboguy

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 …

Member Avatar for dakaboguy
0
1K
Member Avatar for montjoile

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 …

0
77
Member Avatar for kostas_213

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 …

Member Avatar for anand01
0
147
Member Avatar for lolain

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 …

Member Avatar for mrame
0
212
Member Avatar for konradhoppe

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, …

Member Avatar for konradhoppe
0
193
Member Avatar for Jaklins

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: …

Member Avatar for Jaklins
0
198
Member Avatar for cleecaldwell

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 …

Member Avatar for P0lT10n
0
161
Member Avatar for RazorRamon

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"); …

Member Avatar for P0lT10n
0
149
Member Avatar for Dani

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 …

Member Avatar for Perez_Bottoms
0
14K
Member Avatar for AngieS

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, …

Member Avatar for jkon
0
152
Member Avatar for calebcook

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, …

Member Avatar for calebcook
0
112
Member Avatar for Some-Jackass

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 …

Member Avatar for urtrivedi
0
1K
Member Avatar for Lius

[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> …

0
141
Member Avatar for SWEngineer

What does it mean when we [B]select [/B]a RAM by assigning [CODE]select = 1[/CODE]? Thanks.

Member Avatar for arindam31
-2
110
Member Avatar for Coyx

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 …

Member Avatar for Coyx
0
231
Member Avatar for Istw

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 …

Member Avatar for adam_k
0
129
Member Avatar for Zedith

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 …

Member Avatar for Zedith
0
243
Member Avatar for calebcook

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!

Member Avatar for oab2003
0
1K
Member Avatar for twsmale

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 …

Member Avatar for twsmale
0
223
Member Avatar for shaya4207

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> …

Member Avatar for shaya4207
0
196
Member Avatar for aspkiddy

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\" …

0
101
Member Avatar for jacob21

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]

Member Avatar for karthik_ppts
0
2K
Member Avatar for klemme

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 …

Member Avatar for klemme
0
182
Member Avatar for klemme

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 …

Member Avatar for klemme
0
209
Member Avatar for dschuett

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 …

Member Avatar for Airshow
0
625

The End.