Quantcast
Channel: PHP
Browsing latest articles
Browse All 28 View Live

Which PHP IDE do you use?

I thought that this may be a helpful question to kick-start the new PHP section! I'm an occasional PHP coder and I'm primarily using NetBeans (https://netbeans.org/features/php/) at the moment. It's...

View Article



[Help] Chat Box Setup

Hey, Can someone make me this layout exactly? I would really appreciate it! http://oi57.tinypic.com/ra6ou9.jpg Kindest Regards, Stephen Strong [Help] Chat Box Setup

View Article

php mysql javascript issue

Hi everybody! Im newbie to php. please, suppose we have a MYSQL DATABASE with table CUSTOMERS. In the page: addCustomer.php, we echoed this table and it returned us a number of rows. on the same page,...

View Article

Set up python in emacs

I have an infuriating issue. I know that in emacs, you can hit C-c C-z for a python shell. I have done this before (so python is set up right) but I think I made the mistake of typing the quit()...

View Article

Woocommerce Product Add-ons - Auto-select first option

The agency I work for are trying to get a client's website to auto-select the first option on the maintenance packages for their products. Currently, we are using an if statement within a foreach. The...

View Article


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']'

Here is the code: It's making me blind. Can someone help me please? I see one single quote. But I don't know where to add the other one. <li class="<?php echo ($_SESSION[" m="" ]="=" 'home=""...

View Article

MYSQL TO PDO

Hi guys, Im new to PDO and I cant get hang of it, could anyone please help me convert mysql code to pdo View attachment 1926 View attachment 1927

View Article

Help please! :(

Hi all, Bit of a newb when it comes to CSS, and need some help please! I want to change the background color of the sidebar widgets to light grey so it looks a bit distinct from white bg of the content...

View Article


Formatting Tables

Hi there, I have a wordpress custom table, fields are id,category,question,frmname what i need to have a layout of CAT1 |CAT2 |CAT3 |CAT4 |CAT5 c1Q1 | c2Q2 | c3Q3 | c4Q2 | c5Q1 c1Q2 | c2Q3 | c3Q4 |...

View Article


PHP Open Stream Error

I am trying to make a simple contact form for a simple website, just a little messing around. After getting all the code set up I ran the form and I got this error: "Warning: fopen(contactinfo.txt):...

View Article

Get more than 1 data entry from DB using PHP

Hi all, I am trying to get multiple rows data which has same id. So the same id can be allocated to different entries and I need to display this. The code as follows: <?php...

View Article

How to delete the item from table? I am using SESSION.

Here is my code : Code (PHP): <html> <head>     <style type="text/css">         table {             border-collapse: collapse;             border: 1px solid black;         }...

View Article

PHP/MySQL UPDATE not working for second table

Hello. I have 2 tables that store the same information for different groups. When I run this for the "pilots", the query executes successfully and the record is changed. However, when the "data"...

View Article


Why is this WordPress comments form not submitting?

I am trying to use the Bootstrap validator to validate the comments in WordPress, as it's a lot nicer than the default WordPress error system. The Jquery validation works nicely, but the form won't...

View Article

simple_html_dom: simple use-case - getting a scipt to work

View attachment 1995 the issue today: simple_html_dom: simple use-case - gettin a scipt to work Well - this is somewhat a headstart i fairly new to simple_html_dom usage and methods. I know a little...

View Article


ATOM-Settings: IDE-PHP could not launch your PHP runtime: how to proceed?

hi there good day dear folks, hello dear experts, i am currently workin on a script: therefore i have to take care that the PHP-development-Environment is set up correctly: so this is a question...

View Article

Set cookie in the browser following a Post request

Hi, I have one question is it possible to make a script that set a valid cookie for multiple sites and then show a page that will POST in those sites? If not possible, i can always download Chrome...

View Article


My regex kung-fu is not strong =(

Hello! I'm trying to stumble by getting a pattern match. Now, I can get once instance of how it could be it's the second that I'm not really wrapping my head around. Here's my test text : Order date:...

View Article

Checking dynamically populated data using ajax with user entered value

I am creating a script for creating invoices. Using ajax for populating database data on autosearch. But the products has a field called min_selling_price, user should not be able to put price below...

View Article

What I can get the due left of every person easily for the following table...

I am trying to implement this for two days now but stuck with logics ! Please help. What I can get the due left of every person easily for the following table [image attached] - table link:...

View Article

Script works fine on test server but not on production server

Hi folks, I created a login form for accessing a protected page on my site. This works fine on my test server (WAMP 3.2) running MySql and PHP 7. When I transfer the files (connection script and login...

View Article


Why in 'due column', same value is showing for every clients?

I have become able to display due data in due column but the same value is showing for each customer - what is the wrong I am doing? Here is the code, please somebody help! Code (Text): while...

View Article

Browsing latest articles
Browse All 28 View Live




Latest Images