Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 59
Search took 0.30 seconds.
Search: Posts Made By: Kurisvo
Forum: PHP 03-05-2013, 08:31 PM
Replies: 5
Views: 190
Posted By Kurisvo
<?php $num=rand(1,40); $number= ($num < 10...

<?php

$num=rand(1,40);
$number= ($num < 10 ? "00" : "0").$num;

?>

You were getting the parse errors because you left off the semicolons.
Forum: PHP 03-05-2013, 04:07 PM
Replies: 14
Views: 522
Posted By Kurisvo
Bump, does anyone have ideas on when to know when...

Bump, does anyone have ideas on when to know when to make new table rows and close off old ones. It seems like the first table row always has the child and then the father's line, but the rest I'm...
Forum: PHP 03-03-2013, 10:39 PM
Replies: 14
Views: 522
Posted By Kurisvo
That is sooooo helpful! I think I need help with...

That is sooooo helpful! I think I need help with is how to query for the generations without looping forever and lagging like crazy, which it might if we have many generations. How would you...
Forum: PHP 03-03-2013, 01:31 PM
Replies: 14
Views: 522
Posted By Kurisvo
Parents to decedents are from right to left. ...

Parents to decedents are from right to left. Like in the like we are trying to find the back history for "Rose of Mother's Favor" with "Colmagol ar Elunaur" being the father and "Tiradiell hin...
Forum: PHP 03-01-2013, 03:13 PM
Replies: 14
Views: 522
Posted By Kurisvo
But then how do you decide to break it by <tr>? ...

But then how do you decide to break it by <tr>? Cause if you look at the html, it almost seems to do table rows randomly.

For my generations, I'm creating an array, which when printed looks like...
Forum: PHP 03-01-2013, 01:58 PM
Replies: 14
Views: 522
Posted By Kurisvo
@Redcoder - I am doing the calculations in PHP ...

@Redcoder - I am doing the calculations in PHP from the OP:


I need help to try and figure out the pattern, cause I don't see one.
Forum: PHP 02-28-2013, 10:07 PM
Replies: 14
Views: 522
Posted By Kurisvo
Horizontal family tree

Hello all,

I'm trying to create this effect: http://dragcave.net/lineage/C8kE for my family's family tree. Instead of the tradition family tree where you pick a parent and go down, I want to pick...
Forum: MySQL 02-04-2013, 10:18 PM
Replies: 11
Views: 413
Posted By Kurisvo
Yep, that query fixed everything. Thank you very...

Yep, that query fixed everything. Thank you very much, once again! Learn something new every day!
Forum: MySQL 02-04-2013, 10:06 PM
Replies: 11
Views: 413
Posted By Kurisvo
thank you so much. So sorry I didn't add those...

thank you so much. So sorry I didn't add those...
Forum: MySQL 02-04-2013, 09:52 PM
Replies: 11
Views: 413
Posted By Kurisvo
I was replying to BubikolRamios Basically...

I was replying to BubikolRamios

Basically what I'm trying to do is populate a (html) table like this:

User | Items

So then with some info it would look like

User | Items
...
Forum: MySQL 02-04-2013, 09:40 PM
Replies: 11
Views: 413
Posted By Kurisvo
Except a left join doesn't return the information...

Except a left join doesn't return the information in the format I need. Which is a list of the ids of the items with commas separating them. Such as 1,5,6,78.
Forum: MySQL 02-04-2013, 08:50 PM
Replies: 11
Views: 413
Posted By Kurisvo
working with GROUP_CONCAT error

So I've been practicing with random queries and I've run into a problem

First off, here is my query:

SELECT a.username,
GROUP_CONCAT(items.id) AS itemslist,
...
Forum: MySQL 08-21-2012, 08:38 PM
Replies: 5
Views: 420
Posted By Kurisvo
That's what makes it so tricky. :c Would nested...

That's what makes it so tricky. :c Would nested still work though? This is really stumping me.
Forum: MySQL 08-21-2012, 08:08 PM
Replies: 5
Views: 420
Posted By Kurisvo
I think that second way would be best. I'm at a...

I think that second way would be best. I'm at a point in coding it where I can change stuff around.

Could you teach me or link me to an example on how to do that? :)
Forum: MySQL 08-21-2012, 04:05 PM
Replies: 5
Views: 420
Posted By Kurisvo
How to pull a list....

Hey everyone!

I've got a question for you that's been stumping me for a while...

I have a table of relationships like this:


id | parent_a |parent_b
____________________
1 | 0 ...
Forum: PHP 08-03-2012, 03:02 PM
Replies: 10
Views: 1,433
Posted By Kurisvo
That's actually a really really good idea! ...

That's actually a really really good idea! Thanks for the idea :D
Forum: PHP 08-03-2012, 01:38 AM
Replies: 10
Views: 1,433
Posted By Kurisvo
I got an error with that one. :c I did find...

I got an error with that one. :c

I did find one thing that worked though:


if ( $_SERVER['HTTP_X_FORWARDED_FOR']
|| $_SERVER['HTTP_X_FORWARDED']
|| $_SERVER['HTTP_FORWARDED_FOR']
||...
Forum: Apache configuration 08-03-2012, 01:36 AM
Replies: 4
Views: 1,588
Posted By Kurisvo
Oops, I thought you wanted the 24 hard coded, my...

Oops, I thought you wanted the 24 hard coded, my bad. My suggestion would be to try something using a mysite.com/something/ to see if the issue is that it's trying to call your index page by...
Forum: Apache configuration 08-02-2012, 05:16 PM
Replies: 4
Views: 1,588
Posted By Kurisvo
I think this should work: RewriteEngine On ...

I think this should work:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

Options +FollowSymLinks

RewriteRule ^/([^/]+)/([^/]+)$...
Forum: PHP 08-02-2012, 01:59 PM
Replies: 10
Views: 1,433
Posted By Kurisvo
Without proxy: Array ( [UNIQUE_ID]...

Without proxy:

Array
(
[UNIQUE_ID] => UBp2-dQB0AEADvlg8zYAAAAw
[HTTP_HOST] => mysite.com
[HTTP_CONNECTION] => keep-alive
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1;...
Forum: PHP 08-02-2012, 02:42 AM
Replies: 10
Views: 1,433
Posted By Kurisvo
Yeah, that's what I'm trying but it's not...

Yeah, that's what I'm trying but it's not catching a single thing.
Forum: PHP 08-01-2012, 03:01 PM
Replies: 10
Views: 1,433
Posted By Kurisvo
How to detect proxies

I need to detect users using proxies on a few pages. I don't want to block them, just deactivate a few functions that shouldn't be used by people with proxies.... The main method I've found it...
Forum: Apache configuration 07-12-2012, 05:35 PM
Replies: 3
Views: 961
Posted By Kurisvo
Quick question. I'm using the same .htaccess...

Quick question.

I'm using the same .htaccess files and I have a page where I'm tracking the IP when people visit a certain page. I've noticed that every time I access a page it inserts both my IP...
Forum: Apache configuration 07-06-2012, 06:40 PM
Replies: 3
Views: 961
Posted By Kurisvo
Oh, good catch! I feel so stupid now. Thanks so...

Oh, good catch! I feel so stupid now. Thanks so much! :)
Forum: Apache configuration 07-06-2012, 05:40 PM
Replies: 3
Views: 961
Posted By Kurisvo
.htaccess adding in previous page to url

Yes, yet another .htaccess question. xD

My .htaccess file looks like this:



RewriteBase /

RewriteEngine On
Showing results 1 to 25 of 59

 
Forum Jump

All times are GMT +1. The time now is 06:42 AM.