
$sql = "SELECT * FROM `pages`
WHERE `name`
LIKE \"%"
.$_POST['query'].
"%\" ORDER BY id ASC;";if(mysql_num_rows($result)==0){
echo("<li class=\"textbox\"><p>No search results matched your query</p></li>");
}
else {
while($row = mysql_fetch_array($result)) {
echo("<li class=\"menu\">");
echo("<a href=\"".$row['url']."\">");
echo("<span class=\"name\">".$row['name']."</span>");
echo("<span class=\"arrow\"></span>");
echo("</a>");
echo("</li>");
}
}$sql = "SELECT * FROM `pages`
WHERE `name`
LIKE \"%"
.$_POST['query'].
"%\"
OR
`othername`
LIKE \"%"
.$_POST['query'].
"%\"
ORDER BY id ASC;";ares wrote:In fact I wouldn't use tables at all.

wadelaube wrote:I have created a mobile menu system with iWebkit, which is working really well, even though I have no idea what I am doing.

ares wrote:In fact I wouldn't use tables at all.

wadelaube wrote:I have created a mobile menu system with iWebkit, which is working really well, even though I have no idea what I am doing.

ares wrote:In fact I wouldn't use tables at all.



ares wrote:In fact I wouldn't use tables at all.

ares wrote:In fact I wouldn't use tables at all.

tarnfeld wrote:You can only do title="Search" not anything else

ares wrote:In fact I wouldn't use tables at all.


ares wrote:In fact I wouldn't use tables at all.


ares wrote:In fact I wouldn't use tables at all.

$.post("search.php", { query: term },
function(data){
$('#results').html(data);
$('#spinner').fadeOut();
})
$.post("search.php", { query: term }, // Declaring the php file, and passing the search query to it
function(data){
$('#results').html(data); // Putting the results from the php search file into the div results
$('#spinner').fadeOut(); // Fading out the progress spinner
})ares wrote:In fact I wouldn't use tables at all.


ares wrote:In fact I wouldn't use tables at all.

ares wrote:In fact I wouldn't use tables at all.

rasknight wrote:I have a database, but how do I edit it?
ares wrote:In fact I wouldn't use tables at all.



rasknight wrote:I still dont know how to create results
ares wrote:In fact I wouldn't use tables at all.

wadelaube wrote:I have created a mobile menu system with iWebkit, which is working really well, even though I have no idea what I am doing.

ares wrote:In fact I wouldn't use tables at all.

wadelaube wrote:I have created a mobile menu system with iWebkit, which is working really well, even though I have no idea what I am doing.

ares wrote:In fact I wouldn't use tables at all.

ares wrote:In fact I wouldn't use tables at all.

wadelaube wrote:I have created a mobile menu system with iWebkit, which is working really well, even though I have no idea what I am doing.

ares wrote:In fact I wouldn't use tables at all.

ares wrote:In fact I wouldn't use tables at all.


ares wrote:In fact I wouldn't use tables at all.


ares wrote:In fact I wouldn't use tables at all.

Users browsing this forum: Google Adsense [Bot] and 2 guests