Include a php


Posted on 16th Feb 2014 07:03 pm by admin

Hello,

I'm trying to include a function that shows the recent searches.
Example I have
index.html

------------------------------------------------------------------------
- -
- Info info -
- -
- and here I want to include the recent searches page -
- Recent searches(searches.php) -
- 1 2 -
- 3 4 -
------------------------------------------------------------------------

But I have no clue on how to do it, I tried include and the file location etc, but I get something of mailer.php in line 3.
ALSO, I want to make it on the recent search appear 2 searches per line.

Example I have
mysql_query("SELECT * FROM tags ORDER by id DESC LIMIT 24");

I want to appear

First Search Second search
Third Search Fourth Search
Fifth search

And so on.

ANY help is appreciated, any clue, tried google several times, Thanks

BEST REGARDS

No comments posted yet

Your Answer:

Login to answer
117 Like 25 Dislike
Previous forums Next forums
Other forums

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

Displaying returned XML in another PHP page
I have an online payment form that will return XML given if a payment is successful or declines. I

Why do I get this error?
Error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or

array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h

How do I create a 2D game "camera" to follow player?
In J2ME programming I'm targeting MIDP 2.0 devices.

I'm using gamecanvas and I was thinking t

What do you call the "token" thing?
You know how some sites have links that run on tokens? Tokens are links that only stay alive for a c

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

Time script, set to my time zone?
I am using this line to get the date and time

Code: $time = date(F." ".d.", &q

Loops and Classes
I am making a template system and everything seems to be going well up until I have to loop in a var

php calculate
this code echoes correctly the sum but the inserted result is 0??
Code: <?php
$TotalNum

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash