« first day (658 days earlier)      last day (4281 days later) » 

12:00 AM
perfect assessment of exceptions @NikiC
I was drafting a reply, but realized 3/4 of the way through it was basically "spot on" for each. So I deleted the draft
 
coda 2 vs phpstorm thoughts anybody?
 
12:15 AM
hi all (:
 
12:31 AM
@hanleyhansen phpstorm
@tereško how crappy is Laravel?
"web development for artisans"
never looked at it and you are the master of blasting frameworks
 
@Lusitanian it has most of the standard php framework faults , but would be an interesting research subject for you, because it heavily utilizes the methodology of functional programming
 
interesting, i'll look through it when i have time
 
1:18 AM
@Lusitanian you tried coda 2?
 
@rdlowrey I think SortedSet is like the one thing PHP's arrays aren't.
 
1:34 AM
Coda 2 all the way.
 
1:50 AM
Okay, I have a hard question.
I know it's hard because it involves naming.
InvalidTypeException vs TypeException. What are the pros and cons if I don't give you any more context?
 
2:15 AM
@LeviMorrison I'd use TypeException
Adding Invalid to an Exception name is redundant
and you can set the exception message to invalid type if you so desire
 
done
also wtf
 
hey folks, I'm hoping someone can point me in the right direction, I'm making an application where I want to have 'rich commenting/posts' in the way that twitter has linking to usernames, and hashtag links.. (usernames being my priority), I'm assuming some kind of jquery enhancement... anyone know of such a project? something perhaps on git?
I'd like to integrate it (if it exists) into my app, so i don't have to write from scratch..
 
needs moar jquery
3
 
i'm tired
 
2:24 AM
go to sleep O:
 
@Jakub , if you want a custom rich editor, you should make it yourself .. of course , that on a condition, if you are actually able to write native javascript and are not one of the "jquery programmers"
 
@Lusitanian I considered this course of action
 
@tereško, as always, very helpful in chat bro... why didn't i think of that
 
@NikiC alternatively, caffeine :)
 
well if anyone knows of anything premade, just shoot me a msg, appreciate it would be helpful
 
2:29 AM
$http_response_header god what the hell php
why do you magically create this variable
 
@Jakub , you are aware, that you are treating the php chat room as crowd-sourced search engine for javascript code that you could copy-paste
2
 
2:42 AM
@Lusitanian I think I'll follow your initial suggestion :)
 
@rdlowrey meh...i couldn't figure out the error...it actually ended up working (i.e. completing the request) after roughly twenty minutes a couple times. bizarre. I abstracted the http functionality in my oauth lib and added an implementation for file_get_contents in addition to artax so i can continue development
@NikiC what time is it in germany?
 
5 in the morning
 
yeah um...go to sleep :P
wow...my oauth library finally effing works. time to write tests
then a few more implementations...and then oauth 1 ):
 
@Lusitanian will do :P
 
how about performance? security? — Defensor 30 secs ago
what the heck
anyone know of a desktop markdown editor for linux?
 
2:56 AM
stupid chrome
accidentally made a never-ending loop in JS , and the whole thing stopped working
 
sounds like a fun time
 
3:12 AM
@tereško Didn't they implement one process per tab so that this sort of thing didn't happen?
 
yeah , but, when loop stuck, all the tabs lost the ability to load
 
that is all the documentation i ever owe anyone
 
@NikiC nice. Up partying?
 
Another naming question:

interface Observer {

    function notify(Subject $subject);

    // or

    function update(Subject $subject);

}
 
update, as it fits with the traditional definition of Observer
 
3:24 AM
@ircmaxell I don't think the Subject type-hint is necessary, now that I think about it. What methods should a Subject have? Depends completely on the subject, right?
 
attach and detach
 
Do those need to be public, though? But does the Observer care about attach and detach?
 
yes, otherwise how do you listen with your observer?
 
meh going to bed
night, anyone here
 
g'night, Lusitanian.
 
3:27 AM
night Levi
 
@ircmaxell Does the Observer need to know that what it was passed was specifically an object that implements Subject? I guess it might be useful so you can detach yourself if you want.
 
@LeviMorrison no, it needs to know that it was passed the object that notified it
 
@ircmaxell That's not guaranteed even if you give it a Subject.
 
Yes it is
otherwise you're not implementing an observer, but a mediator
 
I understand it breaks semantics.
But requiring a Subject in the update method doesn't guarantee the subject to be the same one that notified it.
 
3:30 AM
not by interface, but by convention
 
So, the real question is: does requiring a Subject in the update method on an Observer help people code properly?
 
no, it helps enforce the contract
you know that you're going to get something that's observable...
by convention it should be the triggering subject, but at least it's a subject
I'm off to bed. Stuff to do tomorrow, like sleep off the alcohol (and go to another party)
 
@rdlowrey Did you choose sleep or coding?
 
user895378
3:51 AM
@LeviMorrison Just sat down.
 
:)
I'm doing iterative improvements on the data-structures. Overall I think they're getting better.
Better APIs, etc.
 
user895378
Nice. Just had a nice real-world dose of birth control. I'm all babied out.
 
wow, first time in here...
 
user895378
Re: the above discussion ... I don't think the SplObserver/Subject combo does anything for you. It just isn't helpful. It doesn't guarantee anything but that you're getting something observable. Who knows what that something is ... I think it's really a pattern that doesn't need an SPL implementation.
 
3:57 AM
Welcome, Sir Joey
 
thank you levi
 
user895378
It's so basic to implement. And the native interfaces aren't doing anything to make your life better.
 
@rdlowrey Except compatibility between libraries becomes SPL based instead of library based.
The SPL is a library, but it's a common-ground to build stuff off of.
 
i think i really need a teacher to whom I can learn the right thing, coz Im super self studying and I think, I'm doing it all wrong..
 
@JoeySalacHipolito This is a good place to be then.
 
user895378
3:59 AM
@LeviMorrison I guess. I still have the strict type issue, though. I generally don't want to know that I'm getting just any subject. I want to typehint something specific ...
 
@rdlowrey That bit is true, I guess.
You could, you know, NOT use the SPL in that case.
:)
 
@LeviMorrison yes, i think it is, i want to show my whole web app to someone, and tell me what's the better way to do it, also i don't understand what did I do..hahaha..just coding continuously and did not even understand what I am doing
 
user895378
@LeviMorrison hehe, yeah, that seems to be my solution :)
 
@JoeySalacHipolito The best advice you are going to get is learn how to program in general. Learn patterns and good practice.
 
@LeviMorrison i think I am good at basics already, but kinda confused on patterns...like mvc..
 
4:02 AM
As such, the a good place to start is to study Code Complete v2
@JoeySalacHipolito Don't worry about MVC too much. It's over-hyped and what people generally call MVC should really be called MVC-inspired.
 
i see, but i started a project "mvc-inspired" . . but i think, i'm breaking some rules, haha, and doing some bad practice..
 
@JoeySalacHipolito Studying Code Complete will help.
 
okay, will definitely take a look at that.
 
@rdlowrey What are you going to be doing in this code session? Writing tests for Http\Client?
 
i think i will super stay here for long, this is what i need to learn more..than studying and figuring things on my own.
 
user895378
4:08 AM
@LeviMorrison I'm thinking about doing "fun" stuff like sharpen up the parallel requests and leaving the tests for tomorrow. I know, being bad.
 
user895378
It is friday, after all.
 
user895378
API question:
 
user895378
$requests = array(
    new StdRequest('http://google.com', 'GET'),
    new StdRequest('http://yahoo.com', 'GET'),
    new StdRequest('http://bing.com', 'GET'))
);

$returnArr = $client->requestParallel($requests);
 
Async > Parallel . . .
Although, that's probably a preference.
 
user895378
4:10 AM
Not if you need to wait for the responses ...
 
requestMultiple?
 
user895378
Oh, you were talking about naming
 
I don't know exactly why, but I don't like requestParallel.
 
@LeviMorrison , does CodeComplete really cover implementation of MVC for web ?
 
user895378
@tereško no, it's more about good programming in general.
 
user895378
4:11 AM
@LeviMorrison Anyway, the question is:
 
or did you just suggest the latest book that you read without even paying attention to what was asked ?
@rdlowrey , then the book suggestion is compltely useless
 
@tereško I disagree.
 
user895378
I would recommend Code Complete to anyone who asked anything about writing code :)
 
and i would not
 
user895378
Probably not beginner level though :)
 
4:13 AM
because it is advanced level literature for people who are looking for language-agnostic materials
 
He's a new developer who suspects that his MVC inspired code had some serious flaws. That sounds like a great place to learning about real design patterns.
@tereško I didn't struggle with it at all. I definitely wasn't 'advanced' when I read it.
 
right ... i read PoEAA book few years ago , and re-reading it now i see that i actually understood nothing
 
user895378
Nevermind, I think I answered the question I was going to ask.
 
@tereško Also, I had suggested he pick up CC2 before he mentioned MVC but the chat log shows it the other way.
 
user895378
For posterity's sake, I was going to ask:
 
user895378
4:15 AM
> The individual return array elements will be response objects, or, if an error ocurred with a given request, an exception object where there would otherwise be a response. My question is this: should the return array just be ordered like the input request array, or should the return array use the URIs from the requests as keys.
 
And what did you decide?
 
hahaha, so @tereško,what would you suggest for me?
 
user895378
I think it would be a surprise to get back an array with the keys changed to the URIs and the most obvious thing to do is just to return the responses in the same order as the original requests and with the same keys.
 
@JoeySalacHipolito first start by watching those lectures ( the total length of them is something like 8 hours)
 
ah, the first link you posted. thanks!!!
 
4:18 AM
it should take few days for you to get through them , especially if you are trying to understand everything that is talked about in them
 
@JoeySalacHipolito By the way, if you want to know something specific about MVC, @tereško happens to be among the best in this room on that subject.
 
I think he is, i've read some of his comments on some questions and he really knows what he is talking about..
 
Also, @tereško I'm looking through my chat log and I don't see this link you posted. What was it?
 
@tereško yes, i think, it will take me some days.. coz when I study, i really wanted it to be part of me, lol, i mean i really wanted to understand it to the bones
@LeviMorrison, at my question, he answered it.
 
he's referring to this topic:
0
Q: Generating Navigation for different user types, MVC, PHP

Joey Salac HipolitoI have this idea of generating an array of user-links that will depend on user-roles. The user can be a student or an admin. What I have in mind is use a foreach loop to generate a list of links that is only available for certain users. My problem is, I created a helper class called Navigation...

 
4:22 AM
Ah, the Misko Hevery talks. Very good. I haven't listened to all of them, but I really enjoyed the ones I have.
 
@LeviMorrison, have you seen this one from UncleBob ? infoq.com/presentations/principles-agile-oo-design
 
i've been studying php for quites some months now, uhmm, years i think, but in the past years, i really did not pay attention to it.. just now, i really wanted to learn,i really really want to learn...
 
user895378
@LeviMorrison Same. I really like Misko's stuff a lot. His testability work really influenced me heavily.
 
torrentfreak.com/… .. this is kinda sad. Where will i get audiobooks this month ?! H33t has a really poor collection, and not options for advanced search ..
 
i will be just going in a party of a celeb, too bad I am one of the organizing staffs, and i really need to be in there in time.. @tereško , please guide me later, tomorrow everyday, i really want to learn so badly .. :D
 
4:30 AM
@JoeySalacHipolito Just come back to chat. People will be here.
:)
 
thank you @LeviMorrison . .
 
@tereško I haven't. It seems to be typical: Bob asks a vague question looking for a specific answer. He's terrible at asking questions. Anyway, at 5:00 I've had nothing that's particularly helpful, but I do know that if he ever asks me what OO is, I can say : It's a way to manage dependencies.
I'll keep watching though.
 
@tereško . . .can i message you in facebook?
 
nope
because i have not used FB regularly for more then tow years
you will just have to use the chat
anyway , i am in UTC+3 time zone .. and i need a nap
 
okies..
see you in a while, im in gmt+8
 
4:57 AM
@tereško I wish that link had the full video so I could have a video to point to that explains SOLID. I'm sure something like that exists, I just haven't ran into it yet.
@rdlowrey How fun is your coding session? :)
 
user895378
@LeviMorrison It's coming along. I have to work to think in terms of parallelization instead of sequentially. What are you working on?
 
user895378
Also, how about:
 
user895378
Client::request(Request $request)
Client::chainedRequest(Request $request)
Client::asyncRequest(Request $request)
Client::multiRequest(array $requests)
 
The name chainedRequest sucks. What's it do?
@rdlowrey I'm mainly looking at my API and implementing things.
I'm mainly still glowing that I implemented binary search tree iterators.
Not a lot of help resources on that subject.
 
user895378
@LeviMorrison I know it does. I can't think of a good way to name "chain of redirection responses leading to the final result"
 
5:09 AM
what are you working on, @rdlowrey
 
user895378
@tereško socket-based http requests in parallel
 
user895378
essentially replacing the functionality of curl_multi_* without curl.
 
user895378
@LeviMorrison I don't guess there are. Not a huge audience of noobs on the web clamoring for more tutorials on how to implement binary search tree iterators :)
 
lol, that's one way to put it.
 
@LeviMorrison , well , there are such videos .. but they are behind a pay-wall : cleancoders.com/codecast/clean-code-episode-9/show
 
5:15 AM
figures.
 
there is a free SRP lecture available : vimeo.com/43592685
 
5:34 AM
If you try to retrieve a key from a map and it doesn't exist, what exception would you throw? It's not really a RangeException or DomainException.
Also, I've seen people implement a Map using a Set and vice versa. As of right now, I have decided that implementing a Set using a Map is better than the other way around. The reason is one method: get. get doesn't really make sense on Set, so if you implement a Map using a Set you have to add get behavior to a Set.
Unfortunately, I have implemented my Map with a Set. Need to switch :/
@NikiC Keys in a foreach loop can't be objects, right?
> abstract public scalar Iterator::key ( void )
Sad day :(
Can we get this fixed in PHP 5.5?
 
@rdlowrey Can you run some code for me?
 
user895378
@LeviMorrison yeah sure
 
Check out data-structures and debug AVLTreeExample.php. It works fine until it gets down to the map iteration and then dies. I can't get an error log of any kind. I'm hoping you'll get an error.
While I was debugging it I didn't see any reason why it should die.
 
user895378
k
 
user895378
6:22 AM
ls
 
user895378
^ doh, not in the terminal
 
lol, in Windows the command is dir. Screws me up every time.
 
user895378
It's the only drawback of multiple screens -- every now and then you're looking at one but have a text-box in the other focused :)
 
user895378
Well, it dies for me at Map: with no error output. I'll see if I can't squeeze something out.
 
Well flip.
lol
At least I know it isn't my Windows configuration.
C:\Users\Levi\Projects>ls
'ls' is not recognized as an internal or external command,
operable program or batch file.
Need to google how to make a command alias in Windows, I guess.
 
user895378
6:30 AM
foreach ($map as $key) {
    echo 'test';
    print "$key => " . $map->get($key) . "\n";
}
 
user895378
Outputs:
 
user895378
Map:
test
 
It dies somewhere in $map->getNode();
 
user895378
so your traversable map is only registering as having one item ...
 
On something like returning a value.
But for the life of me I can't figure out why.
By the way: doskey ls=dir solves my ls problem. Only downside is that it doesn't persist across sessions :/ Need to keep looking
 
user895378
6:35 AM
I see you implemented call_user_func on your callable object property:
 
user895378
$comparisonResult = call_user_func($this->comparator, $element, $node->getValue());
 
Oh yeah, gotta have a user-defined comparator.
How did you discover that little tidbit of joy, anyway?
 
user895378
just looking at AvlTree::getNode
 
I mean, how did you discover how to call a class property that is callable?
 
user895378
oh, I tried to call $myObj->property() one time and was like, "WTF?" after a couple of minutes of wondering if I was crazy google pointed me to a stack overflow question on the topic.
 
6:41 AM
hi evry body
i want to sort data in an array
 
1.jpg, 10,jpg,20,jpg,3,jpg,2.jpg
sort($images); giving results as
1.jpg
10,jpg
:(
etc
thanks @rdlowrey
 
@DextOr Specifically you will want to use usort
 
:) thnks @LeviMorrison
 
@rdlowrey Well, I'm going to go to bed. Don't worry too much about the error. If you find it great, but I'm done for the night. See you tomorrow, most likely!
 
user895378
6:46 AM
@LeviMorrison cool, yeah I'll be around. Have a good night!
 
By the way, it dies on BinaryNode::getValue().
Makes about 0 sense.
 
user895378
@DextOr I was feeling generous ...
 
user895378
$arr = array('1.jpg', '10.jpg', '20.jpg', '3.jpg', '2.jpg');

usort($arr, function($a, $b) {
    $a = (int) pathinfo($a, PATHINFO_BASENAME);
    $b = (int) pathinfo($b, PATHINFO_BASENAME);
    if ($a < $b) {
        return -1;
    } elseif ($a > $b) {
        return 1;
    }
    return 0;
});

var_dump($arr);
 
user895378
That will only work as expected if your file names only contain integers before the extension, though.
 
thanks @rdlowrey I am glad u were feeling like that :D
Dear @rdlowrey this code is giving error see codepad.org/DEeaj6oJ
 
user895378
7:05 AM
@DextOr it uses a closure -- apparently the codepad can't handle that. Closures require PHP5.3+
 
user895378
You can see an alternative if you can't use closures here:
 
user895378
 
ok @rdlowrey thanks i try
 
user895378
@DextOr If you find any helpful answers on my profile, feel free to upvote one of them :)
 
@rdlowrey can I upvote on chat ?
 
user895378
7:10 AM
@DextOr No, but don't feel like you need to do that :)
 
user895378
I was only kidding.
 
:P
 
user895378
Also, just FYI, when you star something, it stars it for everyone, not just you. If you just need a bookmark, hover over the message and click the dropdown arrow to get a permalink.
 
lolss... I don't know how this chat works.... A.W thanks
 
8:15 AM
45 mins ago, by Truth
http://stackoverflow.com/q/11789212/871050
 
Good morning.
 
Morning
 
@deceze Isn't that more fitting for SuperUser?
 
@Whisperity Yes, which is why we're closing it as such.
 
@Truth Where can I find the "This question should be migrated to..." type of flag?
 
8:23 AM
@Whisperity It doesn't belong here
It's off topic
It belongs on ...
 
Thanks, flagged then.
 
9:21 AM
@LeviMorrison etienne had a patch for that. but not proposed yet
oh, and morning everyone :)
though doesn't look like anybody's here ^^
 
Good morning, @NikiC.
 
10:19 AM
Okay I have found out that I was building this stuff on a biased principle: users.extra_data field containing serialized array.
 
Loading images in loop from remote host. How to NOT display images that no exist? pastebin.com/k9Xc0GEf
 
10:45 AM
morning
 
Good morning, @PeeHaa.
 
11:41 AM
Morning, @hakre. Oh we got our new shipment of underquality questions?
 
12:06 PM
hello guys . .
 
Before I ask a question on stackoverflow, I try my luck here :) In short: I need one value from one row from another table to use on another table. Here is what I am doing: $name = ($_GET["name"]);
$favoritenstring =  "SELECT Favoriten FROM $table_id2 WHERE Name = $name";
$name = mysql_real_escape_string($name);
$favoritenstring = mysql_real_escape_string($favoritenstring);
mysql_query($favoritenstring);

echo $favoritenstring;

$string = stripslashes($favoritenstring);
$query = "SELECT Name,Beitrag,Bild,satzid FROM $table_id WHERE satzid in " .$string;
Favoritenstring in this case is the value I need for the other table.
 
@Blade You can concantenate queries SELECT foo FROM bar WHERE baz=(SELECT asd FROM xyz WHERE bazbar=quxfoo) or if your database setup can let it be pulled off, you can also use JOINs.
gist: cannonical SO comment for mysql_* users, 2012-07-24 10:38:07Z
Please, don't use `mysql_*` functions to write new code. They are no longer maintained and the community has begun the [deprecation process](http://goo.gl/KJveJ). See the [*red box*](http://goo.gl/GPmFd)? Instead, you should learn about [prepared statements](http://goo.gl/vn8zQ) and use either [PDO](http://php.net/pdo) or [MySQLi](http://php.net/mysqli). If you can't decide which, [this article](http://goo.gl/3gqF9) will help you. If you pick PDO, [here is good tutorial](http://goo.gl/vFWnC).
 
@Whisperity thank you
 
@Blade so for you it will look something like SELECT Name,Beitrag,Bild fROM $table_id WHERE satzid IN (SELECT Favoriten FROM $table_id2 WHERE Name = $name);
Also, isn't it a bit unconventional to have your field names in German?
 
@Whisperity But to be honest I don't know if this works in my case. You see I need the value from the other table beforehand, because of $string = stripslashes($favoritenstring); .
@Whisperity Haha, well I am from Germany, so I guess that's why they are in German ^_^
 
12:17 PM
@vascowhite Asked Dec 13 '08.
 
@Blade Do you also write your function names in german?
 
@Blade If you need to do some extra work with the input and just simply using a nested query is not applicable, then:
 
@Blade We are all from Germany in here, still our code is English ;)
 
@Whisperity well, the usual weekend rush I'd say :)
 
@PeeHaa Well, to be honest I am pretty mixed about that. Sometimes I write in english, sometimes I write in German. I guess it has something to do on how concentrated I am and son.
 
12:19 PM
Apart from @PeeHaa. He's one of those weird foreigners
 
@NikiC We are all from Germany? Why are we talking english then? ^^
 
lol
 
Haha okay
 
$name = mysql_real_escape_string("foobar");
$query =  "SELECT Favoriten FROM $table_id2 WHERE Name = $name";

$favoritenstring = mysql_fetch_assoc(mysql_query($query));

$string = stripslashes($favoritenstring['Favoriten']);
$query = "SELECT Name,Beitrag,Bild,satzid FROM $table_id WHERE satzid in " .$string;
@Blade ^ Then this is the way you can fetch the variable from the table.
@NikiC Heh I'm not from Germany still I like my codes served in English.
 
if (ist_kein_objekt($haus)) {
   throw new KeinObjektAusnahme('Sowas von daneben das hier zu tun!');
}
rofl
 
12:21 PM
^ what if a non german would edit some of that??
 
Haha yes, I get it, from now on I will write it all in english :)
 
@hakre Oh god no.
 
@Whisperity Thank you man, will get right to it.
@Whisperity Right now I am getting an error at $favoritenstring = mysql_fetch_assoc(mysql_query($query)); - supplied argument is not a valid MySQL - But I will try to fix it.
 
@tomexsans A second set of functions need to be introduced, so that this can be edited:
if (EN__not_a_house__DE__ist_kein_objekt($EN__house__DE__haus)) {
   throw new EN__NotAnObjectException__DE__KeinObjektAusnahme('EN: Better luck next time! DE: Sowas von daneben das hier zu tun!');
}
 
Is $query done properly?
 
12:25 PM
@hakre I see, we need to add code l10n and i18n support!
 
@NikiC Sure, I'll file a patch for PHP core. Yuk!
 
2
Q: PHP: Need an alternative to eval() for dynamically building multidimensional array

Patrick QOkay, so I know that using eval() isn't great, but I haven't been able to come up with a better solution to my problem, and until recently, there wasn't a performance reason not to use it. However, I am now passing enough data to the function that it is taking unacceptably long. The function th...

makeAMultiDimensionalArrayWithSumsBasedOnMultipleFields($data, $dimensionArray, $sumArray, $staticArray);
 
@Whisperity: $dbresult = mysql_query($query, $dbconnect);
 
@Whisperity uuuuuuuuuuuuuuhhhhhm
 
@hakre forked vexsoftware/minequery-php. Hm...
 
12:32 PM
@Whisperity Yes there's a bug in it, I just wanted to send a pull request.
 
@Whisperity Can I send you the whole code via pastebin?
 
@Blade Gist please.
 
@Whisperity Thanks in advance :) gist.github.com/179601fc6723fb942741
 
$name = mysql_real_escape_string("foobar"); <- This is to be an arbitrary value you want to execute in the query. Foobar is just an example.
And change $favoritenstring = mysql_fetch_assoc(mysql_query($query)); to $favoritenstring = mysql_fetch_assoc(mysql_query($query, $dbconnect));.
 
Thanks, will try that.
mmh still getting the same error
 
12:44 PM
@whats the error??
 
@tomexsans Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
on this line $favoritenstring = mysql_fetch_assoc(mysql_query($query, $dbconnect));
 
the $favoritenstring will retrun an assoc array
since you are not returning it as an array but asa a string you would get an error
 
Ohhh okay. Yes, its only one row, therefore a string. It only contains ('1')
 
while($favoritenstring = mysql_fetch_assoc(mysql_query($query, $dbconnect))){
$favoritestringreult = $favoritenstring['the column name'];
}
try this
where the column name is the column name of the database of your favorite string
 
12:49 PM
Thanks, will try
 
I wonder about something.
Let's say I have a Git remote with branches master and development which I am committing into locally and pushing and all that loveliness.
What if I make a topic branch locally, commit some stuff into it, then merge topic into development but I only push origin development and topic is never pushed to the remote. How will Git and GitHub handle it?
 
@tomexsans error is still the same. This is beginning to get weird.
 
what is it saying??
 
@Blade What does var_dump($favoritenstring); give you if you put it below the mysql_fetch_assoc... line?
 
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /x.php on line 19
false @Whisperity
 
12:52 PM
Is $query a proper MySQL query?
 
I think so, yes.
 
yup thats what i think is wrong the $query SQL is wrong
try it first on PHP Myadmin or something
 
okay
 
or you are not getting the $_GET var properly var_dump it all
 
-> string(6) "Blade"
 
12:58 PM
mysql_query($query, $dbconnect) or die(mysql_error())
 

« first day (658 days earlier)      last day (4281 days later) »