1,257 Posted Topics

Member Avatar for TIM_M_91

UPDATE TABLE_1 LEFT JOIN TABLE_2 ON TABLE_1.COLUMN_1= TABLE_2.COLUMN_2 SET TABLE_1.COLUMN = EXPR WHERE TABLE_2.COLUMN2 IS NULL This is sample query refer following link http://dev.mysql.com/doc/refman/5.0/en/update.html But I would suggest that you should not update address in delivery, that will changes all address in delivery table of same customer even if delivery …

Member Avatar for diafol
0
132
Member Avatar for casey.li.146

php code can be embeded anywhere in your page u need <?php //in begniing of page you can get values from server and databaase $var1="somevalue" ?> <html> Value is <?php echo $var1; ?> </html>

Member Avatar for casey.li.146
0
294
Member Avatar for Tko_1

1) you just try to find values that it post echo "<pre>"; print_r($_POST); echo "</pre>"; 2) ALSO GIVE NAME TO your text box and use same name when renaming <input type=text name='newname'> . . . $new=$_POST['newname']; 3) I think you have to keep directory name with filenames and ensure that …

Member Avatar for Tko_1
0
191
Member Avatar for Lilantha

https://github.com/PHPOffice/PHPExcel/wiki/User%20Documentation%20Reading%20Spreadsheet%20Files

Member Avatar for urtrivedi
0
465
Member Avatar for mansi_1

1) in your html form , you have to create form elements, with all text boxes and update button 2) on update submit form to say process.php page 3) capture all submited html values using global $_POST or $_GET array 4) write insert/udpate query code in process.php page 5) send …

Member Avatar for urtrivedi
0
93
Member Avatar for AARTI SHRIVAS

you run regstate.php?id=28 (chose any value that is valid) in browser, see what is output? Fisrt check problem is in javsccript or ur process page itself

Member Avatar for eyasin
0
243
Member Avatar for foxwizzy

Cereal gave you 100% solution, it will print both check and not checked values

Member Avatar for foxwizzy
0
117
Member Avatar for andika.kurniawan.121

1) You must concate $word. In your code u assiging new query $word .= "INSERT INTO relation_mu_and_unit (id_drug, id_unit, priority, value, harga1, harga2, harga3, last_edit) VALUES ( $id_drug,$id_unit, $i, $value, $harga_1, $harga_2, $harga_3, NOW() );"; 2) mysqli expects connection first then query, make sure you create mysqli connection. mysqli_mutli_query($conni, $word) …

Member Avatar for urtrivedi
0
161
Member Avatar for nadiam

You must use single quote around $name "SELECT * FROM asset WHERE name = '$name'"

Member Avatar for nadiam
0
217
Member Avatar for evangelion89

Here is sample json example, I hope you get something from it. [CODE]<html> <body> <h2>Create Object from JSON String</h3> <p> First Name: <span id="fname"></span><br /> Last Name: <span id="lname"></span><br /> </p> <script type="text/javascript"> var txt = '{"employees":[' + '{"firstName":"John","lastName":"Doe" },' + '{"firstName":"Anna","lastName":"adSmith" },' + '{"firstName":"Peter","lastName":"Jones" }]}'; obj = JSON.parse(txt); document.getElementById("fname").innerHTML=obj.employees[1].firstName …

Member Avatar for spatlola0422
0
1K
Member Avatar for venkyb47

We do same in our enviroment. Following is our case 1) out of 100% tables in database, we need just 20% tables to show on website.5% are to be updated back to oracle. 2) We create similar data tables in mysql. 3) we set up cron job in php script …

Member Avatar for venkyb47
0
601
Member Avatar for tqmd1

<?php echo $value='myname'; ?> Name<input type="text" name="text1" value="<?php echo $value; ?> >"> You can learn more on www.w3schools.com

Member Avatar for diafol
0
127
Member Avatar for fheppell
Member Avatar for iamthwee
0
317
Member Avatar for nadiam

instead of span you must use form element like text or hidden hidden is best for your case your element must be in between form tag <form> . . . <type =hidden id=year name =year value='<?php echo date("Y"); ?>'> </form>

Member Avatar for JorgeM
0
1K
Member Avatar for Linddha

SELECT MemberID, COUNT(MemberID) cnt FROM YourTable GROUP BY MemberID order by cnt desc limit 0,1

Member Avatar for urtrivedi
0
204
Member Avatar for pce369

select year(created_at) as year, month(created_at) as month, day(created_at) as day, item_sdb_id, price_per_unit from (select l.item_sdb_id, avg(l.list_price) / sum(l.quantity) as price_per_unit, l.created_at from listings as l inner join purchases as p on l.purchase_id = p.id where l.item_sdb_id and p.created_at > '2013-07-09' group by l.item_sdb_id,l.created_at) as t1 group by year, month, day …

Member Avatar for urtrivedi
0
337
Member Avatar for mushahidh

<div class="row" style="margin-left:20px;"> <div class="grid_4"> <div class="da-panel collapsible"> <input type="button" class="btn btn-success" onclick="tableToExcel('testTable', 'W3C Example Table')" value="Export to Excel" style="float:right"> <div class="da-panel-content"> <div class="da-panel-title" style="border-top:1px solid #ccc;border-bottom:1px solid #ccc"> <h3 style="padding-left:10px;font-weight:bold;">Staff Training Information</h3></div> <table class="da-table da-ex-datatable-numberpaging" id="testTable" width="100%"> <thead width="100%"> <tr> <th width="10%">Staff ID</th> <th width="10%">Name</th> <th width="10%">Location</th> <th width="10%">POCT …

Member Avatar for pixelsoul
0
4K
Member Avatar for jahid32
Member Avatar for narasimha9
Member Avatar for Lsmjudoka
0
140
Member Avatar for narasimha9

Only you need one query as following $state_id=$_REQUEST['state_id']; $query="select tbl_city.city_name,tbl_states.state_name FROM tbl_city INNER JOIN tbl_states ON AND tbl_city.state_id=tbl_states.state_id where tbl_states.state_id='$state_id' "

Member Avatar for Reverend Jim
0
231
Member Avatar for pkarovsky

you need to learn embeeding php code with html to show dynamic data. what u mean by google database?

Member Avatar for diafol
0
250
Member Avatar for shwetha.marigowda

you can create procedure in backend delete from a; delete from b; delete from c; commit; Put that code in proper oracle procedure syntax, also make sure sequence of table must also according to the foreign key relation among them. I mean delete detail table first then master afterwards.

Member Avatar for urtrivedi
0
121
Member Avatar for Indians

You need to use parsetFloat function everywhere http://www.w3schools.com/jsref/jsref_parsefloat.asp nValue12 = paserFloat(document.getElementById("noofnights6").value); nValue13 = parseInt(document.getElementById("rate6").value);

Member Avatar for Indians
0
200
Member Avatar for muktapuram
Member Avatar for muktapuram
0
1K
Member Avatar for Indians
Member Avatar for GilbertB
Member Avatar for johndohmen1963

change your line no 10 [code] $i = 0; [/code] set $i to 1 [code] $i=1; [/code]

Member Avatar for aymix
0
713
Member Avatar for garyjohnson

Can you post your table structure. Instead of join you may try implode, see how it works

Member Avatar for broj1
0
445
Member Avatar for kyleo92

Though once you update data, any new request to your page will present current data only But somebody is monitoring page, then need to refresh the result section automatically. For that jquery request can be sent very few mintes say, 5 mintes. You can set timer function in your page …

Member Avatar for urtrivedi
0
97
Member Avatar for CreatorZeus

In the begning of your page add 2 lines, It will show error if any error_reporting(E_ALL); ini_set("display_errors", 1);

Member Avatar for EvolutionFallen
0
209
Member Avatar for eos.paks

www.0fees.net this is one of the free domain abailable, register and have your free online server with name like eospaks.0fees.net

Member Avatar for urtrivedi
0
114
Member Avatar for yaragalla_mural

window.setTimeout(hello,3000); function hello(){ alert("ju"); } Call back function can not be called , what u have written with () is calling function. Just pass name of function.

Member Avatar for yaragalla_mural
0
137
Member Avatar for sruthisru
Member Avatar for swapnil.jambe

I am not sure about jsp, but I put exit statement after header redirection line. <?php header("location:gopage.php"); exit; ?> So Try to exit the page with proper syntax, I hope that will work.

Member Avatar for asmira
0
132
Member Avatar for lewashby

function validate(form, minlength, maxlength) { var userInput = form.elements[0].value if(userInput.length >= minlength && userInput.length <= maxlength) { return true; } else { alert("Please input between " + minlength + " and " + maxlength + " characters"); return false; } } <-- this is missing

Member Avatar for lewashby
0
269
Member Avatar for msz900

in your login.php , add 2 line before if function, do it show 1 or not $row=mysql_num_rows($result); echo "total rows ->" .$row "<-"; die('stop'); if($row==1)

Member Avatar for jkon
0
306
Member Avatar for umandajayo
Member Avatar for anandatheerthan
Member Avatar for pocto

I think you should have posted this topic to business exchange forum, You wil find good responder in that forum.

Member Avatar for Nmalik1
0
122
Member Avatar for xXghostXx
Member Avatar for Reverend Jim
0
121
Member Avatar for bumbumpaw

select ProductID , max(case when AttributeID=1 then AttributeValue else null end) Color , max(case when AttributeID=2 then AttributeValue else null end) Size from tblProductAttribute group by ProductID

Member Avatar for urtrivedi
0
207
Member Avatar for kelley82879

$sql = mysql_query("SELECT * FROM `Cater Gid` where Cater like '%$term UNION SELECT * FROM `Cater Food` where Cater like '%$term") ;

Member Avatar for kelley82879
0
273
Member Avatar for chrisschristou

You need to focus on javascript /jquery to make it user interactive. Php will play role at the time of loading or saving from /to server.

Member Avatar for diafol
0
150
Member Avatar for techxaidz

create 2 dimentional array $ar[0][0]='Driver`s seat'; $ar[0][1]=''; $ar[0][2]=''; $ar[0][3]=''; $ar[0][4]=''; $ar[1][0]='1'; $ar[1][1]='2'; $ar[1][2]=''; $ar[1][3]='3'; $ar[1][4]='4'; $totrows=count($ar); echo "<table>"; for ($i=0;$i<$totrows;$i++) { echo "<tr>"; for($j=0;$j<5;$j++) echo "<td>".$ar[$i][$j]."</td>"; echo "</tr>"; } echo "</table>";

Member Avatar for techxaidz
0
390
Member Avatar for Monium

I suggest simple keep name tag as following for all file input elements, do not give number in html form. This way you will get file upload array in upload_file.php. you can user var_dump to see how file array is built. Accordingly you can write your code. name="userfile[]" ;//correct name="userfile['01']" …

Member Avatar for urtrivedi
0
693
Member Avatar for |-|x

Yes I felt such problem some times back. Refer this link http://www.rgagnon.com/jsdetails/js-0129.html

Member Avatar for rohitdubey
0
5K
Member Avatar for davidjennings

give your sample data also for some records, so that we can understand what data your columns hold,

Member Avatar for davidjennings
0
172
Member Avatar for Database1234

SALES http://www.databaseanswers.org/data_models/car_sales/index.htm SERVICE http://www.databaseanswers.org/data_models/car_svc_center/index.htm

Member Avatar for bhanks
0
240
Member Avatar for bhallarahul

In login page you can check time if userid password is fine and time is between 05:00hr to 10:00 hr, allow user to access pages otherwise disallow If there is no login page. You may put same check in all pages

Member Avatar for stultuske
0
102
Member Avatar for davy_yg

Adobe acrobat professinal allows you to edit using touch up text tool. You can not format like word doucment but minor changes can be done easily. Acrobat Reader will not allow. I am not sure about any other pdf editor software

Member Avatar for Webville312
0
75

The End.