Quantcast
Channel: PHPLinq Forum Rss Feed
Browsing latest articles
Browse All 22 View Live

New Post: Joining Objects

I'm really at lost finding a solution to my problem. How do I transform this SQL to PHPLinq?SELECT *FROM [dbo].[Customers] AS [t0]WHERE [t0].[CustomerID] NOT IN (    SELECT [t1].[CustomerID]    FROM...

View Article



New Post: Joining Objects

hHis one is possible with PHPLinq but the query will not be optimized. Instead, PHPLinq in its current implementation will read all orders and all customers into memory. Therefore I think it's best to...

View Article

New Post: firstOrDefault seems not to work

Hi,firstOrdefault method seems not to work.I've tried the following in '01-simple.php' example and it returns nothing (not NULL, just nothing)$result = from('$n')->in($names)->firstOrDefault('$n...

View Article

New Post: firstOrDefault seems not to work

Currently, the "default" for a string is null. Should this be ""?

View Article

New Post: firstOrDefault seems not to work

No-no-no! It should remain null. Actually I was wrong in first message - functions DO return something, but something strange. Look at following code (and remarks):<?php/** PHPLinq_LinqToObjects...

View Article


New Post: file is required

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Db/Adapter/Abstract.php'...

View Article

New Post: Is there in() query

I want know in this list, is it possible to write in('sa', 'ga')

View Article

New Post: file is required

The resolution is in the error message: try including Zend framework in your code?

View Article


New Post: Using SELECT COUNT

Hi,I was wondering how can I write in PHPLinq a query using COUNT? Something like:SELECT COUNT(cars.id) AS total_cars FROM cars Thanks!

View Article


New Post: Licence applied to the library

Hi,I've a problem to understand under which licence the library is published.On this site, it is claimed to be licenced under GPL. However, in source file, the licence template applied is LGPL.Which...

View Article

New Post: Licence applied to the library

Should be LGPL, fixing it here on the website.

View Article

New Post: Indent the first line

add code :$objWriter->startElement('w:ind');     $objWriter->writeAttribute('w:firstLine', 450);      $objWriter->endElement();into  branch:/phpword/writer/word2007/base.phpfunction...

View Article

New Post: Indent the first line

sorry,i Write wrong place,it is word issue.

View Article


New Post: Different Languages

Hi, I used PHPExcel it generates csv for English language content very fine but for other languages (CZ,CH etc)the text becomes garbled in csv file.Please suggest how could I get correct csv for all...

View Article

New Post: variable inputs of WHERE method

I have a question like following codes. Please see the $var variable$array = array(1,2,3,4);$var = 2; $output = from('$it')->in($array)->where('$it=>$it == $var')->select();It throws an...

View Article


New Post: variable inputs of WHERE method

actually,  i got a tip: we can replace $var text by the value :D 

View Article

New Post: Joining nativ arrays

Hello together, is there a way to joining array in this form ? A: Schema: Array([0] => 'name', [1] => 'age'); Data: Array ([0] => array( [0]=> 'John', [1] => 30), ...) B: Schema:...

View Article


New Post: Joining nativ arrays

No answer it's mean, it's not possible or just no answer?

View Article

New Post: Joins?

I'm not seeing any obvious indication that it is possible to perform joins between tables using PHPLinq. Am I missing something?

View Article
Browsing latest articles
Browse All 22 View Live




Latest Images