Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~14.0K People Reached
Favorite Tags

29 Posted Topics

Member Avatar for debriscreator

Instead of using: $checkbox = $_POST['checkbox']; //from name="checkbox[]" $countCheck = count($_POST['checkbox']); for($i=0;$i<$countCheck;$i++) { $del_id = $checkbox[$i]; $sql = "delete FROM table WHERE id = $del_id"; $result = mysql_query($sql, $con); } why not try using: foreach($_POST['checkbox'] as $val){ $del_id = $val; $sql = "delete FROM table WHERE id = $del_id"; $result …

Member Avatar for debriscreator
0
280
Member Avatar for sasankasekhar

Dear friends, This is my table: CREATE TABLE IF NOT EXISTS `exam_student` ( `exam_roll_no` int(10) unsigned NOT NULL AUTO_INCREMENT, `enrol_id` int(10) unsigned NOT NULL, `exam_id` int(10) unsigned NOT NULL, PRIMARY KEY (`enrol_id`,`exam_id`), KEY `exam_roll_no` (`exam_roll_no`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; I am trying to get the field **exam_roll_no reset …

Member Avatar for pritaeas
0
110
Member Avatar for omoayan

There may be a problem with the headers. You can try removing the two echos from line 23 and 24 and keep only one echo -- > echo $content; and execute.

Member Avatar for sasankasekhar
0
207
Member Avatar for harshm027

Instead of using, <form action="javascript:ajaxpage('files/search2.php', 'rightcolumn')" method="POST"> why not try using <form onsubmit="javascript:ajaxpage('files/search2.php', 'rightcolumn')" method="POST">

Member Avatar for harshm027
0
199
Member Avatar for PF2G

edit yout javascript to: <script language="JavaScript"> function confirmBox(id){ if (confirm("Tem a certeza que pretende eliminar este utilizador? ")){ location.href="remover_user.php?id="+id;//EDIT THIS LINE } else{ return false; } } </script> and the edit the link to <a href="#" onclick="**javascript**:confirmBox('<?php echo $row_users['id_utilizador']; ?>')">Remover</a>

Member Avatar for jmichae3
0
177
Member Avatar for jacksantho

You can try something like this: echo "<a href=test.php?varname=$_SESSION['SESSIONVARNAME']>$pname</a>";

Member Avatar for broj1
0
4K
Member Avatar for Subless

I tried out both the codes - Yours and of diafol and found out that: It's not about the loops, it's about the ' echo "messages"; and break;' Instead of printing the message and exitting the loop, you should store the status (of finding the match) and print the message …

Member Avatar for Subless
0
197
Member Avatar for Albert Pinto

Just making a wild guess:: please check the method of the form or the names of the input/ select ... from the page/ file the data is posted. Possible area of the error: `$_POST['month']` or something like that (May be the tagnames doesnot match).

Member Avatar for sasankasekhar
0
1K
Member Avatar for seblake

> www.seblake.com I suppose your default page is not a php file (as far I have found out it is default.html) and so the <?php include 'Max-TechFooter.php'; ?> code is not working. you can rename it to default.php and the code will work. But there **may be** a problem: if …

Member Avatar for sasankasekhar
0
139
Member Avatar for mlohokare

Sure, you can do that. Use [B]expression[/B]s in your css. Example: [CODE] img{ display:expression((this.height<=300)?'block':'none'); }[/CODE] Hope this solves your problem. Regards ...

Member Avatar for mlohokare
0
268
Member Avatar for complexcodes

[QUOTE=complexcodes;741105]Hello, I am supposed to write a program that prompts user to enter the numbers separated by space and when user click "ok" button, it should display the numbers entered with its mean, and standard deviation and the window should ask if user wants to enter numbers again if yes …

Member Avatar for essential
0
183
Member Avatar for jobojo

[QUOTE=DangerDev;741915]Hi, define a new array with function: arr3=new Array(no_of_element); then use for loop to populate member of both array in to it as u want. use arr_var[index] to access individual member of array.[/QUOTE] This would help: [CODE] function addArr(){ var arr1 = [1,2,3,4]; var arr2 = [5,6,7,8]; arr3=arr1;//or u can …

Member Avatar for jobojo
0
1K
Member Avatar for rouse

1). You probably donot have the `indiant1_indiantreaty` database or 2). you already have the `events` table. I ran your query and it showed no errors except for the database `indiant1_indiantreaty` didnot exist. If it is case 1., create your database first, then execute the statement If it is case 2. …

Member Avatar for rouse
0
114
Member Avatar for anumitadas

[QUOTE=anumitadas;741913]<?php <$conn=mysql_connect("localhost","root","root"); echo("connected"); if(!$conn) { die('could not connect:'.mysql_error()); } mysql_select_db("student",$conn); if (!mysql_select_db('student', $conn)) { echo 'Could not select database'; exit; } ?> This the code..Using which I want to connect but getting the error: Parse error: parse error in c:\apache\htdocs\phpmyadmin\connection.php on line 6 Plz help[/QUOTE] Please check out the lines: …

Member Avatar for sasankasekhar
0
99
Member Avatar for sajjadpk

[B]Consider the following:[/B] [ICODE] <?php if(isset($_POST['btnDelete'])){ for($i=1;$i<=4;$i++){ if(isset($_POST['checkbox'.$i])){ echo "<br>".$_POST['checkbox'.$i]; } } } ?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="form1" method="post" action=""> <table width="301" height="129" border="1" cellpadding="0" cellspacing="1"> <tr> <td width="21"><strong>Sl</strong></td> <td width="245"><strong>Item</strong></td> <td width="31"><strong>Tick</strong></td> </tr> <tr> <td>1</td> <td>Apple</td> <td><input type="checkbox" name="checkbox1" value="Apple"></td> </tr> …

Member Avatar for sasankasekhar
0
97
Member Avatar for CasTex

[QUOTE=CasTex;737109]Hello, how can I do this ? [URL=http://imageshack.us][IMG]http://img528.imageshack.us/img528/1996/ggg1mh2.jpg[/IMG][/URL] The table is simple table, you can imagine that as a picture. But my point is, how to make the writing like that ?[/QUOTE] Is this what you want? [CODE] <html> <head> <title>Untitled Document</title> </head> <body> <table width="305" height="252" border="0" cellpadding="0" cellspacing="1" …

Member Avatar for sasankasekhar
0
130
Member Avatar for realnsleo

[QUOTE=realnsleo;735010]hi there, i have a problem resetting my form with javascript. I have a registration form that when submitted, the action is performed in an iframe so that the browser does not have to load another page. After form validation, i want the php script in the iframe to clear …

Member Avatar for sasankasekhar
0
110
Member Avatar for silentbob671123

[QUOTE=silentbob671123;740129]What I am trying to do is preload images on my website and delay my javascript slide-show until the images are completely done loading. Right now the slide-show starts while the images are still loading, making it kind of awkward. I am using this to preload my images but it …

Member Avatar for silentbob671123
0
121
Member Avatar for farahphp

[QUOTE=farahphp;733431][code] <html> <head> <script language=javascript> function updateopen() { var c_value = ""; var cb = document.getres.checkbox; for (var i=0; i < cb.length ; i++) { if (document.getres.checkbox[i].checked) { c_value = c_value + document.getres.checkbox[i].value + "\n"; } } alert(c_value); //window.opener.document.getElementbyId(numbe33).value = c_value //window.close(); } </script> </head> <body> <? echo '<form name="getres" …

Member Avatar for sasankasekhar
0
131
Member Avatar for collegestudent

[QUOTE=collegestudent;740274]<?xml version = "1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Airline Reservation System</title> <form id="ourForm" name="myform" > <table> <tr><td>Enter 1 for Economy Seat, 2 for First Class</td><td><input type="text" name="box1" size="5"/></td></tr> <tr><td>Result</td><td><textarea name = "textarea" rows="40" cols="70"/></textarea></td></tr> <tr><td><input type="button" value="Submit" name="button1"onClick="startArray()"></td> <td><input type="reset" value="Clear" …

Member Avatar for sasankasekhar
0
164
Member Avatar for blufab

[QUOTE=blufab;740646]Is it possible to get the value of a non-standard attribute in firefox? I am trying to capture the value of attribute required. In IE I am able to get the value using document.form.required but in firefox it just returns undefined. [CODE=html] <html> <head><title></title></head> <body> <form id="form" name="form"> <input type="text" …

Member Avatar for sasankasekhar
0
98
Member Avatar for BillyMako

[QUOTE=Manuz;732325]change ur code with this........ it will work ....... [code=php]echo ' <form action="show.php" method="post" onChange="this.submit()"> <select> <option value selected>select</option> <option value="1">1</option> <option value="2">2</option> </select> <input type="submit" value="submit"> </form> ';[/code][/QUOTE] Replace your [B]Double Quotes[/B] by [B]Single Quotes[/B], and vice versa. [code=php]echo "<form action='show.php' method='post' onChange='this.submit()'><select><option value selected>select</option><option value='1'>1</option><option value='2'>2</option></select><input type='submit' value='submit'></form> …

Member Avatar for Yipyo
0
4K
Member Avatar for Stefano Mtangoo

[QUOTE=evstevemd;732246]I Hope They Are legal too, I mean Authors allowed it to be download[/QUOTE] try this : [url]http://in2.php.net/download-docs.php[/url] You can search for PHP Manuals in CHM format. CHMs are easier to deal with.

Member Avatar for Stefano Mtangoo
0
116
Member Avatar for ehsun7b

[QUOTE=ehsun7b;728836]I need to get all children of a DIV and their children too. I mean I need to get the HTML text of a DIV but I don't like to use innerHTML since it does not support the values of inputs in many browsers. How can I do that? :-/[/QUOTE] …

Member Avatar for ehsun7b
0
215
Member Avatar for cmills83

[QUOTE=cmills83;727888]hi i have a parent window with an external url iframe. when the parent loads i want to set the iframe footer to display:none;. is there a way to do this? i have looked all over w/no luck. thanks[/QUOTE] I hope this should solve your problem: [CODE]<script language="JavaScript"> function changeCSS(){ …

Member Avatar for sasankasekhar
0
124
Member Avatar for castlelaker

[QUOTE=castlelaker;732063]Thanks This work fine if you put single quotes around 'country'. If you dont no result is displayed Thanks again Castlelaker[/QUOTE] This should be the correct statement I suppose: [code=php]$query="SELECT count(*) FROM stats WHERE BirthCountry = ".$country." ;";[/code] Regards.

Member Avatar for jyothi chundi
0
126
Member Avatar for veledrom

[QUOTE=veledrom;731493]Hi, Button below opens new popup window but doesn't send POST data from form. How can i send POST data? I know "form action" but, i want this way. Thanks [code] <input type="submit" name="buttonUnit" value="Add" onClick="window.open('add.php','Done','width=400, height=130')"> [/code][/QUOTE] Just to be clear: Do you want to post your data from …

Member Avatar for sasankasekhar
0
321
Member Avatar for yasmena

[QUOTE=yasmena;729839]i wonder how can write a JS variable inside HTML here's the Line: var texture=document.getElementById('texture').value; formdiv.innerHTML = formdiv.innerHTML +'<td align=center> JS VARIABLE TEXTURE</td>'; any help is appreciated[/QUOTE] var texture=document.getElementById('texture').value; formdiv.innerHTML = formdiv.innerHTML +'<td align=center>' + texture + '</td>'; Hope this Helps. Regards

Member Avatar for sasankasekhar
0
82
Member Avatar for aneesh.nl

[QUOTE=aneesh.nl;732247]Sorry I can't. Clearing doesn't work[/QUOTE] The Fourth Row in your Table has three columns: [U]News[/U], Welcome to Unique... and Publications. The width of these three columns is : 264+371+297 = 932 px. The width of the whole table cannot be reduced than 932px. I had removed that particular row …

Member Avatar for sasankasekhar
0
129

The End.