- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 4
20 Posted Topics
Hi to all, i need a help I have 2 tables namely subjects & marks. Subjects has 2 columns namely subject_id (PK), subject_name & class_id (FK). Marks has mark_id, student_id(FK), exam_id (FK), sub_1, sub_2, ... sub_n here sub_1, sub_2, ... sub_n are columns in 'Marks' table but actually they are … | |
Re: [CODE]<html><title>grades</title><body bgcolor=red><form method=post><?phpecho"<table><tr><td>Name:</td><td>prelim grade</td><td>midterm grade</td><td>final grade</td><td>equivalent</td><td>Remarks</td></tr><tr><td><input type=text name=name1></td><td><input type=text name=name2></td><td><input type=text name=name3></td><td><input type=text name=name4></td><td><input type=text name=name5></td><tr><td>";$ave=($_POST['name2']+$_POST['name3']+$_POST['name4'])/3;echo"$ave<br>";if($ave==75){echo "passing";}elseif($ave>76){echo "passed";}elseecho "failed";?><br><input type=submit value=compute></body></html><html> <title>grades</title> <body bgcolor=red> <form method=post> <?php echo"<table><tr><td>Name:</td><td>prelim grade</td><td>midterm grade</td><td>final grade</td><td>equivalent</td><td>Remarks</td></tr><tr><td><input type=text name=name1></td> <td><input type=text name=name2></td><td><input type=text name=name3></td><td><input type=text name=name4></td><td><input type=text name=name5></td><tr><td>"; $sub1=$_POST['name2']; $sub2=$_POST['name3']; $sub3=$_POST['name4']; $ave=($sub1+$sub2+$sub3)/3; echo"$ave<br>"; if($ave==75){ echo "passing"; … | |
Hi everyone, I've a problem while doing Hide\show a div(a element) in InternetExplorer. i.e for changing the style of a div -- display : block; | display : none; Show and Hide using display property as block and none works fine in FireFox. But not in IE. How can i … | |
hi everyone, I have designed a web site which works fine in local server. but when i upload it on to server i get this problem, which really annoying me :@ I'm getting this warning, Warning: Cannot modify header information - headers already sent by (output started at C:\...\...\Domain.com\login.php:6) in … | |
hi, i'm new to php... i have created a login page -- login.html, where user can enter username & password. when they submit the form, leads to a validation page -- login.php if login succes it forwards to 3rd page. Suppose if it fails, then again redirects to login.html where … | |
Re: [CODE]move_uploaded_file($uploadedfile, 'nw imgs/' .$_FILES['passfoto']['name']);[[/CODE] try this... | |
Re: [CODE]<?php $host="localhost"; // Host name $username="root"; // Mysql username $password="brijpuja1"; // Mysql password $db_name="puresearch"; // Database name $tbl_name="ps_users"; // Table name $username=$_POST['username']; $oldpass=$_POST['oldpass']; $newpass=$_POST['newpass']; $conpass=$_POST['confirmpass']; $encry_oldpass=md5($oldpass); //encrypting old password /* Test OK echo $username; echo "<br />"; echo $oldpass; echo "<br />"; echo $encry_oldpass; echo "<br />"; die(); */ $con=mysql_connect("$host","$username","$password"); … | |
Now code looks like this... [COLOR="Red"][B]No links(page navigaton links) working...[/B][/COLOR] i think(not sure) problem @ line no 55, 66 & 77...(query part of URL). [CODE]<?php //CONNECTION TO DATABASE! $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="accounts"; // Database name $tbl_name="login"; // Table name $tbl1_name="details"; // … | |
i'm getting warning in all pages where i used session function... warnings are displayed before redirecting to the page... some help to solve this... here the warning message, [COLOR="Red"]Warning:[/COLOR] session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\vhosts\agamudaiyarsalem.com\httpdocs\profile edit.php:2) in C:\Inetpub\vhosts\agamudaiyarsalem.com\httpdocs\profile edit.php on line … | |
[CODE] <?php //CONNECTION TO DATABASE! $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="accounts"; // Database name $tbl_name="login"; // Table name $tbl1_name="details"; // Table1 name $con=mysql_connect("$host","$username","$password"); mysql_select_db("$db_name",$con); $show_all=$_POST['rg01']; // Show All //echo $show_all; if($show_all!="") { $sql="SELECT * FROM $tbl1_name WHERE sex='$show_all'"; $result=mysql_query($sql); } else { echo … | |
hi to all, this might be very simple, but i don;t know how to get correct output, someone help me to complete it... [B]1st i need to get result from this query[/B] [CODE]$sql="SELECT * FROM $tbl1_name WHERE sex='$show_all'"; $result=mysql_query($sql); [/CODE] this'll result either all the boys or all the girls; … | |
Hi to all, page1 -- login page page2 -- secured page 1 [COLOR="Green"] No Problem[/COLOR], If user logged out successfully using logout button. session ends and doesn't allow user to go to secured pages. But... [COLOR="Red"]Problem[/COLOR], if user press backspace or back button in browser staying in page2, directed to … | |
hi to all, i need help from you all... i need to search in database and to display the match records, say if search results are 28 in number then i need to show 5records/page (like this records 1-5 in page1, 6-10 in page2.......26-28 in page6) with some options like … | |
hi i'm using [B]wamp server 2.0[/B] in that, php version 5.3.0 MySQL version 5.1.36 PhpMyadmin 3.2.0.1 MySQL client version: mysqlnd 5.0.5 while uploading my files on to server (plesk control panel) there i have these... [B]Local host[/B] MySQL version: 5.0.45-community-nt Protocol version: 10 Server: localhost via TCP/IP User: username@localhost [B]PhpMyAdmin[/B] … | |
hi, i'm using menu for displaying birth month of user... i hav added 12 entries denoting 12 months of a year. items and thier values are... Item Value Jan 1 Feb 2 ... . ... . Nov 11 Dec 12 the values are stored in Database. Problem is viewing the … | |
hi, i'm using php 5.3. version for my site development. If i use this function "session_is_registred()", i' getting message something like warning(not actual warning message) as following "Function session_is_registered() is deprecated in c:/.../.php" how can i erodicate this message? help to accomplish it... Thnx... | |
hai, i have a database file in mysql file extension, anyone help me how to upload the database to server. Thanks | |
hi 2 all, i'm very new to this php world... if any1 can solve my prblm, help me...! an image was successfully uploaded in desiered DIRECTORY in server... i wish to resize the images which uploaded image... i couldnt found php code to do RESIZE... Thnx in advance... | |
how to retain the values of radio buttons back from databese? for example, if user provided with 3 options (red, blue & green) if a user selected green(the value is stored in database) then next time he/she returning to the same page, previously selected option green radio button need to … |
The End.