39,393 Topics

Member Avatar for
Member Avatar for AntonyRayan

Hi, I do not know about this. In a table I have from_date and to_date only. I will pass two dates to compare from_date and to_date . I want all the dates with day in between two days. My query is SELECT * FROM tbl_name WHERE fromdate>='2015-11-01' AND todate <='2015-11-30' …

Member Avatar for pritaeas
0
164
Member Avatar for Natsu123

Hi guys, I really need your help. I am Programming an app where a teacher logs in with a username and password. After the login a new Fragment in the app opens where the Teacher see all his students in a ListView. To Login I only type the username and …

Member Avatar for Natsu123
0
359
Member Avatar for abhi10kumar

I am new in Symfony2. I am trying to get result from a drop-down using ajax and symfony; I did all the settings as it is which is mentioned in the documentation provided. But I am getting **POST http://localhost/docCMS/web/app_dev.php/getclientaddress/13 500 Internal Server Error** DefaultController.php /** * @Route("/getclientaddress/{id}", name="get_client_address", options={"expose"=true}) * …

0
137
Member Avatar for James_43

Hi all, I have a fairly limited understanding of how objects work exactly, but basically I have: `$response[] = $html->data->identifier;` Which I would think stored the values as an array, but when I try to add something to that array with: `$response[] = array('quantity' => $itemsinfo['qty']);` I get the error …

Member Avatar for paulkd
0
263
Member Avatar for shany0786

i am facing small problem, i am not very good with ajax.what i want to check is email avaliblity through ajax and show no or yes.png code: <script type="text/javascript"> $(document).ready(function(){ $("#email_id").keyup(function(){ if($("#email_id").val().length >= 4) { $.ajax({ type: "POST", url: "<?php echo base_url();?>Traveller/email_is_taken", data: "email_id="+$("#email_id").val(), success: function(msg){ if(msg=="true") { $("#email_verify").css({ "background-image": …

Member Avatar for mangel.murti
0
247
Member Avatar for James_43

Hi all, So I've never really understood the php mail function, but I've tried to set up msmtp after failing a bit with postfix. The problem I get now is when I go to send an email I get an error "unpexted TLS packed recieved". My account conf is: account …

0
105
Member Avatar for UK-1991

Hello, I am confused about the php there is used to include a file like headers footers functions etc etc so I would like to ask what is the difference between the followings: require_once(); require(); include(); include_once(); Thank You

Member Avatar for Taywin
0
201
Member Avatar for pilucho

in all pages will code with "session_start ();" but does not display all the information, as "First name, Last name" But if the user is connected, and when browsing pages, only shows the nick, and the other names disappear on the first page to connect, if it shows all the …

Member Avatar for pilucho
0
281
Member Avatar for hell hansen

Hi guys! I need help with meta tags on my website! Look on all intire website i have more then 20 pages, and im using only one head.php and footer.php files. So i want to have a meta tags for each page, without dupicating the head.php, and i'm really struggling. …

Member Avatar for hell hansen
0
501
Member Avatar for PerplexedB

I cannot find anything in phpExcel documentation. What I would like is to end up with an associative array with keys from the first row in the excel worksheet. It's something that can be done of course, but is there a native method?

Member Avatar for Martin_10
0
2K
Member Avatar for bilal.saim

I am using facebook api with php. My program takes posts' message and show on the page. If the post type is photo or normal text and there is a link inside to message, it not show like a clickable or I can not understand it is link or not. …

0
92
Member Avatar for sasankasekhar2003

I am in the process of developing a web application with a "question - answer" session in PHP and MySQL. This is more like a forum, where the user asks questions and a dedicated expert answers the questions. I am trying to implement the following feature: * When a user …

Member Avatar for overwraith
0
185
Member Avatar for gentlemedia

Sorry for the vague title, but I'm using a PHP snippet on a WooCommerce shop which shows the difference between an old price and a new price (sale price) in a percentage bubble on the page. The thing is it shows also percentages with decimals behind a comma if it's …

Member Avatar for gentlemedia
0
266
Member Avatar for shabbir04

Hello everyone.. this is my php code <div class="content-1 col-sm-12 nopadding"> <div class="list-header col-sm-1">Date</div> <div class="list-header col-sm-2">Product</div> <div class="list-header col-sm-2">Username</div> <div class="list-header col-sm-1">Quantity</div> <div class="list-header col-sm-1">Rate</div> <div class="list-header col-sm-1">Sale Amount</div> <div class="list-header col-sm-1">Payment</div> <div class="list-header col-sm-1">Balance</div> <div class="list-header col-sm-1">Remarks</div> </div> <?php $sql = "SELECT * FROM sale_history order by date …

Member Avatar for diafol
0
248
Member Avatar for shany0786

I am have debugging some javascript code in firebug,then i have seen some strange POST thing in firebug this is worrying me? I have registration form when i reload page i see in firebug following "POST http://api.adsrun.net/post" Response Header Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection keep-alive Content-Type application/json Date …

0
195
Member Avatar for janicemurby

Hi i have got multiple check box working in test file but when i try and put it and check box all i get is array i put this bit in profile.php $length = count($interests); for ($i = 0; $i < $length; $i++){ echo $interests[$i]; echo ' '; } ?> in …

Member Avatar for minitauros
0
265
Member Avatar for Sajjad_1

i want to set a default value of option box and that value is fetch from database. here is my code it works fine with number but my month are given in alphabetical order like "Jan","Feb".. here is the code I try <?php $month=array("Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"); foreach($month as $m) { printf('<option value="%d"%s>%d</option>', …

Member Avatar for diafol
0
215
Member Avatar for shany0786

i am stuck at one problem where i have two radio buttons "yes" and "no" by default yes is checked and below these radio buttons there are 3 drop downs for country,state,cities and two text fields.no what i want is when user select "no" radio button all these 3 dropdowns …

Member Avatar for gentlemedia
0
347
Member Avatar for jeffersonalomia

Does php copy() function can convert a certain file format, let say for example file.pptx convert to file.odp, is it possible?

Member Avatar for cereal
0
722
Member Avatar for AntonyRayan

Hi, here I included my code to find no of working days between two years. But in leap year I do not know how to find the working days. Can anyone help me? function calculate($month,$year) { $Start_Date="1/".$month."/".$year.""; $myTime = strtotime($Start_Date); // Use whatever date format you want $daysInMonth = cal_days_in_month(CAL_GREGORIAN, …

Member Avatar for diafol
0
356
Member Avatar for janicemurby

hi im attempting to add a multiple checkbox with a few options see html code <form method="post"> <table width="900"> <tbody> <tr> <td width="900"><input name="interests[]" id="option1" value="option1" type="checkbox">option1</td> <td width="900"><input name="interests[]" id="option2" value="option2" type="checkbox">option2</td> <td width="900"><input name="interests[]" id="option3" value="option3" type="checkbox">option3</td> </tr> <tr> <td><input name="interests[]" id="option4" value="option4" type="checkbox">option4</td> <td><input name="interests[]" id="option5" value="option5" …

Member Avatar for cereal
0
317
Member Avatar for SimonIoa

Hello i want to retrieve only one row from an mysqli statement. The catch is that i use the `$row=mysqli_fetch_array` in a `while()` to loop the data. But i need a row to run as variable before the while begins This is what i mean $query=mysqli_query($db,"SELECT a_id,a_title,a_desc,a_url,a_img,a_uid,a_times FROM table WHERE …

Member Avatar for SimonIoa
0
650
Member Avatar for davidbcn

how to send mails individually instead of sending to all recipients together? my code is: function SendMail($msg,$subject,$addresses) { require "class.phpmailer.php"; //Fetch from email here foreach($addresses as $key=>$val){ $email = test_input($val); if((trim($email)=='') || (!filter_var($email, FILTER_VALIDATE_EMAIL))){ unset($addresses[$key]); } } $addresses=array_unique($addresses); $row = FetchAllsettingsCustomMailchmp(); //end fetch $mail = new PHPMailer(); $mail->PluginDir = ""; …

0
310
Member Avatar for jeffersonalomia

I try to upload a .pptx file to my server folder named "lesson" and copy that file from the same folder and rename that copied file with .odp extension. I used ViewerJS plugin and it really work nicely when i open a pdf file. However. my problem is that when …

Member Avatar for jeffersonalomia
0
144
Member Avatar for SimonIoa

Hello, i have a problem. I want to do two things First, explode an array to retrieve the ids from a row on the table e.g. 1,5,23 and then use a variable to call a Mysql statement. Here is my code public function Show($times) { $q=mysqli_query($this->db,"SELECT to_uid_fk FROM table WHERE …

Member Avatar for SimonIoa
0
366
Member Avatar for Thomasio

There´s another post about this, over 3 months old, but there they are dealing with port settings which isn´t the problem, so I´m making a new thread. I send out 50+ emails in a loop via PHPMailer - SMTP. For testing purposes I send them all to myself, so I …

Member Avatar for cereal
0
502
Member Avatar for kavinsac

Hi, I'm Kavin, I guess I've always been a bit geeky. I'm currently working on my first website and learning HTML and CSS. I'm also quite keen on photoshop. I also want to learn PHP, MySQL and video editing at some point, but for now I'm still quite busy with …

Member Avatar for diafol
0
572
Member Avatar for AntonyRayan

Hi, I am new to this concept. Can anyone give me an example and ideas for google map plotting? In a google map, I want to show all the trucks based on latitude and longitude of the trucks. After showing all the trucks,I want to see a particular truck`s report …

Member Avatar for Bill_14
0
273
Member Avatar for James_43

Hi all, I'm very very new when it comes to JavaScript, but I understand it's what I need to solve my problem. Basically, I have a PHP script that takes a while to process (several minutes). This script is linked from my homepage and when the script finishes it redirects …

Member Avatar for James_43
0
11K
Member Avatar for showman13

I am thinking about installing an SSL cert on one of my domains but only want to use it on a few specific pages where people enter their personal information. Before I purchase the wildcard SSL and install it, I wondered if anyone could point out any pitfalls to be …

Member Avatar for jwenting
0
266

The End.