I fighted with the same problem back in autumn when I was studying XSL and came to a sad conclusion: no, you can not add (or subtract or basicly anything) a value of a variable. In another words, a variable in XSL is not a variable in common programming language sense :/
For example, making a...
With mysql LIMIT you can pick out the records you want to show. Then have a variable ($offset) which indicates the starting point of where you want your records to be fetched.
lets say first page has $offset=0 and $onPage = 10
Then make you query like this
"SELECT * FROM TABLE ORDER BY id...
Not having the information about your CSS file, I just have to give the basic idea:
foreach($tree['freerolls']['tournament'] as $k)
{
$color = "#E2ECFC";
if($i%2 == 0) $color="#ffffff";
$i++;
...
print "<tr bgcolor=\"$color\">";
...
Thank you for the star!
This was a good lesson for me too, always learning something new. The ereg's and preg's are not so familiar for me, hated them in the beginning 'cause those patterns seemed so cryptic :) So I'm glad I was able to help.
hmm, read this from manual: Returns the length of the matched string if a match for pattern was found in string
so in this case the matched string was "," -> length 1
so the substr returns only first char.
First you get the CSV file into multidimensional $array (I assume you know how to do that) and then do this:
$name = "array";
$size = count($array[0])
for($i=0; $i<$size; $i++) {
foreach($array as $key => $value) {
${"$name"."$i"}[] = $value[$i];
}
}
And you have multiple arrays named...
Wasn't first quite sure, were you talking about database tables and columns or HTML. But I'm quessing database.
What is an array of checkboxes (this made me think of HTML...)? Are you talking about an array you receive, when multiple values are selected? Like
$array = $_POST['choice']...
If I understand correctly, you need something like this:
// queries...
$resultset = array();
while ($row = mysql_fetch_array($r)) {
$resultset[] = $row;
}
echo '<table border="1">';
for ($i=0;$i<10;$i++){
//second column index
$c2 = $i+10;
echo '<tr>';
echo...
Desing in that table is straight from hell...
May you should alter your query like this
SELECT DISTINCT ID_MEMBER AS id
and then count the returned id's in your code
Well, sorry, that won't get the result you are after...
You should follow at least the basic rules of database normalization. You should have separate table for variable where the values are stored with the memberID.
variable = 'profile_domicile' AND variable = 'profile_division'
There's your problem. 'variable' can't be 'profile_domicile' and 'profile_division' at the same time, same goes with 'value'
use OR
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.