Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~493 People Reached
Favorite Forums
Favorite Tags
Member Avatar for nawabsheriff

[code=php]</script> </head><body> <form action="naw1.php" onsubmit="return validate_form(this)" method="post"> contactgroups<br><br> <?php $instance=1; //$conn=new mysqli('192.168.1.50','root','adm1ns','nagios'); $db=new mysqli('192.168.1.50','root','adm1ns','aptus') or die ('Cannot connect to MySQL server'); $sql="select alias from aptus_contactgroups where instance_id=?"; $stmt=$db->stmt_init(); $stmt->prepare($sql); $stmt->bind_param("i",$instance); $stmt->execute(); $stmt->bind_result($time); echo "<select multiple=\"contact_groups[]\" >"; while($stmt->fetch()) { echo "<option value=\"".$time."\">".$time."</option>"; } <input type="submit" value="Submit"> <?php $cg=count($_POST['contact_groups']); for($i=0;$i<$cg;$i++) { echo …

Member Avatar for somedude3488
0
76
Member Avatar for nawabsheriff

hi to all pls help me to store whatever the user enters in text box in a table and then get the records from the table and use it in drop down list. Any idea or tutorial to do like tat....

Member Avatar for Will Gresham
0
100
Member Avatar for nawabsheriff

hi i wanna create a web page in such a way that, if a user gives a data in a text field,And click the submit button, it should automatically store in a drop down menu options... pls help me in devloping the code for this..... Thanks Nawab

Member Avatar for cwarn23
0
76
Member Avatar for nawabsheriff

[code=html]<html> <head> <script type="text/javascript"> function validate_required(field,alerttxt) { with (field) { if (value==null||value=="") {alert(alerttxt);return false;} else {return true} } }function validate_form(thisform) { with (thisform) { if (validate_required(email,"Email must be filled out!")==false) { email.focus(); return false; if (validate_required(city,"city fill it")==false) { city.focus(); return false; } } } } </script> </head><body> <form action="9.php" …

Member Avatar for aravelli
0
91
Member Avatar for nawabsheriff

<?php $conn = new mysql('localhost', 'root', 'adm1ns'); $sq1 ="INSERT INTO data VALUES(?,?,?); $stmt = $conn->stmt_init(); $stmt->prepare($sql); $stmt->bind_param("sss",$instance,$instance,$instance); $stmt->execute(); $stmt->fetch(); ?> i use this code to store the data in mysql given by user... in sixth line i am getting a error "unexpected T_STRING" i cant cant this error pls help …

Member Avatar for nawabsheriff
0
149