Importing .csv row errors
Hi, I have a problem with importing .csv file. The content of file have some rows with invalid culomn number. Can I skip rows with this error? My code is: <?php $addauto = 1; $delimiter = ';';...
View ArticleDropdown option in function
I am in the process of converting a widget plugin where the user inputs the settings via the widget page to where the user inputs the settings via an admin page. Everything is working fine, apart from...
View ArticleHow to remove duplicate column names?
Currently I have a table storing additional information. Each record can have multiple entries. I am able to retrieve all the entries for a specific record and display them on screen although the...
View ArticleExpected string for form validation
Hey, I have created a contact us form which works nicely with my site, however I have some backup PHP validation code, which all works apart from the last name section, how can I set it up to it checks...
View ArticleTrying to find a simple PHP ReST Tutorial
I'm quite good at PHP but I thought it was time to learn this ReST thing people are talking about. As of right now I've got a web application written entirely in PHP and has a MySQL database full...
View Articleinteger division turns out a boolean value
Hi Guys, I really have a problem with dividing 2 integer values. For some reason the value that saves the value of the divison turns into a boolean and not result is given. function Probe_Average...
View ArticleUsing a css file with MVC
So im still playing around with this MVC stuff think im starting to understand/get the hang of it! The issue im currently having is getting the CSS file to work! I have my header and footer in their...
View ArticlePCRE regex question for pw
I'm building a regex for password control. I'm trying to have the passwords have at least: 1 small letter, 1 capital letter, 1 number, and 1 special character, while having between 8 and 20 characters...
View Articletime issues
I am trying to show active users with in the last 5 mins. <?php error_reporting(E_ALL); include ("/home/jayden1/database_access/dblogincheck.php"); $d=date('c',time()-5*60);//last 5 minutes echo $d;...
View Articlehide url download path
I want people to download some of my files i have but i dont want them to know the path to all the files for example i have this right now <a href='files/filename.php' download>Download</a>...
View ArticleHandling Dates in Mysql BETWEEN AND
Hello, I am trying to query my mysql database to return data based on a date range set. here is the code that is returning an empty set. The format is accepeted but will never return anything....
View Article2 DOMDocument Questions
Hi i'm new to PHP and the forum. I am working on a email script. In it I am using the following to highlight any Input values the user forgot to fill in. $html = file_get_contents("page.html");...
View Article$_GET array returns empty value
whwn i tried to print $_GET array it does not print anything while i am sending p_id through URL.Why it is so...... <?php $conn=mysql_connect("localhost","root","")or die(mysql_error());...
View Articlephp and Javascript not working correctly
Hi there I am new to php. I manage 4 website for my company and I have a problem with a php page that has javascript in it The same page is on 3 of my websites and on 2 of them they display correctly....
View ArticleRegistration form sucess result
Hi, I dont know if this is a wrong category to post. I have a registration form in my website. I need a overlay popup after the sucessfull registration process. Can someone help me. Thanks in...
View ArticleHaving issues with my wordpress site
i want help on why is my on-line store not showing my product image and info properly on my wordpress site. the images and the info of the product except for the price. just help me check the site to...
View ArticleFind a minumum value from an xml doc
Hi Guys, I have an xml document wich I can view as xml or put into an array. I need to parse the xml data to find the minimum SLevel value, displaying on the page that value itself and the company...
View ArticleNew GD image syntax for "convert"
Anyone knows how to change the code posted above to work on server wit PHP 5.3. ? elseif (isset($_POST['todoaction']) && $_POST['todoaction'] == 'save') { $original = 'o_'.$_POST['slika'];...
View ArticlePHP class to include content in Div
I have created a class to build up the content in my page. I want to use this a broad as possible. Where I run into, is how to enclose certain content within (for example) a div, without the need for...
View Articleinstagram integration error
This code I had worked perfectly before but now I get an error as seen on http://www.sentuamessage.com <?php function fetch_data($url){ $ch = curl_init(); curl_setopt($ch,...
View Article