39,326 Topics
| |
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 … | |
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": … | |
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 … | |
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 | |
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 … | |
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. … | |
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? | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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>', … | |
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 … | |
Does php copy() function can convert a certain file format, let say for example file.pptx convert to file.odp, is it possible? | |
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, … | |
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" … | |
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 … | |
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 = ""; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> I'm getting the error 'Invalid argument supplied for foreach()' when I run this page. Can I not break out of … | |
SO im trying to generate and 8 x 8 table while($a <= 8) { echo "<tr>"; while($b <= 8) { echo "<td> tell me </td>"; $b++; } echo "</tr>"; $a++; } and i cant tell whats wrong | |
Hi, Im working on project right now in webdevelopment. im trying to view a PDF file in a browser which is the filepath was stored in database and the actual file save was in folder inside my webfolder and could retrieve/view by its ID. here's some of my code <?php … |
The End.