| |
| |
| |
|
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> S4nD3r, We know your _problem_ <0> You need to help us to solve it. <1> ok... <0> ECHO your sql statement and check to see if it's correct <2> bets that he'll just copy the line from the code? <0> CryWolf, Don't jynx it <1> Notice: Undefined variable: submit in f:\unemat\site\php\funcoes.php on line 4 <1> string(113) " <1> Notice: Undefined index: id in f:\\unemat\\site\\php\\funcoes.php on line 29 <1> " Realizando alteracao no registro.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= <1> Notice: Undefined index: id in f:\\unemat\\ <0> Well. <0> S4nD3r, Take a moment and _read_ those messages and fix them. <0> Starting with the first one. <1> ok. <1> ?
<0> What? <0> I guess you want me to walk you through it... <0> Okay. Where is $submit coming from? <1> That comes from a $_post <1> http://localhost/php/funcoes.php?id=%201 shomething like that <1> no no <1> Im getting crazy.... <1> I just use $submit when I add new record <0> You said that $submit comes from $_POST but I don't see any reference to $_POST in your code. <0> Last I checked php required you to use $_POST to access POST vars. <1> I change the php.ini <1> globals to on <0> no don't do that <1> Tell me ... I need to get the last value from field into database, and put this in a variable. <1> How to do this ? <0> <input type="hidden" name="id" value="<?php echo $myrow["id"]?>"> <-- Do you have a column called id? <1> No. <0> So then why are you echoing a column that doesn't exist? <2> There appears to be a severe conceptual disconnect here. <0> 20 minutes till boondocks <1> I really dont know... <1> the column exists into database <0> What? <1> id_docente <1> that is the column <0> Okay <0> So did you fix that particular line in your code to reflect the _correct_ column name? <3> hmmmmmmmmmmmmmm ... i have a $obj, that i am trying to include into a function by referencing the global scope as opposed to p***ing it in as a parameter. when i print_r/var_dump the $obj (after referencing it), it thinks its an object, but when i try and call a method from that object, it says the method does not exist. any clues? <3> .. i have tried calling the method by call_user_func, but same deal <1> http://pastebin.com/541143 This is the form used to fill.... <1> http://pastebin.com/541121 This get the id to edit, delete, and insert into database <2> S4nD3r: and what does the form itself look like? <1> the script to insert <2> S4nD3r: what is the output of the script that generates the form? <0> i give the **** up <1> Its wrong the discription <2> S4nD3r: you do understand the difference between script and output, right? <1> Ok ! <1> Keep patiente.. please... I promess I will become a good php programmer... <1> ok guys <1> dont get nervous... I really need some help <1> I tried to create my own sources reading PDF books...But some, didnt have the database fields, another had <1> sources wrongs.... <1> then, I became in trouble <2> S4nD3r: you're supposed to create scripts by applying logic. <1> yes ! <4> hey guys, what is the best way to show all of the tables in a database that i have access to, but with no access to the "mysql" database? (not using mysql command line) i want to output to a page <1> I discovered that I dont need a .html file.... I can create the form in the same file that to put the script <2> kerplunk_: there's probably a mysql command you can use. <1> I got to create a delete script... lol <1> Its so easy ! <2> S4nD3r: have you read php.net/tutorial ? <1> I need php using forms plus mysql <1> to get reach my subject <2> S4nD3r: have you read the tutorial? <1> this one you told, i didnt read <2> Start there. <1> I thought to get some tutorial using praticals scripts like add, edit, delete, view datas from database <1> But... as you told... I will do thatt... <1> Is possible to download it ?? I dont have fast internet every day.... Im have dialup conection yet... Just at work I have fast ne <1> one
<2> S4nD3r: you can look for tutorials on the internet. But most of them are crap. Verify everything against php.net, and if there's conflict, info on php.net is correct. <2> S4nD3r: php.net/download-docs.php <1> ok then... <1> Ready... I downloaded the tutorial in my language, this will be easier... <1> soon I will be back to discuss about intermediate issues <3> gah @ global and my object not being itself :@ <1> what about editor to use with php <1> which do you recomend ? <5> how do i enable it soo that if there a problem with a script thet php shows it in the browser ? <1> To use PHP through the internet, I need to use the forms in a .html files separated?? <1> separated from .php files <6> If I try to input something into a mysql db through php, it doesn't work. But if I do it through the mysql command line, it works. Any ideas? <6> I'm using the exact same query... <2> htns: what's the error? <6> Nothing, I'm trying to figure that out right now. <6> I set $r to be the mysql_query. And echoed $r, but it shows up nothing. <2> htns: try var_dump($r) instead <7> Is there a way for a bullet proof method of finding out wether or not that URL is a valid image? <7> Without using to many CPU resources? (GD Lib) <6> CryWolf: I got Resource id #11 <2> htns: excellect. the query succeeded. <8> how cana preq_match have an option to accept the pattern if it includes a negative sign? (example -10 is acceptable) <6> CryWolf: ....it's not affecting the db though. I refreshed it and everything. It's so weird... <6> nm, I think I figured it out <8> ^(\-)?\d{1,2}$ -> accepts negative or positive numbers with 2 digits only correct? <9> Does anyone know how to keep checkbox state after form post? <10> checked ? sounds like HTML things to me <11> i think what he is trying to do is when submitting a form field checked box he wants to catch the state of that checkbox, weather it be checked or not <9> Let's say I check the box and hit submit a php code finds out if it is checked and then displays something. <9> But I want the check box to stay checked after hitting submits. <12> Hi. Is there a more elegant way to do this: if (!(array_search($foo[0], $foo) === FALSE)) ? <12> Oh wait. I didn't try !== :| <12> Hah. =) <12> Got it :| <10> ghost, you talking about the page after submits ? or while submit ? <9> after <10> the next page loaded after you submit ? <9> Doesn't matter what it is before as long as it stays what you check it after you submit. -- It's the same page. <10> <input type=checkbox checked> <11> but how do you catch the value of "checked" to know wheather the box has been checked? <9> yeah but you also have to know if it was check or not and if it was do that code but not have it if it wasn't <9> if (isset($_POST['chbx'])) { // box was checked <9> $boxChecked = "checked"; <9> } else { // box was not checked <10> ghost, var_dump($_POST[chbx] <10> its multi-dimension array <10> $var[chbx][0], $var[chbx][1], $var[chbx][2], etc... <10> bbl <9> ok ill check that out <5> Notice: Use of undefined constant val1 - ***umed 'val1' in /srv/www/site/calculate.php on line 2 ????????????????????????????? <13> in phpmyadmin, how do i set it up from the cli to mae it acessible from any addresss? <14> junix-other, we are not phpmyadmin support <13> ok <9> I need help on http://cpp.sourceforge.net/?show=12284 <8> i have $date="m/d/y"; -> want to regress one day , existing function to do so = ? <11> stedios: http://us2.php.net/date <8> ah i see, near bottom ;0 thx <15> Hi! does anyone know how to "share" a cookie between multiple domains (not subdomains)? i have a site that has multiple domains as entry points and i want to share the session information, so the user doesn't need to log if they get to my site from a different url... any ideas? <14> you can set the cookie multiple times <11> but isn't the cookie value derived from the domain <11> name in some way? <15> aurora, i have set one cookie for every domain... and it doesn't work.. <14> well, you can't really do it i'm afraid <15> um... <14> if that wont work <15> osdn shares login information between each of its members sites... <14> yep <14> it can certainly be done <14> hackily <15> :-S <14> and the only way i know of is to set each cookie once for each domain <14> if you wanted to share login, that could be a bit different <16> I don't understand the array_multisort() function. I'm trying to sort this multi-dimensional array by "months" http://pastebin.com/541204 <15> setcookie('global', md5($session_id), time()+1209600, 'host1.local'); setcookie('global', md5($session_id), time()+1209600, 'host2.local');
Return to
#php or Go to some related
logs:
whack each other off
c compiler cannot create executables debain apt-find deb property attribute + DontEnum + AJAX #php %u2018 encoding UniversalBrowserRead trusted sites mdb hotcopy ubuntu ur012i #web
|
|