Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~260 People Reached
Favorite Forums
Favorite Tags
php x 10
Member Avatar for sameeya007

in the $admission_id few numbers are available as array,i got those array numbers one by one by using explode function.after that i put those numbers one by one to a query using for loop.that i wanted to know the way i put into a query is correct. specially the variable …

Member Avatar for nonshatter
0
46
Member Avatar for sameeya007

$grade=$_POST["grade"]; $stream=$_POST["stream"]; $a=='A'; $query="delete * from class where grade_id='$grade' and stream='$stream' and class_name='$a'"; $result=mysql_query($query); if($stream==null)( [COLOR="Red"]$query1="insert into class values(null,'$a','$grade','null')";[/COLOR] $result=mysql_query($query1); }else( $query1="insert into class values(null,'$a','$grade','$stream')"; $result=mysql_query($query1); ) in this code runs .the code which color in red is occur error . please someone can tell me the reason for that?

Member Avatar for sameeya007
0
84
Member Avatar for sameeya007

think there are 3 selecting box in web site.1st one is jump menu and other 2 are select menu.usually jump menu what happen is when we select some thing from that it jump to another page or some where..i wanted to know .when i select some value on jump menu …

Member Avatar for sameeya007
0
36
Member Avatar for sameeya007

for($y=1;$y<=$x;$y++){ $query="insert into attendance values('$admission_no[$y]','$date','$state_id')"; $result=mysql_query($query); }

Member Avatar for paulrajj
0
94