Jump to content

inztinkt

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Everything posted by inztinkt

  1. anytime, set as solved, and have a nice day :)
  2. do a [s]google[/s] search for linux function wget ;) sorry forgot i couldnt use their name unless i was sure u would use their search engine as stated [url=http://googleblog.blogspot.com/2006/10/do-you-google.html]here[/url]
  3. ok on the form.php dont use sessions, unless theres a specific reason why you want to, like keeping the values over many pages, u can use $GET on the link back to form.php make it like this... [code] echo "</ul><br />To go back to Info Management, <a href=\"form.php?cartname=$cartname&ccountry=$ccountry&cprovince=$cprovince&ccity=$ccity\">click here</a>."; [/code] etc... and then do an if (isset(... to show if they have changed
  4. Article : http://www.sitepoint.com/article/rotate-content-with-dhtml Code : http://www.dynamicdrive.com/dynamicindex2/prohtmlticker.htm
  5. anytime... glad to have helped you. like many helped me here in the past :)
  6. hehe :) ok so you want these to be shown on form.php when they click the link that says "click here"?
  7. ok does that page display what is changed ? does it work?
  8. thorpe he is looking for a text rotator. jwk811 what you are looking for is a combination of JavaScript, possible mixed with PHP and if done  dynamically without refreshing the rest of the page, what it is referred to is AJAX (Asynchronous JavaScript and XML). now what you need to decide is the next step, are the paragraphs you want to rotate, going to be all loaded when the page opens or do you want to load a different paragraph every few seconds?
  9. my friend, you are calling the variables from the database 2 lines before u try update them at [code] <?php //include("connect_to_db.php"); //$query = "SELECT * FROM journal_publications where id=$id"; //$result = mysql_query($query); //ifset($edit); //$result = mysql_query($query); $id=mysql_query("select id from journal_publications where id=$edit"); $authors=mysql_query("select authors from journal_publications where id=$edit"); $title=mysql_query("select title from journal_publications where id=$edit"); $state=mysql_query("select state from journal_publications where id=$edit"); $place=mysql_query("select place from journal_publications where id=$edit"); $userfile=mysql_query("select userfile from journal_publications where id=$edit"); if($_POST['submit']) { $sql = mysql_query("update journal_publications set authors='$authors' ,title='$title', state='$state', place='$place', userfile='$userfile' where id='$edit'"); //echo "$sql"; $result = mysql_query($sql); [/code] try changing the variables in the query from lets say $authors to $_POST[authors] and it should work...
  10. simple, [b]comment out[/b] the whole mysql block and add this : [code] $dbh=mysql_connect ($dblocation, $dbusername, $dbpassword) or die(mysql_error()); $rs=mysql_query($sql,$dbh) or die (mysql_error()); [/code] showing us the errors in mysql, post back with wat it says
  11. alwaysinit, why not replace the session variables instead of unsetting and resetting them?? and redirect them to the form, not send them back.
  12. ok lets go back to the original scenario, in [b]functions.php[/b] change the line where it includes config.php to include it remotely like so : [code] include "/config.php"; [/code] and in [b]file.php[/b] change the include to look like this [code] include "/functions.php";[/code] this should work, fingers crossed :P
  13. ok wait u have two folders /www/ and /www/admin/ WHERE is the file you are working on and WHERE is the file you want included ? :) i iz confuzzled :P
  14. start by having a look at [url=http://www.phpfreaks.com/tutorials/142/0.php]http://www.phpfreaks.com/tutorials/142/0.php[/url]
  15. [quote author=thorpe link=topic=123378.msg509820#msg509820 date=1169394171] [code=php:0] include '../yourinclude.php'; [/code] [/quote] this will work
  16. while ($row...){ $graphValues$c [b].=[/b] $row['RATING']; } should put each rating into the variable
  17. [!--quoteo(post=366127:date=Apr 18 2006, 10:17 PM:name=feri_soft)--][div class=\'quotetop\']QUOTE(feri_soft @ Apr 18 2006, 10:17 PM) [snapback]366127[/snapback][/div][div class=\'quotemain\'][!--quotec--] so i must change it to date or try sorting by id ?? [/quote] well changing it to date format will make sorting by date possible, however if there is no way for a user to overide the date when inserting or updating the table, sorting by id would work.
  18. Once again, Barand you've tawt me somethin new, didnt knw u culd check arrays like tht. thanks :)
  19. easiest way from wat i can see is parse $email into the link field, so add [b]&email=$email[/b] in the link... assuming the rows are being parsed thru a 'while' each link shuld have a different email value, when doing a check for $link==approve, set $email = $_GET['email']
  20. keep the same format as above, only put the inform function above the update function, also make the inform_user function ask for an email variable by calling... function inform_user($email){ ... instead of function inform_user(){... and then in function update simply call an email variable and pass it by calling inform_user($email);
  21. as stated above, this would require javascript. a script that would run onChange to check the contents of the selection and then perform an action with it and then release it to the read only text field.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.