Click here to Skip to main content
15,884,473 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questiona block problem Pin
mark_zxy10-Dec-09 16:35
mark_zxy10-Dec-09 16:35 
AnswerRe: a block problem Pin
shawndeprey10-Dec-09 17:12
shawndeprey10-Dec-09 17:12 
GeneralRe: a block problem Pin
mark_zxy10-Dec-09 18:36
mark_zxy10-Dec-09 18:36 
GeneralRe: a block problem Pin
shawndeprey11-Dec-09 1:57
shawndeprey11-Dec-09 1:57 
Questionhow to implement live video streaming for website in ubuntu ? Pin
Mahanthesh8-Dec-09 15:29
Mahanthesh8-Dec-09 15:29 
AnswerRe: how to implement live video streaming for website in ubuntu ? Pin
Mahanthesh8-Dec-09 16:37
Mahanthesh8-Dec-09 16:37 
GeneralRe: how to implement live video streaming for website in ubuntu ? Pin
cjoki9-Dec-09 7:55
cjoki9-Dec-09 7:55 
Questionredirecting to a web page using a loop [modified] Pin
ankitjain11104-Dec-09 22:15
ankitjain11104-Dec-09 22:15 
<script language=JavaScript>
<!--
function check_length(my_form)
{
maxLen = 150; // max number of characters allowed
if (my_form.my_text.value.length >= maxLen) {
// Alert message if maximum limit is reached.
// If required Alert can be removed.
var msg = "You have reached your maximum limit of characters allowed";
alert(msg);
// Reached the Maximum length so trim the textarea
my_form.my_text.value = my_form.my_text.value.substring(0, maxLen);
}
else{ // Maximum length not reached so update the value of my_text counter
my_form.text_num.value = maxLen - my_form.my_text.value.length;}
}
//-->
</script>

<?php
mysql_connect('localhost','eskool','eskool') or die("Table not connected");
mysql_select_db('eskool') or die("Database not connected");
$num=$_POST["numrow"];
$cls=$_POST["cls"];
$sec=$_POST["sec"];
$status=$_POST["status"];
$mon=$_POST["mon"];
$feetype=$_POST["fee"];
//echo $mon;
//echo $feetype;
//echo $cls;
//echo $sec;
//echo $status;
//echo "<form method=post action=http://localhost/eskool/node/253>";
if($status=="Pending"){
$j=0;
for($i=1;$i<=$num;$i++)
{
$che=$_POST["ck$i"];
//echo $che;
if(isset($che))
{
$query=mysql_query("select * from stud_reg where regno='".$che."'") or die("Not Select");
//$query=mysql_query("select contact from stud_reg where class='".$cls."' AND section='".$sec."' AND regno='".$che."'");
$row=mysql_fetch_array($query);
$nam=$row["fstname"].$row["lname"].'.'.$row["initial"];
$cont=$row["contact"];
$query2=mysql_query("select * from `2009` where month='".$mon."' and feetype='".$feetype."' ") or die("Not selected");
$row2=mysql_fetch_array($query2);
$paydat=$row2["paydate"];
//if($i<$num){$str='$cont"\;"';$i++;}
//$str=$str.$cont;
//echo $cont;
//$semi=";";
//if($j!=0){$str=$str.$semi;}
//$j++;
//$str=$str.$cont;
//echo "Message : <input type=text name=msg size=150 value=''>";
//$sms="http://localhost/mobil=";
$sms='http://smsc11.com/corp/SendingSms.jsp?uname=aker&pass=aker&mobile=';
$sms=$sms.$cont;
$msg="&msg=Please+note+that+$feetype+for+your+child+$nam+is+due+on+the+$paydat+-+xyz+school+,+Bangalore";
$send="$sms.$msg";
echo $send;
header( "Location:$send" ) ;}


i am trying for an sms module which sends sms to each selected student. i am tryin with an api from smsc11.com. but the problem which i am facing is once i redirect to that api the loop is not working.it sends for only one student but not for all.can anyone plz throw some light on this.

modified on Saturday, December 5, 2009 4:22 AM

AnswerRe: redirecting to a web page using a loop Pin
ankitjain11104-Dec-09 22:53
ankitjain11104-Dec-09 22:53 
GeneralRe: redirecting to a web page using a loop Pin
cjoki7-Dec-09 7:41
cjoki7-Dec-09 7:41 
Questionhow can I bound execution of sql query on button click action ? Pin
hande5430-Nov-09 7:15
hande5430-Nov-09 7:15 
AnswerRe: how can I bound execution of sql query on button click action ? Pin
cjoki30-Nov-09 7:35
cjoki30-Nov-09 7:35 
AnswerRe: how can I bound execution of sql query on button click action ? Pin
abushahin28-Dec-09 7:35
abushahin28-Dec-09 7:35 
QuestionExtend PHPMyAdmin Token Pin
Marc Firth30-Nov-09 0:42
Marc Firth30-Nov-09 0:42 
AnswerRe: Extend PHPMyAdmin Token Pin
Marc Firth9-Dec-09 23:17
Marc Firth9-Dec-09 23:17 
AnswerRe: Extend PHPMyAdmin Token Pin
kpkammer24-Mar-10 4:59
kpkammer24-Mar-10 4:59 
GeneralRe: Extend PHPMyAdmin Token Pin
Marc Firth7-Apr-10 2:29
Marc Firth7-Apr-10 2:29 
QuestionHow can I send e-mail with gmail account Pin
hande5429-Nov-09 23:34
hande5429-Nov-09 23:34 
AnswerRe: How can I send e-mail with gmail account Pin
Marc Firth30-Nov-09 0:48
Marc Firth30-Nov-09 0:48 
AnswerRe: How can I send e-mail with gmail account Pin
Marc Firth30-Nov-09 0:50
Marc Firth30-Nov-09 0:50 
GeneralRe: How can I send e-mail with gmail account Pin
hande5430-Nov-09 7:07
hande5430-Nov-09 7:07 
Questionopencv in codeblocks - compile error Pin
__erfan__29-Nov-09 21:37
__erfan__29-Nov-09 21:37 
GeneralRe: opencv in codeblocks - compile error Pin
Richard MacCutchan1-Dec-09 2:25
mveRichard MacCutchan1-Dec-09 2:25 
Questionneed a complete and free file manager Pin
Mehdi Ghiasi27-Nov-09 8:43
Mehdi Ghiasi27-Nov-09 8:43 
AnswerRe: need a complete and free file manager Pin
cjoki27-Nov-09 10:36
cjoki27-Nov-09 10:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.