| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> anything <0> well its, $first_name actually <0> And it DOES contain a first name. <0> :s <1> so you're echoing the contents of the variable? <0> uh wait up <0> hm, weird. it doesnt seem to have anything in it :o man this is strange.. :s <0> works fine on all other sevrs I've tried this on <1> is it a get or post variable that you're trying to access directly using the variable name? <1> like blah.php?first_name=bob <0> I have a html form, which POST to make.php, in make.php I have if(empty($first_name)) {die.. <0> which always dies ;\ <2> I banned someone from my website and they are using a proxy. I want to be able to install a php function that will get their real ip from the proxy header and see if it's the same person I banned. <1> yes. <1> don't use $first_name <1> use $_POST['first_name']
<0> if (empty ($_POST['first_name'])) { <-- like that? <1> this server must (as it really should) have register_globals turned off <1> yeah <0> oh, ok thx I'll try <1> or at the top put $first_name=$_POST['first_name']; <1> then you don't need to change your existing code <1> but you should always use the $_GET or $_POST variables instead of trying to do $first_name <1> otherwise you'll run into the problem you're having now sooner or later <0> ok <1> even if you ***ign the get or post item to a variable <2> ..... <1> darkskye`, I have no idea. <1> tried google? <2> YES.. <1> ok <2> sorry, caps. <1> http://forums.devshed.com/html-programming-1/how-to-retrieve-client-ip-address-63989.html <1> see if that helps you <1> sorry for the 3-minute delay; I've never messed with proxies before. <1> had to google it. <2> hmmm <3> i got a script that takes entries from a database and displays them, but when it displays them it shows them last entry at the bottom and first entry at the top, how can i get it to be organised by row number? <3> the not them <3> i've got a row number on each entry of the database. <1> what's the name of your row column? <3> "row" haha <2> Robdgreat, I just made a file called, index.php and put in the code 'sizeof' posted on that site <2> should i do something when i go that site? <1> you'd put ORDER BY row DESC <3> thanks :) <1> np <1> you should read the code <1> it shows how to try to get the person's ip from the header <2> im reading it <2> ill let you know that i'm not big php coder <4> alright dudes. can i run another sql query whilst in a 'while' loop of another sql query? <5> sure <5> but you could probably find a better way <5> because that'll end up being hell on a server <4> ive been wracking my brain over it. its the only way to be done <5> what are you doing? <4> k i have a query SELECT * FROM photos_album ORDER BY date DESC <2> Robdgreat, can i pm you or no? <1> hell, go ahead. <2> really? <1> yeah. <4> thers a while loop after that basically gets all the results and displays them <4> but ive decided i want thumbnails underneath the displayed results <0> Robdgreat: Great, it worked! Thanks again for your help, m8! :-) <4> ive got another table called photos_photo <1> glad to help <4> photos_album has a primary key of album_no ....... photos_photo has a foriegn key of album_no from photos_album <4> so each photo basically can be ***ociated with a particular album <4> www.vivalashermans.co.uk/photos <5> ok <5> so join them? <3> if you wanna delete multiple rows from a database at once... would you write DELETE FROM news LIMIT 1 , 30 or ... ? <4> yeah but im not sure howd that work. SELECT * FROM photos_album ORDER BY date DESC would say return THU 19/01/2006 - O'NEILLS - STIRLING which is album no 4 (because i know it is). So i want that displayed then underneath i want all the thumbnails ***ociated with album no 4 <4> but just cos i know its album no 4 doesnt mean its in the code <4> if ya know what i mean hehe <4> i would need to select * from photos_photo where album_no=4
<4> but how would i get the 4? <5> huh? <5> wait <5> why'd you set up foreign keys if you don't know how to join? :P <4> i have no idea what joining is. im new to all this mullarky! <4> sorry if your looking on the site i meant to say 6!... not 4 :-) <4> never realised how difficult it is explaining php problems sometimes <4> think ive just confused the hell outa the whole room <4> yeah the tables are joined <4> is there somewhere i can paste the code? <5> pastebin.com <0> Robdgreat: You there? May I ask you another question:)? <6> apache crashes when i try and use php_openssl.dll any idea why? <5> because you touch yourself at night <3> lol <6> **** i knew that would get me some day <3> it's funny cause it's true <0> I have the same problem again, now only with a switch statement. Now it always ends up on the default: is there any similar way to solve that? Its like page.php?module=page and I tried in the switch to do $module = $_POST['module']; and things like that, althugh no luck ;\ Anyone got ne idea how I could solve this? <0> (register_globals is off (i think)) <7> what does FK stand for ? <4> ok heres some of the code and ive tried to explain the problem a bit better... http://pastebin.com/528137 <5> in what context? <5> jaffacakes82: that didn't help at all <7> Invoice_FKIndex1 <5> .. <5> something internal? <7> I don't have a clue... <7> just something i seen. <7> and asked a q. <4> ok. when it that while loop of the code, it gets a row from the query, and within that row theres a album_no so say i put the value of the album_no into a variable called $albumno. to get the thumbnails i have to run another query within the while loop.. select * photos_photo where album_no=$albumno and get all the photo info 1 by 1 within a while loop. <4> unless someone knows another way <4> http://www.vivalashermans.co.uk/photos/index.php?album=6 .... if i already have an album number its cool <4> cos i just select all the photos that have an album no of 6 <5> like i said, left join <4> ahh. ok :-) <4> sorry for the h***le just didnt know you could do that. started php/sql last week <4> ta for your help <8> sup niglers <9> got that bling? <10> fink? <9> *** 51 points awarded to jedgamer. 'utility': (1 + 1 + 1 + 1 + 0 + 1 + 1) x 2. 35 point bingo bonus. <9> http://profiles.games.yahoo.com/games/profile2?name=jedgamer&intl=us&consolidater=literati.yahoo <9> unstoppable <9> that's right <11> any suggestions on an UPS? <11> for a home pc, no servers or anything. <9> i've never used one so i can't say <9> i've also never been burned on it <12> jedzilla.. u, me, litertari <9> soon <9> i'm in a game <12> screw ur excuses <9> i'll let you know as soon as i'm out of it <9> promise <9> beginner lounge 2 <9> sign in <9> spectate table 111 <12> lol <12> damn, now i'm in a game <12> ok one sec <12> are u still playing? <9> yes <12> k <9> it should be pretty low in the room <9> it's protected and full <10> anyone play bootleggers? <9> hurry up stoned <9> getting close <9> beg lounge 2 tbl 111 <9> you can join more than one table just sit on it <12> i know. but i can't conceNtRaTE <9> lol <9> 262-140
Return to
#php or Go to some related
logs:
#india #kl #india #allnitecafe anniekongfb #php LILIPUTIONS PICTURE papaya farm #allnitecafe #allnitecafe
|
|