Login
Register
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Login
Register
->select()
Search
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Recommend
this page to a friend!
Easy MySQL Query
>
All threads
>
->select()
>
(Un) Subscribe thread alerts
Subject:
->select()
Summary:
where clause in select
Messages:
2
Author:
rudie dirkx
Date:
2010-09-25 22:23:24
Update:
2010-10-26 16:54:01
1. ->select()
Reply
Report abuse
rudie dirkx - 2010-09-25 22:23:24
What happens if I wanna do:
$where = array(
'nome LIKE ? ||' => $mysql->escape('a%'),
'nome LIKE ? ||' => $mysql->escape('b%'),
'nome LIKE ? ||' => $mysql->escape('c%'),
'nome LIKE ? ' => $mysql->escape('d%')
);
$mysql->select('contato', 'nome,endereco', $where);
to achieve:
SELECT ... WHERE nome LIKE 'a%' || nome LIKE 'b%' || nome LIKE 'c%' || nome LIKE 'd%'
It doesn't seem possible; is it?
2. Re: ->select()
Reply
Report abuse
Enio Borges Ribeiro - 2010-10-26 16:54:01 -
In reply to
message 1
from rudie dirkx
Hi Rudie!
I update the class and add this option!
Thanks!
About us
Advertise on this site
Site map
Newsletter
Statistics
Site tips
Privacy policy
Contact
Copyright (c)
Icontem
1999-2024
For more information send a message to
info at phpclasses dot org
.
image/svg+xml
image/svg+xml
Contact us using Messenger