[18:27:36] -->| activeradio (~me.radioa@learn.java) has joined #php [18:27:39] <activeradio> I need help [18:27:45] <activeradio> $tweetText = $tweets[$i]['text']; [18:27:59] <activeradio> I want to put text inbetween [18:28:02] <activeradio> The two [18:28:37] <Kryptic> activeradio: didnt understand [18:28:54] <Kryptic> gh0st : use<pre> tag [18:29:07] <Anubis> echo("<pre>"); [18:29:10] <Anubis> PHP CODE [18:29:12] <activeradio> OK so currently it does [18:29:15] <activeradio> Tweet [18:29:17] <gh0st> before and after? <pre> </pre>? [18:29:19] <activeradio> and then last post [18:29:20] <Anubis> echo "</pre>" [18:29:22] <gh0st> k [18:29:22] <Kryptic> Yes gh0st [18:29:23] <Anubis> yeh [18:29:28] <activeradio> like when the tweet was posted [18:29:39] <activeradio> and I want to put text inbetween [18:29:40] <Anubis> echo "<pre>"; UR LOOP; echo "</pre>"; [18:29:59] <Anubis> activeradio [18:30:04] <Kryptic> activeradio : can you provide an example ? x) [18:30:05] <Anubis> copy all the code to pastebincom [18:30:46] <Kryptic> Gh0st : seems working now ;) [18:30:55] <activeradio> This is a test tweet Sent 17 hours ago. [18:31:37] <activeradio> $tweets[$i] is the "This is the test tweet" [18:31:43] <activeradio> and text is when it was sent [18:32:00] <activeradio> I tried to used . "text" . [18:32:05] <activeradio> but resulted in an error [18:32:24] <Kryptic> dnot understand. According to you first line $tweets[$i] is an array, not a string [18:33:06] <activeradio> Well that is what displays the tweets [18:33:15] <activeradio> and text determins when it was last sent [18:33:26] <Kryptic> www.pastebin.com please, I'm not familiar with tweeter [18:33:38] <Anubis> why don't these Pastebins actually execute the code [18:33:43] <Anubis> and show an output [18:33:46] <Anubis> that would be a nice feature [18:33:51] <Kryptic> because sometimes you require includes ;) [18:33:56] *activeradio* http://pastebin.com/JSdT200W [18:33:59] <Anubis> in that case you wouldn't execute it [18:34:02] <Anubis> but for simple code [18:34:03] <Kryptic> And assuming you include a huge library ... [18:34:05] <activeradio> There [18:34:07] <Anubis> nah [18:34:09] <Kryptic> Doubt the jser wants to copy paste [18:34:11] <Kryptic> user [18:34:13] <Anubis> if (include) halt [18:34:14] <Anubis> :D [18:34:24] <Anubis> they'd have some blacklist ofc! [18:34:54] <Kryptic> activeradio's : http://pastebin.com/JSdT200W [18:35:34] <activeradio> ? [18:35:40] <Kryptic> try to print $tweets[$i] [18:35:53] <activeradio> Did you change anything? [18:35:54] <Kryptic> Just sharing your source, i'm not the only guy out there who can help [18:36:10] <activeradio> k [18:36:53] <Kryptic> try to print $tweets[$i] within or out of your loop, using <pre> tags. If out of the loop, use 0 for $i or whatever number is the best. [18:37:16] <Kryptic> Then you'll perfectly know what is in your thing [18:38:57] <gao> what's a tweet? [18:39:15] <Anubis> are you srs gao ? [18:39:34] <Anubis> a tweet is a short msg of max 140 chars including spaces spread over the twitter platform :/ [18:39:35] <Kryptic> « Why so serious ? » [18:46:16] <activeradio> http://pastebin.com/4fViQcMR [18:46:16] <activeradio> ? [18:46:52] <Kryptic> What ? [18:47:03] <activeradio> ^ [18:47:03] <Kryptic> I'm not god, i cannot guess the issue, or event the question [18:47:14] <Kryptic> even* [18:47:18] <activeradio> I added in the print [18:48:09] <Kryptic> http://php.net/manual/en/function.print-r.php [18:48:44] <Kryptic> So out of the for loop : [18:49:02] <Kryptic> <pre> <?=print_r($tweets[0]);?></pre> [18:49:13] <Kryptic> (Before it). [18:50:05] <activeradio> I get 1 [18:50:30] <activeradio> for output [18:51:32] <Kryptic> mh [18:51:44] <Kryptic> Try print_r($tweets) instead [18:53:59] <activeradio> error [18:54:13] <Kryptic> that's not that much explicit. Link ? [18:54:45] <activeradio> http://vippartyserver.co.cc/test.php [18:55:08] <Kryptic> syntax ... [18:55:23] <Kryptic> you forgot a ( ou a ; [18:55:36] <Kryptic> or a ) or whatever [18:55:54] <activeradio> Now try [18:57:38] <Kryptic> WTh your <pre> fails, nevertheless [18:58:07] <Kryptic> That's almost unreadable ... [18:58:29] <Kryptic> please add <html> tags =/ [18:58:40] -->| Active (ident@Rizon-90FF88CD.socal.res.rr.com) has joined #php [18:59:10] <activeradio> that posts all of the stats [18:59:33] <Kryptic> Yes but it is unreadable [18:59:59] <activeradio> what would you need the stats for? [19:00:03] <Kryptic> for you [19:00:20] <activeradio> I don't need them [19:00:34] <Kryptic> This was just to better understand you [19:01:38] <Kryptic> But i really don,t understand .... You have to text and the date outputted. [19:01:47] <Kryptic> You want to concatenate a string ? [19:02:14] <Kryptic> pseudo-code : text."add your lolz text here". datetime [19:02:35] <activeradio> Here is the tweet [19:02:47] <activeradio> G'night everyone! See you on Wednesday the 1st in the mornin'! (if everything goes as planned)Sent 17 hours ago. [19:03:01] <Kryptic> Okay, what else ? [19:03:07] <activeradio> G'night everyone! See you on Wednesday the 1st in the mornin'! (if everything goes as planned) - Sent 17 hours ago. [19:03:18] <Kryptic> echo " - "; [19:03:20] <Kryptic> ... [19:04:53] <activeradio> error [19:04:55] <activeradio> when I do that [19:05:07] <Kryptic> Again, _which_ error. [19:05:47] <Kryptic> [18:47:03] <Kryptic> I'm not god, i cannot guess the issue [..] [19:06:06] <activeradio> Parse error: syntax error, unexpected line 197 [19:06:10] <activeradio> $tweetTime = $tweets[$i] echo " - "; ['created_at']; [19:06:14] <gh0st> haha [19:06:14] <Kryptic> ..... [19:06:18] <Kryptic> /facepalm [19:06:20] <gh0st> hahaha [19:06:38] <Kryptic> Did you seriously write that ? [19:06:58] <Anubis> uhm [19:07:10] <Kryptic> If you answer yes [19:07:15] <Kryptic> All i can telle you is ... [19:07:17] <Kryptic> Review the basics [19:07:19] <Anubis> $test= mysql_fetch_array($result); should work with print_r($test); [19:07:20] <Kryptic> tell* [19:07:23] <Anubis> or not? [19:07:39] <Kryptic> Anubis : this is supposed to return an array, I guess so. [19:07:48] <activeradio> Im not god. I can't tell you that. [19:07:51] <Anubis> so why its not returning anything :X [19:08:04] <Kryptic> Anubis : Complete source ? [19:08:06] <Anubis> how does one check for null array? [19:08:13] <Kryptic> count() [19:08:16] <Anubis> i jhust wanna check if array is nul [19:08:21] <Anubis> ok [19:08:25] <Anubis> lets try [19:08:26] <Anubis> brb [19:08:28] <Kryptic> check if there is no element in it [19:09:23] <Kryptic> activeradio : What cant you tell me ? This is YOUR code, YOUR source. [19:09:38] <activeradio> b/c I'm not god [19:09:43] <Kryptic> If you are too worried about sharing your little scripts, i cant help you. [19:09:50] <activeradio> no [19:09:58] <activeradio> Im just not god [19:10:03] <Kryptic> $tweetTime = $tweets[$i] echo " - "; ['created_at']; [19:10:04] <Kryptic> Honestly [19:10:11] <Kryptic> Did you really put that in your sourcecode ? [19:10:21] <Kryptic> Be honest [19:10:51] <Kryptic> I didn't tell you to do that, hell [19:11:01] <Kryptic> I told you to echo this string : " - " [19:11:20] <Kryptic> Just echo the tweet [19:11:23] <Kryptic> echo the fucking - [19:11:25] <Kryptic> And echo the time [19:11:27] <Kryptic> Done [19:11:28] <Kryptic> No error [19:11:32] <Kryptic> Script over [19:11:35] <Kryptic> Plain and simple. [19:11:52] <Kryptic> I can't even figure out how you can to the idea you had to write $tweetTime = $tweets[$i] echo " - "; ['created_at']; [19:12:25] <Kryptic> how you came*
Nil (./11283) :
Oui mais sous nux t'es encore sous une vieille version (10.0