@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> while ($rowviewsqlget = mysql_fetch_array($hakviewsqlget)) { $hakhakview = str_replace("[view_msgs_for_id]",$rowviewsqlget[5],$hakhakview); } i am using this but i am getting always same answer. in while rowviewsqlget[5] is always chaning but str_replace isn't.
<0> i am using echo $hakhakview; in while.
<1> and if you echo $rowviewsqlget[5]
<1> ?
<0> http://pastebin.com/539572
<0> yes i tried, [5] is changing.
<1> well maybe.. no.. your doing str_replace.. hmm
<0> yeah.
<1> yeah 5 would change cause it is a loop
<1> and so does nakhakview
<0> yes,one moment.
<1> so if it returns more than 1 row, it will change that many times. hmm
<0> this.
<0> http://pastebin.com/539575
<0> i am replacing [view_.. with str_replace
<0> its not important logical, rowviewsqlget[5] is changing, and str_replace must replace the [view... with [5]



<0> i think
<1> im so lost
<0> answer is always last ron in `mytable`
<0> ron ~ row.
<0> thanks Ven-X.
<1> hmm.. so..
<1> i didn't do anything
<0> anyone have idea ?
<0> mm,
<2> hi
<0> i am setting $hakhakview = $getFile->fileRead('hakhakview'); one time.
<0> i can set this in while,maybe it can do.
<0> one momen
<0> momen ~ moment
<0> huh
<0> now ok :) Ven-X thanks for your time.
<2> can i ask for a help regarding session
<0> i asked my quesions if i have ana ;)
<0> i am asking ~
<0> gr,i must sleap hah.
<2> can u help me Megapai?
<3> haha! i'm windows free completely
<3> first time i could say that since 1992 or 1993 or so
<0> shoot it ana,someone can help you. this channel is ; friendly
<2> still there?
<0> YES :)
<0> you Ven-X ?
<0> no ana05 ~
<2> back here
<0> whats wrong ana05,there is no problem in ur codes.
<2> do u have an idea how to display the values entered in page x when i click back button?
<1> im sorta here
<2> *back button when im already in page y
<0> there is no problem with codes ana05.
<0> when i push back btton,lastname is already valued in your textfiled.
<4> what in holy ****s name is going on in here
<2> really? ill try it again
<2> you get what im trying to do ryt?
<0> ana submit form,and push back button,there is no problem.
<0> you already set a value of lastname <? echo $_session['lastname']; ?>
<2> yah
<2> it won't still display my pre-entered name
<2> when i click back button.. when im in page2
<2> textfield is empty
<2> but the value prints on page2
<0> ana its working in my servers,you can ask your question in channel again.
<2> il try to restart my pc :)
<2> thanks Megapai
<0> ur welcome,but i think you must ask your question in channel...
<0> you know. heh
<5> Is it possible to dial a modem with php? I want to send the data right to the serial port.
<6> Sure.
<6> Depends on the OS on how you open the port.
<6> And its a bitch because PHP will not create a nonblocking connection.
<6> Its either connected or busy.
<5> huh
<5> i'm on linux
<6> Lets say you have a php script that hangs. Then your com port is toast.
<6> There is a really nice TCP/IP nonblocking script for the comport.
<6> It basically sets up a daemon and then you just open a socket.
<6> For linux you just open the com port like you would any other file.



<5> cool
<5> just knowing that it can be done is half the battle, thanks for the clue.
<0> in $var = "test is here"; can i replace second " "(space) with "a" ?
<0> how~
<6> No prob dev_nu11. I'm sure the script will need perms to do it.
<0> sorry,how can i replace last " " with "a" ? $var = "bla bla bla ";
<6> Megapai www.php.net/str_replace
<6> Probally need to use it in conjunction with substr() or strpos()
<0> and ?
<0> hm,
<0> k.
<7> hmm
<7> how would i format a date / time in php ?
<7> do i hafto convert it as a int first ?
<1> date()
<1> mktime() strtotime()
<7> ive tried this with a date directly off the db and it didnt seem to work.. echo date("y-m-d", $arrResult[$j]["post_date"]);
<7> this var returns this from the database : 4/fvr./2006 20:19
<7> well thats rather php returning it, mssql returns 2006-02-04 20:19:34.907
<8> nap time. night night
<2> Megapai
<9> morning ppl
<7> morning
<7> i still can't find how to format a date that i get from mssql :(
<9> date()
<9> :))
<7> ive tried that
<9> date(<string format>, dateFromMysql)
<9> well it should work
<7> echo date("y-m-d", $arrResult[$j]["post_date"]);
<7> Notice: A non well formed numeric value encountered
<9> do an echo on that var
<9> and see if it's ok
<2> hi guys, how can i access in page 3 the value of a particular field in page 1 using session?
<7> 4/fvr./2006 20:19
<7> this is what it outputs
<7> and in the db, this is what i have:
<7> 2006-02-04 20:19:34.907
<9> ana05: $_SESSION['somename']=$myvar_from_1;
<9> then in page 3:
<9> $myvar=$_SESSION['somename'];
<9> (SAMENAME) :P
<7> got any idea why i can't format that date sk8?
<9> is the value ok?
<2> sk8ing: where will i put $_SESSION['somename']=$myvar_from_1;? in page 3?
<9> print the value and check it if it's ok
<9> ana05 in page 2
<2> ah oks
<2> let me try it :)
<9> be sure to session_start(); before doing anything with $_SESSION[]
<7> ..
<9> have you printed it?
<2> sk8ing: it won't work
<9> ana05: what exactly have you done?
<2> is it ok for you to check my codes?
<9> it will get away my depression, so, yes :)
<2> ok, thanks. for a sec.
<2> sk8ing: http://www.phpriot.com/2662
<2> i got an error of Undefined index: somename in page3
<9> any other error?
<2> no more
<9> comment the header() and see if it works
<2> still wont
<9> do you try to print it out?
<9> I can't see any echo in page3.php
<9> for "somename"
<2> i tried it
<9> and?
<2> but still wont
<2> i added echo $myvar;
<9> session_start(); if (!isset($_SESSION['xx'])) $_SESSION['xx']=1; else $_SESSION['xx']++;
<9> put this in a php
<9> and run it a couple of times
<9> also add an echo $_SESSION['xx']; at the end


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#linux
#linux
#c++
#chatzone
poomania
#mirc
#linux
lamer melcu
irgiel liba
Undernet #Clujenii



Home  |  disclaimer  |  contact  |  submit quotes