What do you mean by this: "i cant send distributor code?"
Are you saying you can't or you don't know how to call upon a external service during the login process?
User Profile
Collapse
-
-
-
Look at the graphics libraries built in and that can extend php.Leave a comment:
-
Just concatenate the id onto the base file name (I assume that's what you want).
i.e.
Code:<?php // @file: variable_include.php for ($i=0; $i < 2; $i++) { include("variable_includes$i.php"); } ?> <?php // @file: variable_include0.php echo 'Hello this is file: variable_includes0.php<br>'; ?> <?php // @file:
Leave a comment:
-
Either one is okay... It all depends on the contents of the page(s) and whether or not the page has url arguments.
i.e.
page.php/mystuff/getit is search engine friendly
page.php?mystuf f=getit is typically not
Also... Are the page title and meta tags relevant to the content?Leave a comment:
-
That's kind-of what I expected...
The database engine is pretty smart about optimizing queries, and as you've noted, the queries are for the
most part functionally identical.Leave a comment:
-
First off... Sending plain HTML is always going to be
faster than processing database records.
If the information really doesn't change that often,
why don't you just generate an HTML page and feed that
to the visitors?
You could check the generation date/time of the HTML
file and regenerate from the database if the generation
date/time is older than some defined value.
...Leave a comment:
-
That's weird... Are you sure you're not making a mistake in the code somewhere? I'm sure you're actually uploading a "non zero" byte file.
Hmmmmm....Leave a comment:
-
I'm glad that worked... I didn't think of using it that way either, but of course, that's the benefit of relational algebra.
I'd be curious which method returns faster results.
Try using explain with both queries to see what differences the engine notes.
i.e.
EXPLAIN SELECT date FROM current_daily WHERE 10 IN(daily1, daily2, daily3, daily4) ORDER BY date ASC
versus......Leave a comment:
-
Are you saying that you have the table creation and data insertion statements in a text file?
If you have phpMyAdmin installed, you could use that.
If not, you could possibly create a program to execute the creation/data insertion stuff.
If not that, then you'd need access ssh on linux or the cli on windows.
Give an example of the contents of the file.
NOT THE WHOLE FILE - PLEASE!...Leave a comment:
-
I don't see where that can be any easier since you're testing different columns.
If you had one column that takes on the values that daily1 through daily4 do,
then you could use the select statement's "IN" clause.
i.e.
SELECT date FROM current_daily
WHERE daily IN (#1,#2,#3,#4)
ORDER BY date ASC
You could reconstruct the query,
but my thought is that...Leave a comment:
-
Other than the fact that your tables should be normalized, you can just do a self-join on the table and get the results in one query.
Haven't tested, but I believe this should work:
select a.name from movie a
join movie b on b.name = a.name and b.user_id = 2
where a.user_id = 1
The above is one of a few was of creating the query and any common movies between users should be in the result...Leave a comment:
-
$rows=mysql_fet ch_array($resul t) is not terminated.
Should be:
$rows=mysql_fet ch_array($resul t);Leave a comment:
-
I haven't played with this in depth, but maybe you can glean something from this page.
http://www.openstudio.fr/Animated-In...y.html?lang=en
Look for the text: 'Example 2 : panoramic views'...Leave a comment:
-
dgreenhouse replied to when i submit my email form the php is not executed but an open/save prompt comes up?in PHPYou're not providing any information about the code whatsoever. It's impossible to know how to advise you.Leave a comment:
-
Try array_count_val ues()
see: http://php.net/manual/en/function.ar...unt-values.phpLeave a comment:
-
Try:
Code:// $out will contain the last line of the command $out=exec('blastp -query query.fasta -subject arbi.fasta', $output, $return_var); echo '<pre> The last line of output:<br>'; echo $out.'<br>'; echo 'The output:<br>'; print_r($output); echo '<br>The status: '.$return_var; echo '</pre>';
Leave a comment:
-
Although I didn't test this, this may work:
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title>
Leave a comment:
-
With jQuery, this should work.
I don't know if it works in all browsers, but I've tested in:
IE8, FF 3, Chrome 10, and Safari 4
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;
Leave a comment:
No activity results to display
Show More
Leave a comment: