| |
| |
| |
|
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
Comments:
<0> lunkback <1> CopyNinja: substr <0> link <2> aidan`: hm, well whatever i'm getting, when i try to change variables by treating the returned value as an object, it ain't working. it's behaving like i have a copy of an object <1> _zz: then you've copied it somewhere else <3> Hi, I guess this is a combined sql/php question so Ill ask here. How do I check if a value exists in a mysql table column with php? <1> or you're unsure of what you're actually doing <4> heh that's just great.. I need to retrieve data from 4 application servers that are behind a load balancer.. one of the guys from the old team just looped over the same IP a number of times <4> I guess I'll do the same <1> tempo2k: you query the database, and check if the query returns what you expect <4> and hope I'll go 'yay, touchdown' <5> Lunis: My bad it's color: not font-color <1> HolyGoat: oh you're having fun I can tell! <2> $e = new SelectElement($name, $value, $state); <2> $this->elements[$index] = $e; <3> aidan` I was looking for specific funtions to do that. Like is there a funtion that check it the result is empty?
<2> aidan`: does this copy the object <2> ? <4> aidan`: hehe, it's miserable. I wish we had a database server in the live environment <2> and then return $e... <1> yes, that copies it. <2> ah, for crying out freakin loud... <1> tempo2k: isset() <1> _zz: php4 is stupid. But, whenever you're using an object, =& <4> (although even if we had a database server, DBA said that they could only scale vertically, which would still ****) <3> Well I want to check if the resultset it empty, that's not the ideal function to use right? <1> simple as that <6> omg <1> tempo2k: you need to query the database. you need to check the result of the query. if the result is what you expect when it's empty, it's empty. If it's not, it's not. <3> I don't understand what you are saing aidan`. <1> tempo2k: then you need to go through a couple of basic php/mysql tutorials <3> No you need express youself better... <7> tempo2k, what do you wish to know: if a certain field is empty or if the complete resultset is empty? <3> The second <7> what database are you using? <3> Mysql <3> You cant use isset on a resultset can you? <1> no <1> his question was "How do I check if a value exists in a mysql table column with php?" <7> if(!mysql_result($query)){} <1> are you changing your question now, tempo2k? <1> Ruud: no... <7> sorry <7> my bad <7> if(!mysql_query($query){} // for error <7> otherwise: <1> mysql_result($query) jesus <7> mysql_num_rows() <1> right, mysql_num_rows for a result set, which is not what he asked <5> I'm not 100% sure, but a 'result' is returned even if your query is empty. <5> just as long as it's valid. <5> so yes mysql_num_rows() is the way to go. <8> ohh im looking at my server logs right now... google google and google bot.... seems like they are crawling my site but they are not actually indexing it ( site:somesite.com) doesnt really return anything,. any ideas? <8> they started like a month ago <1> Drakas: relax and wait a week? <8> aidan`: i already waited :) <1> maybe they hate your site <8> :D <8> ill just give them a link <3> the-drew Yes that's probably something I want <3> thanks <3> and aidan` dont be a smart*** <8> tempo2k: the-erm.. ? <1> tempo2k: don't be a dumbarse <9> Results 11 - 20 of about 1,020 from joshstmarie.com for . (0.13 seconds) <9> i have way too many results <3> Drakas what? <8> oh fck, the same thing is with msn too :D <9> one is a god damn php warning <8> tempo2k: you thanked a wrong person :) <3> I did? Oh sorry the text went by so fast. <8> my site has been indexed like around 5 months ago and the date is still in google, very very very old.. <3> Thanks Ruud <8> :) <8> msn is a thieve, they take google's results <8> hmm they changed the look of msn search today
<7> microsoft are thieves period Drakas, you should know that :) <8> oh sweet, msn just indexed my site today :D! <8> the content is now on! <8> yesterday wasnt <8> Ruud: msn _literally_ probably crawl all search engines to get more results :D <8> thats why google looses a lot of bandwidth probably:) <10> hey. is there function like substr, but that wouldn't break words apart? <8> is MS richer than google or not? <11> How do I display a URL from a mySQL db? <11> Here's what I have http://pastebin.com/559390 <11> Heres the page. <11> http://root404.com <11> http://root404.com/test2.php <8> :D <11> Sorry <11> How do I make it go to the page it pulls out? <7> header('Location:') ??? <11> Im a noob at PHP...what exactly does that do? <8> root404|brb: http://pastebin.com/559393 <7> redirect <8> then instead of echo $row['url']; do header("Location: {$row['url']}"); <8> ugh, chocolate is entering y mouth again... nOOOO! <7> no { }, i've edited the pastebin <12> Hello, does anybody know of a good project management system based on php or a good time tracker system based on php, but not a full CMS like joomla or drupal <8> +g3 TimothyP <8> +!g3 TimothyP <8> no pre-made script talk :P <11> Drakas: http://root404.com/test2.php <12> oh ok <11> Is it supposed to redirect? <12> sorry :) <8> Drakas then instead of echo $row['url']; do header("Location: {$row['url']}"); <11> Awesome! <11> I love you drakas <5> Looks like a budding irc relationship ... <11> It is. <5> Just invite us to the wedding. <11> Im going to be in here awhile, because...well that site is going to need more stuf. <11> stuff* <11> What do you think of it so faR? <11> Aww. <8> root404|brb: tried http://php.net/header http://php.net/mysql ? <11> It's working now. <11> I love you. <11> But, will you help me include a frame above each one? <8> root404|brb: thats html.. <11> I know. <11> But don't I need to include it in the PHP? <11> Or something? <8> root404|brb: make a page with frameset and then a bottom frame a link to the actual script you just wrote.. <8> and you are going to have what you want <5> are we talking an actual frame, or borders ... like header, footer? <11> frame <8> or, you could try it an easier way, just link the bottom frame to the url, so the html frameset will have php <8> root404|brb: something like in tutorialized.com ? <13> frames are evil <11> lol <7> frames are soooooo 1981 <8> i know :) but thats what root404|brb wants to do :] <11> I know. <8> nobody really likes frames here.. <11> Well I just want my header above each one. <11> Lol <13> there's this funky new technology called "css" I love it! <14> I know what CSS is! <14> Lol. <13> ahh right <13> heheh <14> Im a webdesigner. But im very new to PHP, im not sure how I should do these things <5> http://www.tutorialized.com/ doesn't have a 'frame' those are divs <14> Ok.
Return to
#php or Go to some related
logs:
ubuntu remove psa-imp #javascript #physics #perl *Warning*: mail() [function.mail SMTP server response: 550 5.7.1 Unable to relay centos 5 .xpm snow ubuntu CXXABI_1.3.1 not found konqueror gentoo #php #css
|
|