39,323 Topics
| |
Hi every body, i am new in this forum that i find very interessting i have an error notice with one of my function, "Notice: Array to string conversion in C:\wamp\www\waypointhr\components\data_view_join.php on line 118 see below in the line" this error concerns this line: if((string)$row['callback_function']!=='') see the holl function below … | |
<?PHP include('config.php'); function cleanData(&$str) { $str = preg_replace("/\t/", "\\t", $str); $str = preg_replace("/\r?\n/", "\\n", $str); if(strstr($str, '"')) $str = '"' . str_replace('"', '""', $str) . '"'; } // filename for download $filename = "Piante_" . date('Ymd') . ".xls"; header("Content-Disposition: attachment; filename=\"$filename\""); header("Content-Type: application/vnd.ms-excel"); $flag = false; $result = mysql_query("SELECT * … | |
Hello. I have one field on my submission form which is for the User's zip code. Originally I had it set to int(5), but when I submit my form with a five digit zip code it only stores 4 of the characters, omitting the first digit. Example: On the form … | |
I am tring to work out a price with VAT included based on a VAT rate the user enters. I want to display the result in a input box. Can I display the result of this as the user enters the VAT rate and price without clicking a button or … | |
Hello everybody. You might see that many websites such as Facebook recognize your device even after you clear the cookies of your browser, RIGHT? Try to you log in Facebook, then log out and clear the cookies, then re-open the homepage of Facebook. You'll see that the username you used … | |
Hello, I have just attempted to update my database login page to MySQLi and also use prepared statements but upon submitting a form I receive the error "Access denied for user 'admin'@'localhost' (using password: NO)". I have been researching this before posting this here but have only come across sites … | |
I am facing problem for incrementing href id. for example href="#tab1", i want to increment n=6. It will increment like <a href="#tab1" data-toggle="tab">Counselor 1</a> <a href="#tab2" data-toggle="tab">Counselor 2</a> <a href="#tab3" data-toggle="tab">Counselor 3</a> <a href="#tab4" data-toggle="tab">Counselor 4</a> <a href="#tab5" data-toggle="tab">Counselor 5</a> <a href="#tab6" data-toggle="tab">Counselor 6</a> any body help me to increment … | |
$this->db->select('referral1.*, client.*, employee.*'); $this->db->from('client'); $this->db->join('referral1', 'client.referral_id = referral1.referral1_id', 'inner' ); $this->db->join('assign_psychotherapist ', 'assign_psychotherapist.a_referral_id = client.referral_id', 'inner' ); $this->db->join('employee ', 'assign_psychotherapist.a_psychotherapist_id = employee.empid', 'inner' ); $this->db->where("referral_status ='Assigned' OR referral_status ='Accepted' "); $this->db->order_by("referral_date", "desc"); $this->db->select('referral1.*, client.*, volunteer.*'); $this->db->from('client'); $this->db->join('referral1', 'client.referral_id = referral1.referral1_id', 'inner' ); $this->db->join('assignvolunteer', 'assignvolunteer.Vreferralid = client.referral_id', 'inner' ); $this->db->join('volunteer', 'assignvolunteer.Vvolunteerid … | |
Hi I am facing problem for getting difference between hours and miuntes I have two variables $one=9:30 am; $two=6:30 pm; How to get difference in Hours and minutes | |
I need to create a new site in PHP and need to host in cloud. Can anyone say in which DB I can host my site? | |
How to Fetch Data form Sites Like Flipkart,Amazone,Snapdeal And Compare Prices Of Products Form This Ecommerce Websites..? | |
I am facing to dispaly multiple values in another text box this is my code $("#firsttearesult").val(diffHour,diffMins); Any body help me to display both | |
hi there, for the last one week I am deliberately trying to solve my problem. **Pls help me** For your better understanding, Layout of my page is something like this : Part -A -------- [ Dropdown list ] [ TextBox ] [ Table -1 ] Part - B -------- [ … | |
I want to create a form builder in php. But i dont know how to do this, So please help me. Thank you all | |
I have a javascript code showing current time, which i want to store in php variable. The store value in php will then be used in sending through form to an email id. I just want to store the value in php. document.getElementById('time') Any Help/ideas appreciated. <script type="text/javascript"> <!-- function … | |
<?php ob_start(); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); include "admin/include/config.php"; include "temp_config.php"; //session_start(); $tmp = $_SESSION['tmp_id']; $cartsql = mysql_query("SELECT * FROM `cart` WHERE `temp_id` = '$tmp'"); $cartnum = mysql_num_rows($cartsql); // For Check the cart is empty or not... ob_end_flush(); ?> <!DOCtype html> <html lang="en"> <head> … | |
how to translate the message communication with the help of a translator like google translate api | |
I'm using pure php for the moment and I'm having a problem on what to do next using the command `DESCRIBE` calls all the header of my database but I cannot call those datas under the headers I have to manually put it. What I want to know is: * … | |
Here is a PHP class written for PHP4 and PHP5 that will validate email addresses by querying the SMTP (Simple Mail Transfer Protocol) server. This is meant to complement validation of the syntax of the email address, which should be used before validating the email via SMTP, which is more … | |
Good Morning All, I've worn myself out looking for the solution to integrating MailChimp APIs into my PHP scripts. Is there anyone in here that is familiar with doing that? I have the simple part done, where people can subscribe to a Newsletter to get more info, in which case … | |
Okay, this is my first time posting here, so if I'm doing something wrong please let me know. Here's my question: I've got a page full of pets (this is for an online game). The client wants to be able to select multiple pets at once and change the group … | |
I want to create view on my database on free hosting website. I am unable to create views same query if I run on my localhost then it creates view. Is due to some limitation which is causing not to create views on free hosting website | |
Hi I purchased windows hosting for php from Godaddy. But my .htaccess is not support in windows, so i have to use web.config for my redirection and hidding the filename extension. Can anyone please help me to fix the issue. | |
hello everyone, i had to make a new system for practicum student system this is coding for view student that has been registered. first of all sorry fpr the keywprd that you dont understand cause i am Malaysian `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta … | |
With following code I tried to upload image and video file at the same time but, image file is uploading & video file is not uploading <form class="pure-form pure-form-aligned" action="Processor.php" method="post" enctype="multipart/form-data" > <fieldset> <div class="pure-control-group"> <label for="image">Upload image</label> <input type="file" name="image" class="pure-input-1-4" /> </div> <div class="pure-control-group"> <label for="video">Upload video</label> … | |
Hello, I want to check whether one given date range is falling under another range or not. Is there function for this? Because when I am calculating this using To and FROM dates , it is taking efficient. I have to apply separate condition for TO date and FROM date. … | |
i want to create a image gallery,i want to insert multiple files at a time,that should be stored in a database,and i want to display that in my profile.php as a gallery. | |
Hi. I am displaying image dynamically from database, When I click the particular image I want to show that image in a popup or lightbox in a simple way. How to do? | |
Hello, i'm having a little bit of an issue with a portion of code ... It's for a portfolio gallery. $sliders_out = '<div class="fx"><ul class="slides">'; foreach($slides as $slide) { $local = substr(str_replace(array(get_bloginfo('url'), '.jpg', '.png'), array('.', '', ''), $slide['slide_image']), 2); $locals = array_merge(glob($local.'*1024*'), glob($local.'*768*'), glob($local.'*')); rsort($locals); if (isset($locals[0])) $src = $locals[0]; … |
The End.