Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
20% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for lastgame2007

//time Am $a=$_POST[am]; $a1=$_POST[am_min]; $tmeAm=$a.':'.$a1; //time AM //time Pm $p=$_POST['pm']; $p5=$_POST['pm_mins']; $s=':'; $times=$p.':'.$p5; $ttime=$tmeAm.'-'.$times; //days $days=$_POST['days']; for($i=0;$i<count($days);$i++) $dd=$days[$i]; mysql_query("insert into tc_handle set sid='$_POST[ass]', sub_id='$_POST[lvl]', secid='$_POST[secs]', section='$g_sec[name]', year='$g_sub[year]', code='$g_sub[code]', date='$cur', acad_id='$now[acad_id]', time='$ttime',room='$_POST[rm]', ** days='$dd'-------------------------- having problem here, it only saves the last checkbox in my form, why is it???** ")or die …

Member Avatar for blocblue
0
98
Member Avatar for lastgame2007

can anyone take alook at my code, i dont get errors or anything but it doesnt save in my db??? please ... thanks! <?php if(isset($_POST[save])) { //student,grade,section,subject $ids=$_POST['id']; $grades=$_POST['fg']; $secs=$_POST['secs']; $subs=$_POST['subs']; $yirs=$g_year['acad_id']; debug($_POST); if(isset($_POST['save'])) { unset($_POST['save']); $i = count($_POST['id']); $x = 0; for($x=0; $x <$i;$x++){ foreach($_POST as $data =>$d){ echo …

Member Avatar for pzuurveen
0
150
Member Avatar for lastgame2007

Hi, can anyone give me a idea on how, to create a AUTO GENERATED ID, example is. SCHOOLNAME001 something like this, how may i be able to create this kind? in which the 1 will autoincrement after every new students will be enrolled...

Member Avatar for pritaeas
0
53
Member Avatar for lastgame2007

can anyone help me what is the problem .. here is the situation, there is USER1 logged in name ex JAMES a student, and on the other hand the admin updates the other student in his account,, why is it the current logged in replaced the updated one... ? this …

Member Avatar for lastgame2007
0
69
Member Avatar for lastgame2007

Hi i'am try to insert multiple data on a single submit, but i'm a total noob to Arrays, can any one help me out here... one of the members send me this out, but still i can figure it out how to insert the fields onto my database. it inserts …

Member Avatar for lastgame2007
0
128
Member Avatar for lastgame2007

i have this recommendation that, the teacher can add continuously how can i do this? in which the teacher can add grade and on single button it can be all saved in one database [url]http://www.4shared.com/photo/TjiwnmxX/aaa.html?refurl=d1forum[/url] [CODE] <?php if(isset($_POST['save'])) { $g_year['acad_id']; $fg=$_POST['fg']; $sg=$_POST['sg']; $tg=$_POST['tg']; $forg=$_POST['forg']; for($i=0;$i<count($fg) && $i<count($sg) && $i<count($tg) && …

Member Avatar for diafol
0
97
Member Avatar for lastgame2007

<br /><b>Warning</b>: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. …

Member Avatar for diafol
0
79
Member Avatar for lastgame2007

i want to generate a student id, this is my code it is saving but, no output in dB. [CODE] $yr=date('Y'); $id=mysql_insert_id();--auto_increment $b="MATH"."$yr"."$id"; $a=$_POST['b']; MATH201201 -- i want my output to be this, [/CODE]

Member Avatar for diafol
0
228
Member Avatar for lastgame2007

help, i cant update my image i cant use session because,its admin who is providing the profile of the student, kindly take a look, what went wrong! [CODE] <?php $pic= $_FILES["piksur"]["name"]; if(isset($_POST['submit'])) { mysql_query("update students set idno='$_POST[id]', year='$_POST[year]', lastname='$_POST[lname]', firstname='$_POST[fname]', middlename='$_POST[mname]', birthplace='$_POST[bplace]', birthdate='$_POST[bdate]', religion='$_POST[religion]', studentcontact='$_POST[scontact]', studentaddress='$_POST[saddress]', father='$_POST[father]', fathercontact='$_POST[fatcon]', mother='$_POST[mother]', mothercontact='$_POST[motcon]', …

0
68
Member Avatar for lastgame2007

please take a look at my code, what i want to happen is this, 1st, i want to pass the ID of the selected student from the other page, which can be updated or removed in the process... which i can't , do it.. anyone can help me with this! …

Member Avatar for diafol
0
132
Member Avatar for lastgame2007

im having problem with my this, what i want to happen is when i submit, i want to save those records from 2 diffrent table's from my db, but it wont save? have you seen any problem with my code? thanks! [CODE] <?php include("connect.php"); if(isset($_POST['submit'])) { mysql_query("insert into tblgrading set …

Member Avatar for phorce
0
90
Member Avatar for lastgame2007

im having problem saving a FILE, i doesn't save the extension name of the file and doesn't save also the images in my folder..? can you kindly look , what is my problem with my FILE code? only in FILE SAVE, i dont have errors in my other fields. [ICODE] …

Member Avatar for diafol
0
94
Member Avatar for lastgame2007

im trying to concatinate my birthdate dropdown MM,DD,YY in Textbox.. it wont save, please help me with my code.... [CODE] <p class="studmen">Birthdate<input name="bdate" type="text" value="<?php echo $bday=$mm.$dd.$yy;?>"/> <select name="<?php $mm;?>"> <option value=""></option> <option>Jan</option> </select> <select name="<?php $dd;?>" > <option value=""></option> <option>1</option> </select> <select name="<?php $yy;?>"> <option value="" ></option> <option>1990</option> [/CODE]

Member Avatar for diafol
0
54
Member Avatar for lastgame2007

[CODE] Default Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2 Pa help sa update code ko po, na-uupdate niya kasi lahat ng nasa tables ko. ano po problem sa query? Here's my code for my update, the problem is when i submit, it updates all …

Member Avatar for simplypixie
0
104
Member Avatar for lastgame2007

need help, is it possible to save DATA from different table, in just one SUBMIT?? what is the query, or how is it? i cant find a TAB, for it... anyone can help me..?

Member Avatar for cereal
0
49
Member Avatar for lastgame2007

anyone can help me with this error what does it do? im working on with my LOGIN script, and when i tried to run the script. what does it mean? anyone, thanks!:) Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\MEA\connect.php:7) in C:\xampp\htdocs\MEA\testlog.php on line …

Member Avatar for pritaeas
0
123
Member Avatar for lastgame2007

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: mysql_num_rows() expects parameter 1 to be resource, …

Member Avatar for faroukmuhammad
0
124
Member Avatar for lastgame2007

it doesn't have any error but also i does not update in my database? [CODE]<head> </head> <?php include('connect.php');?> <body> <?php mysql_select_db("dbusers",$connection); $result=mysql_query("UPDATE tblinfo SET idno='$idno', name='$name', address='$address', birthdate='$birthdate', contact='$contact', email='$email' WHERE 'index'='$id'"); $result = mysql_query($update) ?> </body> </html> [/CODE]

Member Avatar for kurtopia
0
326
Member Avatar for lastgame2007

it doesn't have any error but also i doesn't update in my database? <head> </head> <?php include('connect.php');?> <body> <?php mysql_select_db("dbusers",$connection); $result=mysql_query("UPDATE tblinfo SET idno='$idno', name='$name', address='$address', birthdate='$birthdate', contact='$contact', email='$email' WHERE 'index'='$id'"); $result = mysql_query($update) ?> </body> </html>

Member Avatar for faroukmuhammad
0
138