1,741 Posted Topics

Member Avatar for alchemist media
Member Avatar for november_pooh
0
20
Member Avatar for farahphp
Member Avatar for lydia21

1. You forgot mysql_query in [quote]$result=("SELECT name FROM lydia WHERE nam='$name1'");[/quote] 2. [quote] <input name="text" name="name1">[/quote] Should have been input type="text". And, at the first run, ie., when the script is executed for the 1st time, the query will not output anything since $_REQUEST['name1'] is empty.(or it will output the …

Member Avatar for nav33n
0
81
Member Avatar for justinmyoung

The point is, how you are storing the data in the table. [icode]select repair_status from table where job_number = '123' [/icode] will display (the list) of repair_status for job_number 123.

Member Avatar for justinmyoung
0
131
Member Avatar for lydia21

First of all, the input types doesn't have an id. So, getElementById will not work. Secondly, this isn't a popup. So, window.opener will not work. Try window.top.location.href .

Member Avatar for phper
0
69
Member Avatar for cmax
Member Avatar for BenWill

[code=mysql] SELECT * FROM registration WHERE student_ID = '222222222' AND year_of_Study = '1' GROUP BY mod_id ORDER BY academic_year DESC , resit_exam DESC LIMIT 0 , 30 [/code] Doesn't this work ?

Member Avatar for nav33n
0
91
Member Avatar for Errods
Member Avatar for zandiago
0
18
Member Avatar for kommuru
Member Avatar for austin-khoi

[code=php] <html> <body> <form method="post" name="test"> <input type="button" name="button1" value="login" onClick="javascript: document.test.action='login.php';document.test.submit();"><input type="button" name="button2" value="Register" onClick="javascript: document.test.action='register.php';document.test.submit();"> </form> </body> </html> [/code] You can do it this way.

Member Avatar for nav33n
0
147
Member Avatar for kevin wood
Member Avatar for carobee

Whenever a user opens a page, add page's name to the session variable. Since you are adding it to the session, If he opens another window for the same page, redirect him to error page. Eg. [code=php] //This is main.php which has link to page1.php <a href="page1.php">Page 1</a> [/code] This …

Member Avatar for carobee
0
133
Member Avatar for pancgom

Have an onchange event for the select box. When the user selects a name, submit the page. $_POST['selectname'] will have the value selected by the user. Then query the table and get the values, print it.

Member Avatar for pancgom
0
141
Member Avatar for cmax
Member Avatar for dottomm
Member Avatar for dottomm

[url]http://www.daniweb.com/forums/thread116723.html[/url] same question. See the example.

Member Avatar for nav33n
0
97
Member Avatar for sukhy_1

[QUOTE=Suomedia;571991][CODE]$query = "SELECT address_code FROM address WHERE userID= '".$myuserID."'"; $result = mysql_query($query); <td><input type="text" name="PickupAddressPostCode" value="<?php echo $result['address_code']; ?>" /></td>[/CODE] Matti Ressler Suomedia[/QUOTE] That should actually be [code=php] $query = "SELECT address_code FROM address WHERE userID= '".$myuserID."'"; $result = mysql_query($query); $row = mysql_fech_array($result); //or while($row = mysql_fetch_array($result)) if your query …

Member Avatar for nav33n
0
185
Member Avatar for jino
Member Avatar for nav33n
0
149
Member Avatar for kings

Right after session_start, print $_SESSION['un'] and tell us what it prints.

Member Avatar for kings
0
113
Member Avatar for queenc

If you use onload function, it will replace whatever you selected by the default value. What you can do is, check if the user has already selected any value from the listbox. If the user has selected a value already, then make that as "selected", else, make the default as …

Member Avatar for nav33n
0
340
Member Avatar for justinmyoung

Maybe the fieldname is wrong. And you need to post your entire code as ryan_vietnow mentioned.

Member Avatar for nav33n
0
59
Member Avatar for rukshenaa

Welcome to Daniweb! Post your question in related forum and please read the guidelines. :)

Member Avatar for jbennet
0
97
Member Avatar for Drixoman
Member Avatar for rupaburle
Member Avatar for nasir1149
Member Avatar for arabic seo
Member Avatar for richWnewkey
Member Avatar for warrid1
Member Avatar for peter_budo
Member Avatar for nav33n
0
34
Member Avatar for nireekshan
Member Avatar for nav33n
0
121
Member Avatar for Funky_Fish
Re: Hi

Welcome to Daniweb ! [quote] Does this site deals with g.i.f images and skin designs???[/quote] You need to be more specific my friend :)

Member Avatar for Serunson
0
74
Member Avatar for riptorn
Member Avatar for computer engW
Member Avatar for tvisha
Member Avatar for dedanito
Member Avatar for shello

Hello shello ! Welcome to Daniweb ! Check [url=http://www.daniweb.com/forums/forum7.html] this [/url] forum and post your question in a relevant forum !

Member Avatar for Serunson
0
51
Member Avatar for Fuze
Member Avatar for herms14
Member Avatar for ronicasingh
Member Avatar for web4-every-1
Member Avatar for UKLooney
Member Avatar for kings

[quote] but my if loof is not getting executed in 2nd page. [/quote] Check your query in page2. See if its correct and it returns atleast 1 record.

Member Avatar for nav33n
0
91
Member Avatar for PeterYpenburg

This is strange. But one thing. [quote] $sqlrow = mysql_fetch_row($sqlresult); <<-- THIS IS LINE 109 -->> if ($sqlrow['CountOfRows'] == 0) { [/quote] You have used mysql_fetch_row. It returns rows as [url=http://www.w3schools.com/php/func_mysql_fetch_row.asp] numeric array [/url]. So, you can't give, $sqlrow['CountOfRows']. You can use [url=http://www.w3schools.com/php/func_mysql_fetch_array.asp] mysql_fetch_array [/url] instead. I am not sure …

Member Avatar for nav33n
0
270
Member Avatar for kevin wood

Why do you want to create a table from php anyway ? Everytime you run your script, it will include table_create.php and tries to create the table all the time. Check this [url=http://dev.mysql.com/doc/refman/5.0/en/create-table.html] link [/url]. Add 'if not exists' in your create table query.

Member Avatar for nav33n
0
316
Member Avatar for mhretabk

Check [url=http://nl.php.net/manual/en/function.mail.php] mail [/url] function in php.

Member Avatar for mexabet
0
329
Member Avatar for hemgoyal_1990

[quote]SELECT * FROM details WHERE '$_POST[metode]' LIKE '$_POST[search]'% LIMIT 0, 50 [/quote] I guess $_POST['metode'] is the column name ? Print out the query, execute it in phpmyadmin/ mysql console. Check the result. Oh, also, remove the @ symbol from [quote] $row = @mysql_fetch_array($query)[/quote]

Member Avatar for w_3rabi
0
136
Member Avatar for pb_sudhir

[url]http://www.onlamp.com/pub/a/onlamp/2002/05/09/webdb2.html[/url] I haven't tested it, but this is how it works.

Member Avatar for pb_sudhir
0
163
Member Avatar for cmax

Check this tutorial. [url]http://www.w3schools.com/php/php_mysql_intro.asp[/url]

Member Avatar for nav33n
0
61
Member Avatar for pancgom
Member Avatar for Richlife

Tutorial, umm..not sure.. But it can be done using ajax.. In javascript, it can be done this way. Populate 1st dropdown from the database, have an onchange event for the dropdown. Onchange, submit the page. On submit, you can access the value of 1st dropdown, Eg. [icode]$value = $_POST['dropdown1']; [/icode] …

Member Avatar for nav33n
0
49

The End.