@# 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 20 21 22 23 24 25 26 27 28 29 30 31



Comments:

<0> when is it set though?
<1> in this single case 4
<1> and $permisions_out[0] is fetched from a mysql_fetch_array
<1> and I put view infront of it
<1> to make sure it's totaly unique
<0> when though, make sure $view has a value when you do your $_POST[$view] stuff
<1> otherwise you would get 4x 1
<1> and now it's view1
<1> down1 etc...
<1> I can statically say $_POST['down1']
<1> the problem is
<1> the number of categories is always random
<1> so it can end at down1
<1> but also at down20
<0> that makes me think when you are doing your if, $view is not set...
<2> !+enter



<1> $view = "view$permissions_out[0]"; <<
<3> Don't use the enter key as puncuation. Think in complete thoughts, then type.
<1> that is $view
<4> and the blueprint graphing engine is born!! www.iaindooley.com/graph.png :-)
<0> and did you set that before or after the post?
<1> before that post
<1> cyphor: see the code here: http://pastebin.com/597797
<0> so when posted, why would that $view be available?
<1> no idea
<1> but how can I dynamically submit
<1> the checkboxes
<4> Stormchaser: i don't think he heard you :-)
<5> good afternoon
<5> at everyone!!!
<2> olger901: Please don't abuse enter.
<0> hi marcodefcon
<4> olger901: foreach($_POST as $name => $value) <-- just loop through your post vars like that
<1> okay
<1> stormchaser
<5> sorry for my english I am italian
<4> marcodefcon: sorry for my italian, i'm australian
<5> dools ahah
<5> ;-)
<1> could you repost that please, that from foreach?
<5> don't worry
<4> olger901: foreach($_POST as $name => $value)
<1> okay and how would I implent that?
<0> $post_var_names = array_keys($_POST); there you get your variable names... loop through it like $$post_var_names[$i] = $_POST[$post_var_name[$i]);
<4> olger901: RTFM dude, www.php.net/foreach
<0> and you'd have to parse it looking for the values starting with view
<1> ok hold on ill give it a try
<5> I have a page index.php that it sends back to one presentation page. This last one sends back to the index.php after that it comes click a link it enters. In the index.php all to part image works a correctly that before the time does not come visualized, all wark fine after page reload
<1> I have to do so for eacht attribute right? Meaning download, view, add, edit and delete?
<5> I have tried to always put an absolute address and nothing therefore.
<5> can anyone help me?
<4> marcodefcon: put some code into pastebin.com
<5> ok
<4> olger901: you could use strpos to find out if each of the $name's contains view, download etc. maybe
<5> dools this is the presentation file
<5> http://pastebin.com/597830
<4> olger901: alternatively you can create separate arrays in your html form, so name="views[<?=$view ?>]", then you could do foreach($_POST['views'] as $name => $value)
<5> sorry this is the presentation file
<5> http://pastebin.com/597828
<2> !+short tags
<3> Short tags are <? or <%, and should never be used. They are scheduled for removal from PHP6, and are configuration dependant. Use <?php, period.
<5> that one before was the index
<6> hi?
<2> bye?
<6> hi stormchaser
<4> marcodefcon: sorry, i'm at a loss :-)
<7> Yes, "CHAPSTICK"
<5> dools / don't understand
<5> what loss?
<6> i have a question
<6> i know php and im trying to learn mysql
<6> but im on windows
<8> i too
<6> for creating a database on linux i should write this in the shell
<6> mysqladmin create mydb
<6> but in windows? where should i write that?



<8> create in phpmyadmin
<0> open a command prompt, run mysql -u user - p, type in your p***word, then run create database databasename;
<6> but where should i write that?
<9> chikun: run mysql from the command line
<6> should i use windows command line?
<6> is there any other way?
<9> chikun: yes
<0> unless you're going to write a php script to do it for you...
<9> chikun: you could use mysql-front to admin your database, or phpmyadmin, but you still need to create the db first.
<6> ok
<6> but which p***word should i put?
<0> have you setup the mysql server yet?
<2> chikun: WTF?!? #mysql, please. NOW!
<6> ok thanx
<10> cyphor: please note in the title, 'No, this is NOT #mysql'
<6> yes cyphor
<11> in the URL, where its like: www.blah.com/blah.php?field1=blah&field2=blah .....how do i do state the "OR" in the URL... like blah.com/blah.php?field1=blah&field1=blah2 or something like that??
<6> im using easy php thats installs everything
<2> Iontas: You don't
<6> cyphor can we talk in private?
<11> bleh...so i'm gonna have to re-write the query in blah.php then, right?
<0> yea, okay itrebal_sleep =)
<0> sure chikun
<0> message away
<6> damm
<6> i cant talk because im unregistered
<12> then join #holycracpchikunisunregisteredandneedshelp
<0> then try #mysql, although they aren't usually very helpful..
<8> :P
<6> cyphor can you go to mysql?
<6> we can talk there
<12> why dont you two just talk in another channel thats not taken?
<0> sure, for a few minutes..
<6> ok thanx dude
<0> itrebal, with all due respect, calm down..
<12> i'll be back later. i'm pissy early in the morning
<12> (5 minutes or so, after some breakfast i'll be good)
<8> see ya!
<13> how do you know if pdo is officially working ?....
<13> or rather.. if pdo is compiled right ?
<14> hi there, im trying to learn how functions work, can you help me to understand why this simple test function doesn't work? http://pastebin.com/597848
<12> compubomb: phpinfo
<13> itrebal: http://info.krob.ath.cx/phpinfo/?p***=hehe
<13> was pdo broken in php5.1.1 ?..
<12> compubomb: its showing but it doesnt like you?
<13> itrebal: it says that my object doesn't exit.
<13> i mean.. exist.
<13> http://rafb.net/paste/results/X1CnZq27.html itrebal
<12> what line does it complain?
<13> http://dev.krob.ath.cx/db-test.php
<12> its not liking the prepared statement?
<12> try print_r($dbc->prepare("SELECT FROM logs ORDER BY price DESC LIMIT 0,20"));
<13> itrebal: now it's saying http://dev.krob.ath.cx/db-test.php http://rafb.net/paste/results/akVhy330.html
<15> hey guys, is there a way to give a page post variables without using a form?
<12> it doesnt like the prepared statements, i dunno why
<12> deufo: you could use cURL, or javascript
<15> itebal ty
<12> compubomb: " If the database server successfully prepares the statement, PDO::prepare() returns a PDOStatement object. If the database server cannot successfully prepare the statement, PDO::prepare() returns FALSE."
<12> 1) can mysql store procedures?
<16> yup
<12> then... i dunno whats wrong
<16> since 4.1 as far as i remember
<17> since 5
<16> ah
<17> but "The MySQL implementation of stored routines is still in progress."
<18> how do I rename the key of a non numerically indexed array?
<16> i thought that was views and triggers new to 5, stored procedures seems were in 4.1.x too
<0> vhuren: http://us3.php.net/manual/en/ref.array.php
<13> i have MySQL 4.1.11
<18> cyphor: it doesnt have a function
<18> i checked there first
<0> vhuren: ok, so then if you want to rename the ***oc keys of an array you'll have to re-build the array..
<18> damn


Name:

Comments:

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






Return to #php
or
Go to some related logs:

Auf der Yacht nach Dr. Hossa mp3
mplayerplug-in fc5 selinux
#gentoo
#bash
gentoo gnome-themes clock skew
#web
#freedesktop
An update to portage is available
wingide egg
how many different license plates involving



Home  |  disclaimer  |  contact  |  submit quotes