Search found 44 matches
- Mon Jun 02, 2014 2:02 am
- Forum: PHP coding => General
- Topic: How to show a name according to the time?
- Replies: 1
- Views: 799
Re: How to show a name according to the time?
First create a table CREATE TABLE `yourtable` ( `time` VARCHAR(100) NOT NULL, `module` LONGTEXT NOT NULL ) COLLATE='latin1_swedish_ci' ENGINE=MyISAM; then insert modules as per your requirements with time INSERT INTO `yourtable` (`time`,`module`) VALUES ('09:00', 'Rock n '), ('14:00', 'Rock n '); th...
- Sat May 31, 2014 10:59 pm
- Forum: PHP coding => General
- Topic: Attendance system in php
- Replies: 0
- Views: 692
Re: Attendance system in php
<? function insert_data($num) { //////////////function 6 if($num>0){ $ins=0; $str=""; while($ins<$num){ $ins=$ins+1; if ($_POST ['roll_no'.$ins]) { if(mysql_query("insert into table(roll_no) values ('" .$_POST ['roll_no'.$ins]."')") or die("the eror ".mysql_error())); } } } } if ($_POST ['b_submit']...
- Sat May 31, 2014 10:51 pm
- Forum: PHP coding => General
- Topic: Advice needed Please
- Replies: 0
- Views: 785
Re: Advice needed Please
No problem at all. I will get the page done. I would send you the attachment of the pages if you would like.Do confirm
- Sat May 31, 2014 10:50 pm
- Forum: mySQL & php coding
- Topic: can't get my head round simple if statement..
- Replies: 0
- Views: 869
Re: can't get my head round simple if statement..
if ($hitcount=="0") echo "How are you";else echo "HI";
Do it like this. Any problem,do revert.
Developerahusain
Do it like this. Any problem,do revert.
Developerahusain
- Sat May 31, 2014 10:45 pm
- Forum: PHP General
- Topic: Unableto add in PHP
- Replies: 2
- Views: 823
Re: Unableto add in PHP
Instead of Print %total,you use echo $total.That would be more ideal.
Developerahusain
Developerahusain
- Sat May 31, 2014 8:53 pm
- Forum: PHP coding => General
- Topic: How to show a name according to the time?
- Replies: 1
- Views: 799
Re: How to show a name according to the time?
Would you like to do it through mysql db.It will be the easiest one.If you like to do it through mysql.I will give you the code for it.Pretty easy friend,no problem
developerahusain
developerahusain
- Sat May 24, 2014 9:28 pm
- Forum: PHP Jobs
- Topic: PHP script
- Replies: 0
- Views: 966
Re: PHP script
You give me the inputs, i will get the script done.
- Sat May 24, 2014 7:03 am
- Forum: PHP coding => General
- Topic: Help with php on my site
- Replies: 0
- Views: 3387
Re: Help with php on my site
You do it like this. When you choose credit mode. You generate a session like this. <? //php ?> if ($_POST ['b_submit']) { $_SESSION ['credit']="Yes"; } ?> <? //form,do as you want,just a example ?> <form name="asdf" method="post"><input type="submit" class="style_form" name="b_submit" value="Credit...
- Sun Sep 29, 2013 9:38 pm
- Forum: PHP Scripts
- Topic: Input form and assign new URL to variable
- Replies: 1
- Views: 1683
Re: Input form and assign new URL to variable
This is simple here is the code <? if ($_POST ['b_submit']) { echo "<script language='javascript'>window.location='http://www.yellowpages.vn/vn/q5551/".$_POST ['inp']."'</script>"; } ?> <form name="asdf" method="post"> <input type="text" name="inp"><input type="submit" name="b_submit" value="Submit"...
- Thu Jul 25, 2013 6:18 am
- Forum: mySQL & php coding
- Topic: Error INSERT (Mysqli object oriented )
- Replies: 1
- Views: 1340
Re: Error INSERT (Mysqli object oriented )
this is my tried and tested code. You can modify it as per your requirements if(mysql_query("insert into test_database.f0001_name(mn,en,Title,Fullname,Fname,Lname,Mname,Oname) values ('" .$_SESSION['mn']."','".$_SESSION['en']."','".$titel."', '".$_POST['txtfullname']."','".$_POST['txtfirstname']."',...
- Wed Jul 10, 2013 9:23 am
- Forum: mySQL & php coding
- Topic: Not Inserting Record
- Replies: 3
- Views: 1322
Re: Not Inserting Record
This is the query i'm using for inserting records. if(mysql_query("insert into job_titles(super_category,category,sub_category) values ('" .$_POST['super_cats']."','".$category."','".$sub_category."')") or die("the eror ".mysql_error())) ; Modify the query as per your requirements. Developerahusain
- Wed Jul 10, 2013 7:15 am
- Forum: PHP coding => Mail
- Topic: creating email account using php script
- Replies: 0
- Views: 997
creating email account using php script
Hi friends. It has been a while since i have logged into php forum. I was into serious developing for few weeks. That's why i could not really regularly visit this site. I have a problem now. Do any of guys know how to create a email account in plesk using a php form. If anybody knows, please do rev...
- Wed Jun 12, 2013 11:41 pm
- Forum: PHP General
- Topic: Force view pdf in gDocs viewer or iframe
- Replies: 0
- Views: 1184
Re: Force view pdf in gDocs viewer or iframe
its very easy.
use iframe like this
<iframe src="yourpage.pdf" scrolling="yes" height="500" width="800" frameborder="0"></iframe>
developerahusain
use iframe like this
<iframe src="yourpage.pdf" scrolling="yes" height="500" width="800" frameborder="0"></iframe>
developerahusain
- Wed Jun 12, 2013 5:13 am
- Forum: PHP coding => General
- Topic: Simple script change help needed for novice
- Replies: 0
- Views: 823
Re: Simple script change help needed for novice
do it like this.
<?
$text_line = explode(" ","Dave simply");
$firstname=$text_line [0];
$lastname=$text_line [1];
echo $firstname." ".$lastname;
?>
developerahusain
<?
$text_line = explode(" ","Dave simply");
$firstname=$text_line [0];
$lastname=$text_line [1];
echo $firstname." ".$lastname;
?>
developerahusain
- Tue Jun 11, 2013 8:49 am
- Forum: Server installation and configuration
- Topic: Vertrigo port 80
- Replies: 1
- Views: 2802
Re: Vertrigo port 80
are you using skype. Because skype runs on port 80 default. If it is open you close it and restart vertrigo server again
- Tue Jun 11, 2013 8:45 am
- Forum: PHP coding => General
- Topic: using single and double quotoes
- Replies: 11
- Views: 2343
Re: using single and double quotoes
Try the above code rashatanda.But i would suggest you to use my below code using braces. echoing result using quotes is probably a difficult deal. So one day i worked on the code and found an easy way to do it. Here is the code <? $quer1=mysql_query("select distinct group_name,gid from cr_menu_inven...
- Tue Jun 11, 2013 8:21 am
- Forum: PHP coding => General
- Topic: using single and double quotoes
- Replies: 11
- Views: 2343
Re: using single and double quotoes
here is my working code.You modify it as per your requirements <? $quer1=mysql_query("select distinct group_name,gid from cr_menu_inventor where gid='1' "); while($resul=mysql_fetch_array($quer1)) { echo "<table width='135' cellpadding='0' cellspacing='0'><tr valign='top'> <td width='135' valign='to...
- Mon Jun 10, 2013 8:42 pm
- Forum: PHP coding => General
- Topic: using single and double quotoes
- Replies: 11
- Views: 2343
Re: using single and double quotoes
here is the working code rashatanda.I have tested on my localhost.You do try and let me know of the outcome.
echo "<li><a href=\"content.php?subj=" . urlencode($subject['id']) . "\">".$subject['menu_name']."</a></li>";
developerahusain
echo "<li><a href=\"content.php?subj=" . urlencode($subject['id']) . "\">".$subject['menu_name']."</a></li>";
developerahusain
- Mon Jun 10, 2013 9:21 am
- Forum: PHP coding => General
- Topic: using single and double quotoes
- Replies: 11
- Views: 2343
Re: using single and double quotoes
I have corrected the problem. here is the revised code.Actually you put ' instead of " in the ending quote. You know ending and beginning quotes should be same. It can be either " or ' but it should be same. echo "<li><a href=\"content.php?subj=" . urlencode($subject["id"]) . "\">{$subject["menu_nam...
- Sun Jun 09, 2013 9:58 pm
- Forum: PHP coding => General
- Topic: Session problems
- Replies: 15
- Views: 4962
Re: Session problems
I understand your requirements rocky. Because i'm also a developer. I have kept the form action alive just as you said and i modified the script for it. I have tested this. It printed out the session.After checking you can build, modify the code for your use. <? if ($_POST ['b_test']) { $_SESSION['t...
- Sun Jun 09, 2013 2:03 am
- Forum: PHP coding => General
- Topic: Session problems
- Replies: 15
- Views: 4962
Re: Session problems
Here is the code rocky.This will definitely print the test session. test this code first without any editing.Then you can modify it as per your requirements. if ($_POST ['test_submit']) { $_SESSION ['test']=$_POST['VID']; echo "<script language='javascript'>window.location='?'</script>"; } $display_...
- Sat Jun 08, 2013 4:38 am
- Forum: PHP coding => General
- Topic: shopping cart help
- Replies: 0
- Views: 1883
Re: shopping cart help
firstly this line has the problem $conn = mysql_connect("localhost", "root", ""); There is no password in it. If there is no password then it cannot connect the db.Correct this and if problem persists,please do take the screensheet of the error you are viewing and send it to me. I will resolve your ...
- Sat Jun 08, 2013 4:28 am
- Forum: PHP coding => Mail
- Topic: Multi Receipt mail script is not working.
- Replies: 0
- Views: 1191
Re: Multi Receipt mail script is not working.
Here is the entire code i'm using for sending multi receipt mail //you should do it like this to send multiple mails $to ="pradeep@hotmail.com,pradeep@gmail.com"; $subject ='Job Opportunity @ m`brace'; $message ='<head> <title>Untitled Document</title> <link href="../include/css/style.css" rel="styl...
- Sat Jun 08, 2013 3:31 am
- Forum: mySQL & php coding
- Topic: Copying Items from one table to another
- Replies: 6
- Views: 2163
Re: Copying Items from one table to another
You are welcome mike.I'm also happy to help you
Developerahusain
Developerahusain
- Fri Jun 07, 2013 8:54 pm
- Forum: mySQL & php coding
- Topic: Copying Items from one table to another
- Replies: 6
- Views: 2163
Re: Copying Items from one table to another
Here is the exact code i'm using for my purpose <? $quer5=mysql_query("select * from dump_submission"); while($resul5=mysql_fetch_array($quer5)) { $row3=mysql_fetch_array (mysql_query ("select * from dump3 where fname='".$resul5 ['name']."'")); if ($row3 ['fname']) { //insert query goes here } else ...