Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
4 Commented Posts
0 Endorsements
Ranked #818
~49.8K People Reached
Favorite Tags
Member Avatar for fariba123

[QUOTE=;][/QUOTE] [CODE]<form action='page.php' method='post'> <input type='checkbox' name='chk' value='value1'> ANY VALUE 1 <br> <input type='checkbox' name='chk' value='value2'> ANY VALUE 2 <br> <input type='checkbox' name='chk' value='value3'> ANY VALUE 3 <br> <input type='checkbox' name='chk' value='value4'> ANY VALUE 4 <br> <input type='submit' name='submit' value='Get Value'> </form>[/CODE] page.php codes: [CODE]<?php $value = $_POST['chk']; echo $value; …

Member Avatar for bhagyashree.bhatt2
1
1K
Member Avatar for lyrico

Hi to All, Can anyone show me a sample alarm script using php or javascript? The alarm was base on the record at the database. I mean, for example I have records that have overdue, the user is the one who state the overdue. For example, the user input his …

Member Avatar for diafol
0
742
Member Avatar for kirtan_thakkar

[QUOTE=;][/QUOTE] Just use dot (.) [code] <?php $text1 = "World"; echo "Hello ".$text1; //The output will be Hello World $text2="Hello"; echo $text2." World"; //The output will be Hello World ?> [/code]

Member Avatar for msnadz
0
3K
Member Avatar for cheesywan
Member Avatar for lyrico

Hi all, Can anyone help me or give me an idea on how export data from mysql into multiple excel sheet using php? Below is the code I used to export data from mysql in a single excel sheet. thanks in advance [code] <?php $filename = 'filename.csv'; include 'connection.php'; $date …

Member Avatar for whiteyoh
0
299
Member Avatar for lyrico

Hello Guys, Can anyone help me regarding this search engine I want to implement on my script? Let's say i have 5 files (file11.txt, file12.txt, file13.txt, file14.txt and file15.txt) on my folder named FILES. Now i want to write script that when i search for a particular words, it will …

Member Avatar for pritaeas
0
83
Member Avatar for singularity~

[QUOTE=;][/QUOTE] you can use submit instead of button. try to analyze this code. [code] //assume that the file name of this script is test.php <?php if($_POST['submit']=="Test") { echo "test"; } echo "<form action='test.php' method='post'>"; echo "<input type='submit' name='submit' value='Test'>"; echo "</form>"; ?> [/code]

Member Avatar for veedeoo
0
873
Member Avatar for lyrico

Hi to all, Can anyone help me to show the code how to save multiple data into mysql via PHP? Thanks in advance. Here's some code [code] <?php echo "<form action='savetoanothertable.php' method='post'>"; $query = mysql_query("SELECT * FROM tbl_student"); while($result = mysql_fetch_array($query) { echo "<input type='text' name='studname' value='$result[studentname]'>"; echo "<input type='text' …

Member Avatar for lyrico
0
246
Member Avatar for lyrico

Hello Guys. Is there anyone here who can help me how to add shadow in div (browser is IE8). Thanks. This Code doesn't work. [code] </style type='text/css'> .main_div { width:100; height:100; -webkit-box-shadow: #111 0 -2px 6px; -moz-box-shadow: #111 0 -2px 6px; box-shadow: #111 0 -2px 6px; } </style> <div class='main_div'> …

Member Avatar for Dandello
0
93
Member Avatar for Virangya

[QUOTE=;][/QUOTE] I think this can help you. [code] <?php $t1 = strtotime('2011/09/19 09:18:22 AM'); $t2 = strtotime('2011/09/22 03:22:18 PM'); $delta_T = ($t2 - $t1); $day = round(($delta_T % 604800) / 86400); $hours = round((($delta_T % 604800) % 86400) / 3600); $minutes = round(((($delta_T % 604800) % 86400) % 3600) / …

Member Avatar for lyrico
1
14K
Member Avatar for lyrico

Hello Guys, Can anyone help me to get time difference in PHP? For example: [code] <?php $Start = "09:18 AM"; $End = "04:10 PM"; $diff = ???? [/code] Can anyone show the code for $diff? thanks in advance and more power.

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for lyrico

Hi to All, Is this code can be done with link <a hef=''>? [code] <?php echo "<form action='page.php' method='post'>"; echo "<input type='submit' name='submit' value='Go to Page'>"; echo "</form>"; if($_POST['submit']=="Go to Page") { } ?> [/code] in the code above, once the user click the button, the page load and execute …

Member Avatar for lyrico
0
129
Member Avatar for lyrico

Can anyone clarify how I can use a sliding div animation like the one here but instead of using displaying a div on the same page, it loads a new page and then unveils the div. ie. I want to use it for my navigation links which go to different …

Member Avatar for ko ko
0
125
Member Avatar for lyrico

Hi to all, I am PHP developer and found many problems regarding cross browser issue. Here's the problem: I want a rounded div with shadow. My CSS codes works at FF but not in google chrome. Please help. Thanks in advance. Here's my code: [code] <style type='text/css'> .main{float:none;position:relative;width:980;background:white;height:500;margin:0px auto;top:10;} #shadowBox …

Member Avatar for Kraai
0
112
Member Avatar for samsnov

[QUOTE=;][/QUOTE] I have same problem as samsnov. The problem can be call as cross browser issue. For example, when you run the script into IE, the design looks fine. But when you run it using FireFox, you can found many problem regarding its design. Can anyone here give some advise …

Member Avatar for samsnov
0
241
Member Avatar for phpbeginners

[QUOTE=;][/QUOTE] Maybe it can by signing out into the website and not by closing the browser.

Member Avatar for diafol
0
146
Member Avatar for lyrico

Hi everyone, I need some help now. Can anyone show me a script on how can shared folder (not folder on the server) open using php? I mean my server's IP is 10.10.10.1 and then some shared folder are on the IP 10.10.10.2. Now I want to access the shared …

0
73
Member Avatar for jacob21

[QUOTE=;][/QUOTE] Try this idea. [code] <?php // sql connection here $query = mysql_query("select * from tbl_name order by number_of_jobs desc"); while($result=mysql_fetch_array($query)) { echo $result['company_name']; echo $result['number_of_jobs']."<br>"; } ?> [/code]

Member Avatar for tomato.pgn
0
304
Member Avatar for Tempest will

[QUOTE=;][/QUOTE] Try this. [code] <?php // your database connection here echo "<select name='dropdown1'>"; $query = mysql_query("SELECT * from employeedetails"); while($result=mysql_fetch_array($query)); { echo "<option name='id_list'>".$result['EmployeeID']."</option>"; } echo "</select>"; ?> [/code]

Member Avatar for vibhaJ
0
112
Member Avatar for daniel7912

[QUOTE=;][/QUOTE] You can use substr. Example. [code] <?php $date="March 21, 2011 - 06:30 PM"; $time = substr($date,17,8); // this means you will eliminate 17 characters (March 21, 2011 - ) "including the space", and then print out the 8 characters. echo $time; // the output will be 06:30 PM ?> …

Member Avatar for lyrico
0
240
Member Avatar for ahsan1

[QUOTE=;][/QUOTE] Just place the delete query into the top of display query. Sample [code] <?php $sql="DELETE FROM table_name WHERE id='$ids'"; $query=mysql_query("select * from tbl_name"); while($result=mysql_fetch_array($query)) { //blah blah blah } [/code]

Member Avatar for lyrico
0
68
Member Avatar for Fresco Vivir

[QUOTE=;][/QUOTE] You can refer to this idea. Lets say you have name, address and id to your table both table a and b. [code] <?php $query = mysql_query("SELECT * FROM table_a"); while($result = mysql_fetch_array($query)) { $name = $result['name']; $address = $result['address']; $id = $result['id']; mysql_query("INSERT INTO table_b (name,address,id) values('$name','$address','$id')"); mysql_query("DELETE …

Member Avatar for lyrico
0
87
Member Avatar for Kadafiz

[QUOTE=;][/QUOTE] Hi Kadafiz. Try this idea. 1. You can restrict the "userID text box" to make it accept only integers (0-9) using javascript. here's the code. [code] <HTML> <HEAD> <SCRIPT language=Javascript> function isNumberKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 …

Member Avatar for lyrico
0
2K
Member Avatar for xuexue

[QUOTE=;][/QUOTE] Try this [code] <?php if($_POST['submit']=="Submit") { $text1 = $_POST['text1']; $text2 = $_POST['text2']; if($text1 =="" || $text2=="") { ?> <head> <script type='text/javascript'> alert('Some text here.'); </script> </head> <?php } else { //what do you want when the two textbox have value } } echo "<form action='index.php' method='post'>"; echo "<input type='text' …

Member Avatar for happytogether
0
186
Member Avatar for Lirans
Member Avatar for 333Geek
0
167
Member Avatar for lhyndel

[QUOTE=;][/QUOTE] There are lots of tutorial inside the net. Try to google it. The tutorials are easy to follow.

Member Avatar for royng
0
77
Member Avatar for kedar9

[QUOTE=;][/QUOTE] It depends on some browser. But you can try this. [code] <form action='page2.php' method='post' target='_blank'> [/code] All version of IE supports the target='_blank' tags.

Member Avatar for kedar9
0
189
Member Avatar for jrotunda85

[QUOTE=;][/QUOTE] Anyway are you creating Log in script or a Sign up script? But anyway, try this Jrotunda. (taga pinas ka ba?) [code] <?php //maybe your need here something like... $input_username = $_POST['username']; // user input. This is the value that will be check if already exist in the DB …

Member Avatar for Javvy
0
269
Member Avatar for luweegee

[QUOTE=;][/QUOTE] Just put your update query at the top, so when the page was load, the script update first the record and then display the result. Try the code below. [code] <?php $con = mysql_connect("localhost","root",""); $sql = mysql_select_db("luweegee",$con); ?> <html> <head><link rel='stylesheet' type='text/css' href='Style.css'/></head> <body> <table border=0 align='center' width=900 cellpadding=20 …

Member Avatar for lyrico
0
190
Member Avatar for banmikko

[QUOTE=;][/QUOTE] try this. [code] <img src='<?php echo $targetpath;?>'> [/code] If this code don't work, maybe you can post your viewproducts script here.

Member Avatar for smantscheff
0
200