load mysql data to google chart in PHP

could you please help here. Below is the script that am using to get the MYSQL data and pass that to google chart $result = DB_query($sql, '', '', False, False); $table = array(); $table['cols'] = array( array('label' => 'col1', 'type' => ...
more »

2017-01-16 17:01 (1) Answers

Error trying to run a PHP Hello World in Eclipse

I installed the PDT PhP Development Tool in eclipse in order to run PhP files, but when I click in "Run as > PhP Web Aplication" it shows me a white page with the message: Not Found The requested URL /teste/teste.php was not found on this se...
more »

2017-01-16 17:01 (2) Answers

Symfony3 Keeping locale after login

Problem I have, is when user changes language in login page - it works, but after user login - it is back to default again. How to make it possible to the keep same language user selected before login, to stay after login? I've tried looking this up ...
more »

2017-01-16 16:01 (1) Answers

Just CANNOT get form to send email

I'll probably get a duplicate on this but I've searched and searched and I can't find someone experiencing the same issue with the same syntax, so hopefully someone can see something I'm missing. PHP is not my strong suit, but I have gone through sev...
more »

2017-01-16 05:01 (2) Answers

Mysql select UNIQUE row on column

I have a table as following:(Ex) id | vid | time ------------------------ 1 | 4 | 1333635317 2 | 4 | 1333635323 3 | 2 | 1333635336 4 | 4 | 1333635343 5 | 5 | 1333635349 I want to be just a row (the last row [ID: 4]) of t...
more »

2017-01-15 21:01 (1) Answers

PHP - iPhone send full URL into REQUEST_URI

I have a problem with my router. It is producing many Error404 because of invalid variable $_SERVER['REQUEST_URI']. Normally REQUEST_URI is in format /your-event/buy/ but in logs it always contains full URL like http://domain.com:80/your-event/buy/ a...
more »

2017-01-15 20:01 (1) Answers

Table with horizontal scrollbar

I would like to have a table on my website. The problem is that this table is too wide (because there is a lot of records from database ). How can I add horizontal scrollbar? Now my table is only responsive and text is doing in this way This is my ...
more »

2017-01-15 17:01 (2) Answers

Foriegn Keys Yah or Nah

Non F-K SCHEMA human human_id | name alien alien_id | name | planet comment comment_id | text 1 hello vote to_id | to_type | who | who_type 1 human 1 alien 1 comment 1 human FK- SCHEM...
more »

2017-01-15 14:01 (1) Answers

Understanding the opencart loader

Looking into opencart loader and trying to understand how it work. The opencart loader for loading/calling files <?php final class Loader { private $registry; public function __construct($registry) { $this->registry = $regist...
more »

2017-01-15 11:01 (1) Answers

Check Multiple Expressions in preg_match function

I have a script in which it checks if the input link is http:// or not (if empty). The code is as follows: if(!preg_match('~http://[a-zA-Z0-9]~',$link)) The above code only checks for http:// links. I wanna check multiple expression other than th...
more »

2017-01-15 07:01 (1) Answers

Undefined JS alert

I've got an a-tag which reads as this: (and there are number of a-tags being dynamically populated as this stays inside a PHP loop.) echo "<a onclick='trygettheid();' class='mainList' id='main' href='index.php?idd=".$reK['catid']."'><div cl...
more »

2017-01-14 13:01 (1) Answers

ArrowChat (PHP) hosted on IIS with MS SQL Server

I am trying to test a trial version of ArrowChat on windows (using IIS and MS SQL Server). I have installed the extensions of MS SQL Server and when i connect using a PHP script, i get connected successfully. However, with Arrow chat it errors. It do...
more »

2017-01-14 13:01 (0) Answers

WooCommerce Email Attachment

I've created a plugin that sends an order report to an email address. I need to get the order information in a CSV file and send it as an attachment with the email. So far, I've managed to get the order information but I am struggling figuring out ho...
more »

2017-01-13 11:01 (1) Answers

Group together array elements

I have an array in PHP:- $arr = ["BX_NAME0","BX_NAME1","BX_NAME2","BX_categoryName0","BX_categoryName1","BX_categoryName2","BHA_categories0","BHA_categories1","BHA_categories2"] Here I want to group together elements based on same ending integer ...
more »

2017-01-13 11:01 (3) Answers

automatic git clone using yml file gitlab

I am trying to setup automatic git clone/pull on server using gitlab yml file. How to check git repository exist using yml script, if exist then git pull otherwise make git clone. I want below output : If GIT REPO NOT EXIST then git clone else...
more »

2017-01-13 11:01 (1) Answers