Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
80% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #435
~77.6K People Reached
Favorite Tags

82 Posted Topics

Member Avatar for brynFlew

[code] <form> <select name="sel1" onChange="populateField(this.form)" > <option value="">---Select---</option> <option value="stop" >Stop</option> <option value="start">Start</option> </select> <input type="text" id="eStop" name="eStop" /> </form> <script type="text/javascript"> function populateField(frm){ var test = frm.sel1.value; alert('work '+ test); frm.eStop.value = test; } </script> [/code] It will work fine. Good luck.

Member Avatar for Samanalevi
1
370
Member Avatar for dschuett

Ok here my code try to understand First create a table named 'img' in your database as fields and data types mentioned below id int(11) auto_increment img_base_name varchar(50) img_ext varchar(50) img_height int(11) img_width int(11) size varchar(50) Delete img_status enum('Y','N') NO Y Then provide the 'hostname', 'username', 'password', 'database_name' in line …

Member Avatar for Gloak
0
2K
Member Avatar for lunie15

Create a div to next to the text box or any field where you want to display something like. [code]<div id ="err1" style = "display:none">error message</div>[/code] In validation function [code] function val() { if(error_condition) { document.getElementById('err1').style.display = "block"; } } [/code]

Member Avatar for Bachu
0
1K
Member Avatar for nats01282

Is your connection is ok? Error and in what line is your error is showing. mysql_connect("localhost", "DBname", "Password") ????????? What is 'DBname'? Is it a database name. But here it should be the mysql user name.

Member Avatar for nats01282
0
189
Member Avatar for sjeggels

I don't clearly understand your problem. I think <a href="http://www.wordpress.com">www.wordpress.com</a> will do fine.

Member Avatar for floatingDivs
0
172
Member Avatar for ricvik

[code] var chkobj = document.fselall['FieldName']; var i=0; if(chkobj[i].checked == true) alert(1); [/code] Try to implement checkbox as an object, by using the above code. Gdluck

Member Avatar for ricvik
0
160
Member Avatar for george61
Member Avatar for ditty

I think you should use order by clause. And if that does not fit your requirement then you may put them in an array and do a loop using the array and fetch one by one row from the database. GdLuck

Member Avatar for mahavir123
0
89
Member Avatar for ian paul

you can upload by using a simple form. eg : <input type="file" /> More info???

Member Avatar for mahavir123
0
60
Member Avatar for Spycat

I think in below css body and html something is wrong. I have tried it with removing html {height:100%;} It is working. But in your code it is not working. [code] html { height:100%; width:100%; } body { height:100%; background-color:#f0f0f0; background-image:url(images/white7.jpg); color:#002907; font-family:Verdana, 'Trebuchet MS', Tahoma, sans-serif; /* border:2px ridge …

Member Avatar for Spycat
0
923
Member Avatar for samsons17

[code] <ul id="wall"> <?php include('insert.php'); $test=mysql_query("SELECT*FROM wall ORDER BY id DESC"); while($row=mysql_fetch_array($test)){ echo "<li class='stbody'><div class='stimg'></div><div class='sttext'>". $row["message"]. "<div class='below'><div class='sttime'>2 seconds ago</div> <div class='help-toggle'>| Help |</div> <div class='trigger_default'><a href='#'>Discuss</a></div> <div class='toggle_container_default'> <ul class='reply_text'> <!--This is where i try to execute the second query where the comment for each wall …

Member Avatar for samsons17
0
103
Member Avatar for maria_megha
Member Avatar for Armistice

Above code is very good I have tried it it is working fine My code is [code] <style type="text/css"> div.divOpaque { color: rgb(0, 0, 0); background-color: rgba(23,23,23, 0.2); } </style> <center> <div class="divOpaque">By Mahavir Senapati</div> </center> [/code]

Member Avatar for mahavir123
0
157
Member Avatar for Ambislm
Member Avatar for tinker

In changeMe js function by js open a popup window with the url and id to it as window.open('changepic.php?id=12','pop1','width=600, height=500'); Then Use in php code receive it as $_GET['id'] and show it and, you can also change there.

Member Avatar for mahavir123
0
280
Member Avatar for lit108

after [code]<?php session_start(); ?>[/code] You will get a session id like [code]<?php echo $SID = session_id(); ?>[/code] Then use the normal mysql_query() function to insert data to the database like [code]<?php mysql_query("INSERT INTO `table_name`(`column_list`) values('$SID', 'other_values')") ?>[/code]

Member Avatar for ice_k99
0
200
Member Avatar for anandhikrishnan

[code] <a href="javascript:window.opener.location.reload();window.close()">Close</a> [/code] It will create a close button in the child window. May this work for you.

Member Avatar for Shanti C
0
308
Member Avatar for Shankye

Be more specific. I can't deduce your problem correctly. So please do so. By the way the facebook buttons are not really buttons, those are images used in their web pages. Facebok also uses API. Those APIs are from facebook.com or [url]http://developers.facebook.com[/url]. Where you can check.

Member Avatar for Shankye
0
108
Member Avatar for himanshumishra
Member Avatar for Joe34

[code] <textarea cols="100" rows="15"> <input type="button" /> <input type="checkbox" /> <input type="file" /> <input type="hidden" /> <input type="image" /> <input type="password" /> <input type="radio" /> <input type="reset" /> <input type="submit" /> <input type="text" /> <textarea cols="3" rows="2" style="border:solid 1px">&lt;/textarea&gt; </textarea> [/code] It works for me. If you could give code, …

Member Avatar for mahavir123
0
77
Member Avatar for conmen80

[code] var qty = new Array(1,2,3); document.write('<a href="file_name.php?qty='+qty+'">click link</a>'); [/code] In this you can pass the array separated by comma. Can you use this.

Member Avatar for mahavir123
0
87
Member Avatar for feoperro

[code] <form name="frmName"> Search : <input type="text" size="50" />&nbsp;<img src="submit.jpg" alt="Submit" width="121" height="60" style="cursor:pointer" onclick="document.frmName.submit()" /> </form> [/code]

Member Avatar for NZprog
0
855
Member Avatar for rolyestemonio

[code] <?php $con=mysql_connect("localhost", "username", "password")or die("cannot connect"); mysql_select_db("db_name",$con)or die("cannot select DB"); if(isset($_POST['Submit'])) { $img_name = $_FILES['images']['name']; $image_name = $_POST['image_name']; $descriptions = $_POST['descriptions']; $img_tmp_name = $_FILES['images']['tmp_name']; copy($img_tmp_name,"upload/".$img_name); $qry = "INSERT INTO `tab_name`(`id`, `image_name`, `descriptions`) VALUES(NULL,'$image_name','$descriptions')"; $res = mysql_query($qry); if($res) echo "Data Saved"; else echo "Sorry, data not saved, try again"; } …

Member Avatar for rolyestemonio
0
111
Member Avatar for cableguy31
Member Avatar for cableguy31
0
246
Member Avatar for Ajuddy
Member Avatar for dan1992

After submitting the form it is submitted to 'upload.php' so your move_uploaded_file($_FILES["pictures"]["tmp_name"],$_FILES["pictures"]["name"]) or die("Problems with upload"); code should be in that page.

Member Avatar for dan1992
0
142
Member Avatar for zlloyd1

I test your code in my local server, it is running fine, but initially showing Hello,

Member Avatar for diafol
0
247
Member Avatar for arctushar

Here is the complete code, but you can modify according to your requirements [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function addText() { var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if …

Member Avatar for mahavir123
0
285
Member Avatar for Brianbc
Member Avatar for MACKENZIEKE
Member Avatar for chrishea
0
119
Member Avatar for GaBack
Member Avatar for GaBack
0
127
Member Avatar for vedro-compota

Change your code as line no:23 ----->>>> $str = $str . $simb; line no:24 ----->>>> if ($simb == ";")

Member Avatar for vedro-compota
0
399
Member Avatar for phpbeginner

If you are submitting the form to the same page, I think you can get the country value in the page itself, by [code] <?php echo $_POST['region']; ?> [/code] But if you still want the to change the url then you have to call a JavaScript function in which submit …

Member Avatar for phpbeginner
0
582
Member Avatar for alanlee9898
Member Avatar for angelos33
0
9K
Member Avatar for zyzagy
Member Avatar for veledrom

[code] <?php $connection1 = mysql_connect("hostname","username","password",true); $connection2 = mysql_connect("hostname","username","password",true); $db_selected1 = mysql_select_db('db1', $connection1); $db_selected2 = mysql_select_db('db1', $connection2); ?> [/code] It will create a new connection without disturbing the old connection. If you face any problem regarding this again inform me. Good luck.

Member Avatar for veledrom
0
93
Member Avatar for nsam

If you just want to remove your warning then just add this [code]if(count($_REQUEST['asgn']))[/code] before your foreach statement as [code]if(count($_REQUEST['asgn'])) foreach($_REQUEST['asgn'] as $checkbox) { //your code } [/code] But if you want to retrieve your value then do the following Add this [code] echo "<form method='post' name='frm1'>"; [/code] before while() i.e. …

Member Avatar for mahavir123
0
102
Member Avatar for bspace
Member Avatar for ko ko
0
109
Member Avatar for Awah Mohamed

In line no 4 $sql = "CREATE TABLE news( id INT(8) NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(250) NOT NULL, news TEXT NOT NULL )";

Member Avatar for chrishea
0
99
Member Avatar for pikkas

[code] <script type="text/javascript"> function dat() { var date=new Date(); var Month= date.getMonth()+1; var opt = document.createElement("option"); document.getElementById("Monthlistbox").options.add(opt); //document.body.Monthlistbox.option.add(opt); opt.name = 'month'; opt.value = Month; opt.text = Month; alert(opt.text) } </script> <body onLoad="dat()"> <select name="Monthlistbox" id="Monthlistbox"> </select> </body> [/code] Try it

Member Avatar for mahavir123
0
145
Member Avatar for Brian.Walsh

Please be more specific about your problem. Hope the below code in your solution [code] <?php for($i = 0; $i<=99; $i++) { if($i%2) echo $i."&nbsp;"; if($i%18 == 0 && $i!=0) echo "<br>"; } ?> [/code]

Member Avatar for mahavir123
0
54
Member Avatar for eyadox

I think you want to display image by fetching from database. If this is the case, then. You can fetch 'image name' or 'path to an image stored' from database and display in the html tag. More info would be better.

Member Avatar for mahavir123
0
41
Member Avatar for LONGWAY

Try [code]<?php echo row['database_column_name']; ?>[/code] Here 'database_column_name' is the name of the column of the result shown in mysql database by select query. Hope this was your problem....

Member Avatar for LONGWAY
0
143
Member Avatar for itisnot_me

I have tried it it is working, Below queries are working fine for me $query2 = "UPDATE properties SET $imagenum = '$filename' WHERE id='$id'"; $query2 = "UPDATE properties SET `$imagenum` = '$filename' WHERE id='$id'"; You may be try `$imagenum` (quoted in tilted) rather than '$imagenum' or \"$imagenum\". '$imagenum' or \"$imagenum\" …

Member Avatar for itisnot_me
0
267
Member Avatar for ankit.pandey3

[code] <?php require_once('database.php'); $query="select * from news"; $result=mysqli_query($dbc,$query); while($row=mysqli_fetch_array($result)){ $NewsId=$row['NewsId'] $Title=$row['Title']; //$Content=$row['Content']; echo $Title; echo "<a href=somePage.php?NewsId=$NewsId>$Title</a><br>"; } ?> [/code] In the somePage.php use following [code] <?php require_once('database.php'); $NewsId = $_POST['NewsId']; $query="select * from news where NewsId = '$NewsId'"; $result=mysqli_query($dbc,$query); while($row=mysqli_fetch_array($result)){ $Content=$row['Content']; echo $Content; } ?> [/code] Or you can …

Member Avatar for mahavir123
0
205
Member Avatar for Hridayesh
Member Avatar for windmill87
Re: PHP

I think you are using OLDER version of PHP server. In older version of php, session is used by session_register() function. So I think either you change your php server or use session_register() function to implement your code. For reference [url]http://www.php.net/manual/en/function.session-register.php[/url] If this not solve your problem then let me …

Member Avatar for sudeepjd
0
167
Member Avatar for mbarandao

[code] $time = mysql_fetch_array(mysql_query("select now()")); echo $time['now()']; [/code] You can use the $time variable to add the current server time.

Member Avatar for mbarandao
0
100
Member Avatar for Blaise.M

[code] function showContent(toPopulate) { document.getElementById(toPopulate).innerHTML = "<a href='javascript:showOtherContent(\"toPopulate\");'>show</a>" } function showOtherContent(toPopulate) {alert(toPopulate)} [/code] Above is working

Member Avatar for Blaise.M
0
168
Member Avatar for Awah Mohamed

$query = mysql_query("SELECT * FROM news ORDER BY news DESC limit 0,5"); Use this One

Member Avatar for Awah Mohamed
0
85

The End.