| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> but im sure its a problem in php, not the script <1> what if you use gmdate()? <2> I've never received such a warning. <1> are you in...some weird language or country? <0> no, me neither <0> not much on google <0> im in uk english <1> maybe try setlocale? <0> what is everyones date.timezone setting in php.ini? <0> it's printing the date fine, just giving me that warning <1> date.timezoneno valueno value <1> turn the warning off <2> Guess I don't have E_STRICT enable, probably why I don't get it. <3> Kieren, you can always use the function muted @date <2> thought I did. I see that smarty throws a ****load of warnings with it enabled though, so I'll just leave it off for now. <0> yeah but id rather fix it :)
<0> i dont have strict on either <0> E_ALL & ~E_NOTICE | E_STRICT <3> Kieren, but anyway try to: setlocale(LC_ALL, 'en_us'); <2> http://us3.php.net/manual/en/function.date-default-timezone-set.php <0> setlocale(LC_ALL, 'en_us'); didnt helop <0> help <0> changing to error_reporting = E_ERROR fixed it <2> You can use error_reporting = E_ALL <2> E_STRICT is what throws it, which isn't included in E_ALL <2> you could just use the date_default_timezone_set functiont too. <0> i dont want warnings <4> you should <0> i was using E_ALL & ~E_NOTICE | E_STRICT so that should have stoped it <4> your scripts should be created in such a way that you don't produce errors or warnings <2> No it wouldn't <1> i like warnings <2> (E_ALL & ~E_NOTICE) | E_STRICT <-- operator precedence <2> E_ALL & ~E_NOTICE & ~E_STRICT that's what you want. <0> ah, i see <0> that sorted it too :) <0> thanks :) <0> right, now for dinner <5> is there a way to add a dynamic loading percentage bar which will say how many percent have been uploaded so far after submitting some files to a website? <6> not using php <5> using what? <6> using asp or perl <6> or jsp <5> ic <1> take the number of files uploaded, divide by the total to upload, and then make a table with or portion width with that percent <1> :D <6> http://www.raditha.com/php/progress.php <6> I was faced with teh same situation some months ago <6> and found that. Never was able to get it to work satisfactorily, though. <6> I loathe perl <5> that demo is pretty cool <7> hi all <7> I wanna includ another file by PHPLib(template) <7> page.html to index.html <6> include("page.html"); <7> Not by php <7> phplib <1> require_sometimes("page.html"); <7> template systeme <6> you can't run php code in an html file by default <6> but yeah <6> topic <6> this isn't #phplib <6> this is #php <4> this pam authentication **** is pissing me off <7> :/ <8> Question: I am using a header() redirect with a bunch of variables as well as a named anchor... problem is, in firefox, when the page loads it does not jump to the named anchor, I have to REFRESH the page in order for it to do that. Any ideas? <1> you're not getting an error? <9> why does your header have an anchor? <0> i think he means like index.html#top?foo=bar <8> because it goes back to a page they were originally on, and I want them to scroll down to the location on the page they were on. <8> yes... like that <8> actually... I think I fixed it :) <1> it's crazy how that happens <8> thanks for your help
<8> lol <2> anchors always go last <2> index.html?foo=bar#anchor <0> oh, ok <0> ive never used them <10> ... but if you called foo, would it include #anchore? <2> no. the stuff after the # isn't sent as part of the request <11> what if you included a # in the request? would it ignore it? <1> i don't think it matters in a request <12> anyone who knows drupal and wants money, come to #phpjobs <1> @google drupal <13> Search results for drupal: <13> http://drupal.org/ <13> http://drupal.org/handbook <13> http://en.wikipedia.org/wiki/Drupal <13> http://www.debian.org/security/2006/dsa-958 <13> http://www.drupal.org.es/ <13> http://www.google.com/search?hl=en&ie=ISO-8859-1&q=drupal&btnG=Google+Search <14> http://www.dilbert.com/ <14> that's the best ever. <1> what's the easiest way to detect if soemone's on a proxy <4> http://www.dilbert.com/comics/dilbert/archive/images/dilbert20012212160222.gif <15> the cl***y thing about dilbert.com is the popup ads <16> :-/ <16> Trying to figure out effective UPDATE syntax. <16> GET variables include action=moddo, which specifies that the user is ready to modify a row... <16> tableid=0 or 1, which specifies which table the row is in <16> And rowid=?, which specifies which row to update according to a previous query. <16> New values for all columns are POSTed. <16> How can I make that apply correctly to a new UPDATE query? <1> what are you talking about...? <17> Willis? <16> mySQL query. <16> Okay... <16> My earlier query was as follows: <16> $db = mysql_query("SELECT * FROM `Savings Accounts` ORDER BY `Account Balance` DESC"); <16> In the FOR loop displaying the query using php, I put code as follows: <16> <a href=\"editfinances.php?action=mod&tableid=2&rowid=".$a."\">Modify</a> <16> With a separate one for action=del/Delete. <16> This takes the user to another form, where they modify the values in that row. <16> After they do so, they click a 'submit' button, which loops back to another branch of the same php file using the action=moddo $_GET variable. <16> And preserving the row and tableids in the $_GET, as well. <16> I'm wondering how I need to structure my UPDATE query (I ***ume update is what I need) in code for the moddo action to update the correct row. <1> mysql_query("update `table` set `first` = 'something', `second` = 'anotherthing' where `id`='{$_GET['rowid']}'") <16> ! <16> Thanks! <16> I'll have to restructure several parts of my program, knowing how to get the row id internal to the database... <16> I was using the incrementing value in the FOR loop. <16> Thank you again for your answer, fedt; you've been damn helpful. <16> Odd. <16> $rowid = mysql_result($db,$a,'id') is returning null. <16> fedt, is there a special syntax needed to get the current row's id from the table? <16> Disregard. <16> I have once again proven my idiocy. <16> When ***igning an autoincrementing ID, should one also declare it primary, index, or unique? <4> it should be a primary key <16> Understood. <16> Everybody: Thanks for being so patient with me. <16> And it will automatically be ***igned upon INSERT? <16> No need for extra syntax there? <2> I think you have to declare an auto-increment as primary key <2> mysql won't let you declare it something else. <16> I'm creating the id via phpmyadmin, so at the moment I'm just filling in text boxes and clicking option buttons. :-) <16> Thank you, though. <16> Should I be concerned about a cardinality value of 2? <2> what do you mean by that? <16> Something I noticed in phpmyadmin that probably means nothing bad. <16> My primary key apparently has a cardinality of 2. <2> I havn't used phpMyAdmin in a while, so I'm not sure what you're talking about really. <2> What data type did you use for it? <2> int(11) unsigned is the most common. <15> two is the very worst cardinality of ALL <15> you'd better fix that <16> By which you mean "cardinality of 2 is no problem at all," eh, chalupah?
Return to
#php or Go to some related
logs:
#allnitecafe #india tc buttman bkhive ubuntu zEr0c0oL #worldchat #allnitecafe saiz tetek netcafe #india
|
|