39,323 Topics

Member Avatar for
Member Avatar for afaye

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 …

Member Avatar for broj1
0
264
Member Avatar for bolfescu

<?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 * …

Member Avatar for bolfescu
0
680
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
215
Member Avatar for jonlloydd

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 …

Member Avatar for diafol
0
357
Member Avatar for Hani1991

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 …

Member Avatar for arjani10
0
215
Member Avatar for mattyd

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 …

Member Avatar for diafol
0
839
Member Avatar for ramsiva

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 …

Member Avatar for ramsiva
0
140
Member Avatar for rjgapz

$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 …

Member Avatar for mangel.murti
0
4K
Member Avatar for ramsiva

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

Member Avatar for ramsiva
0
261
Member Avatar for aakashchopra121

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?

Member Avatar for diafol
0
227
Member Avatar for berserk

I am in need of help on this one :( i cannot seem to figure out what i have done wrong, i set up my code just like in teh examples i read and i dont really see anything wrong with the logic (as far as i can tell) but …

Member Avatar for berserk
0
316
Member Avatar for vishal_isharani

How to Fetch Data form Sites Like Flipkart,Amazone,Snapdeal And Compare Prices Of Products Form This Ecommerce Websites..?

Member Avatar for vishal_isharani
0
110
Member Avatar for ramsiva

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

Member Avatar for DaveAmour
0
131
Member Avatar for suneet.pant

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 -------- [ …

Member Avatar for vishal_isharani
0
355
Member Avatar for vishal_isharani

I want to create a form builder in php. But i dont know how to do this, So please help me. Thank you all

Member Avatar for vishal_isharani
0
120
Member Avatar for sandeep.tete

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 …

Member Avatar for JorgeM
0
6K
Member Avatar for Brilliant_1

<?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> …

Member Avatar for DaveAmour
0
295
Member Avatar for kuljit

how to translate the message communication with the help of a translator like google translate api

Member Avatar for kuljit
0
73
Member Avatar for jj.dcruz

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: * …

Member Avatar for jj.dcruz
0
300
Member Avatar for digital-ether

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 …

Member Avatar for lps
0
4K
Member Avatar for showman13

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 …

Member Avatar for showman13
0
707
Member Avatar for KateyB

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 …

Member Avatar for lps
0
248
Member Avatar for Danish_4

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

Member Avatar for JorgeM
0
134
Member Avatar for rpv_sen

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.

Member Avatar for rpv_sen
0
10K
Member Avatar for Fieyzah

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 …

Member Avatar for pritaeas
0
442
Member Avatar for vizz

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> …

Member Avatar for jj.dcruz
0
1K
Member Avatar for Priti_P

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. …

Member Avatar for DaveAmour
0
1K
Member Avatar for shashigowda

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.

Member Avatar for jj.dcruz
0
273
Member Avatar for AntonyRayan

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?

Member Avatar for jj.dcruz
0
139
Member Avatar for Catalin_1

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]; …

Member Avatar for lps
0
178

The End.