using the following snippet to intimate a user that a certain task is been going on while the page loads : <script type="text/javascript">
<!-- Begin
document.write('<div id="loading">task going on eg. Searching, please wait...
</div>');
window.onload=function(){...
how can i make a mysql query term not case sensitive..as in making the search for movies in the statement below not case sensitive
select *, match(url, title, comment) against ('movies') as score from dir where match(url, title,
comment) against ('movies') and subdir='$in'
found out that when a bulk of codes comes between a mysql query and the mysql_fetch_array function, the result of the mysql_query statement dispappears ...as in something like below:
//db connection
$result = mysql_query($sql_statement);
//some long lines of codes, statements, loops, etc...
using the mysql fulltext stunt within a php page to run a kinda search within my db. To be specific, here goes the query:
select *, match(url, title, comment) against ('movies') as score from dir
where match(url, title, comment) against ('movies') limit $somevariable, 10
using mysql_num_rows...
A friend tried compiling a java library for me: waplet.jar and stressed it returned the error: exception in thread "main" java.lan.NoClassDefFoundError: waplet/jar.
what could be wrong?
i av a table with a column containing categories some addresses belong to, occuring a number of times. i'd however luv to get each distinct category in the column with their number of occurence. As in something like this:
---------------+-----
CategoryNameA | 5
---------------+-----...
I'm designing a kinda dir which includs wap sites. In a bid to enable viewing wap sites online, i need a wap emulator applet dat i can embed somewhere on the site. Any idea where i can get one from?
I'm tring to run a file upload script that goes this way:
if($_POST['ad']){
print_r($_FILES);//just doing a little debugging trick here
if(is_uploaded_file($_FILE['ad']['tmp_name'])){
if($_FILES['ad']['type'] == 'image/gif' || $_FILES['ad']['type'] == 'application/x-shockwave-flash'){
//trying...
How do i make a form button (say submit for example) inactive in such a way that the text on the button (from its value attribute) is unhighlighted and clicking on the button does nothing.
I'm setting up an auto reminder on one of my pages whose function is to send a reminder mail to someone on the set date. the drawback however is that it's not automatic. the reminder page will av to be called on the set date before it can perform the function. Is there anyway to automate it such...
i have a script dat goes this way
...
foreach($_GET as $k => $gv) {
$$k = stripslashes(trim($gv));
}
if(!$pg){
$pg = 1;
setcookie('query', $q);
}
...
however i got the error: Warning: Cannot modify header information - headers already sent by (output started at /var/www/ng/ngbot/search.htm:5)...
i'm trying to use the load data infile addin of mysql to load some text values to a table. unfortunaltety my verssion of mysql doesnt support it. As with all things, is there any other way to do this?
I'm trying to use sql_calc_found_rows to get the total number of results found from a sql statement that went dis way:
select high_priority sql_calc_found_rows *, match(title, comment) against ('$q') as score from dir
where match(title, comment) against ('$q') limit $somevariable, 10
and...
In what unit is the parameter of the setTimeout function....is it seconds, microseconds or what? by the way, how many microseconds make a seconds (pardon my brainlessness)?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.