<?php
class DB{
private $link;
public static function connect($host,$user,$passwd,$dbname) {
$db=new DB();
$db->link = new mysqli($host,$user,$passwd,$dbname);
return $db;
}
Type: Posts; User: dipika; Keyword(s):
<?php
class DB{
private $link;
public static function connect($host,$user,$passwd,$dbname) {
$db=new DB();
$db->link = new mysqli($host,$user,$passwd,$dbname);
return $db;
}
<?php
class DB{
private $link;
public function DB() {
$db = new DB();
}
public static function connect($host,$user,$passwd,$dbname) {
//$db=new DB();
$db->link = new...
i need regex to find all the urls from a page
thanks a lot for your help.finally i am able to solve my problem. this thread is really helpful
Thanks a lot for your concern. whats the name of the thread
I followed the link above and this thread was really helpful and finally i was able to develop a query like this:
SELECT * FROM `page` AS a1 LEFT JOIN `page_tag` AS a2 ON a2.page_id=a1.id LEFT JOIN...
when we will get free please help me. you can mail me at dipika_44@live.com
$len=strlen($word);
for($i=0;$i<=$len;$i++)
{
if($word[$i]=='(' )
{
$bracket[]=$word[$i];
}
if($word[$i]=="+" or $word[$i]=="|" or $word[$i]==$word[$len])
{...
Actually ,user inputs the search statement. then how do I parse input string .
yes,it would be really helpful. Actually i want to use user input and i tried to parse the input and finally created a query from that but its not working.
Thanks a lot
Thanks for the refered thread. but i am still confused in "AND" searching.
suppose user input is "(events And news) or local".
i wrote a sql like this:
SELECT * FROM `page` AS a1 LEFT JOIN...
I am developing a simple search engine using php.
what is the logic behind searching with "AND" and "parenthesis" advance search