Welcome Guest.   Make a donation to an author on the site November 01, 2014, 04:50:57 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: [1] 2 3 4 5 6 ... 115 Next
1  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 31, 2014, 07:45:34 AM
Highly experimental. Not even sure if Sethra will survive it...  tongue
2  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 30, 2014, 06:16:38 PM
Do you anticipate departing soon?  ohmy
3  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 29, 2014, 07:45:06 AM
Thanks for the encouragement, guys smiley Hopefully, my muse will strike again soon. In the meantime, I make a little extra cash proofreading for people.
4  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: October 28, 2014, 03:55:11 PM
I have two free downloads of the audiobook version of Kyrathaba Rising to give away to DC members. If my illustrator and proofreader would contact me, I'll send you two your coupon codes and the link.

http://www.audible.com/pd/Sci-Fi-Fantasy/Kyrathaba-Rising-Audiobook/B00OSI3WAA/ref=a_search_c4_1_1_srTtl?qid=1414516940&sr=11
5  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 27, 2014, 08:16:44 AM
Thanks, Ath. That may be what the problem was. I found an online example and worked backward from it, and got it working:

http://williambryanmiller.com/proofreading/needProofreading.php
6  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 26, 2014, 05:25:42 PM
At this point, I can connect to my server, AND correctly select the desired database. My code even creates the needed table if it's not existent. But there's some little problem that prevents my code from inserting a record. To see the results, go to the following URL and enter a fake first name, last name, and email address and click the submit button:

http://williambryanmiller.com/proofreading/index.html

Below is my PHP Script. The only thing I've altered is to replace the actual database name and password with an asterisk, but we already know my code connects and selects the database.

Formatted for PHP with the GeSHI Syntax Highlighter [copy or print]
  1. <center><a href="index.html">Return to proofreading page</a></center>
  2.  
  3. <?php
  4.  
  5.  
  6. $tablename = 'proofreading_sought';
  7. $echo_on = true;
  8. $user="kyrathab";
  9. $password="*";
  10. $database="*";
  11. $mysql_host = "localhost";
  12.  
  13. if($_POST['firstname']=='')
  14. {
  15. ?>
  16. You should <a href="index.html">return</a> to my proofreading page, because
  17. <?php
  18. die(" you failed to enter data for your first name!");
  19. }
  20. if($_POST['lastname']=='')
  21. {
  22. ?>
  23. You should <a href="index.html">return</a> to my proofreading page, because
  24. <?php
  25. die(" you failed to enter data for your last name!");
  26. }
  27.  
  28. if($_POST['email']=='')
  29. {
  30. ?>
  31. You should <a href="index.html">return</a> to my proofreading page, because
  32. <?php
  33. die(" you failed to enter an email address!");
  34. }
  35.  
  36. echo 'Hello, ' . $_POST['firstname'] . ' ' . $_POST['lastname'] . '!<p>';
  37. echo 'You specified the following email address: ' . $_POST['email'] . '.';
  38. echo '<p>';
  39. echo "Your information was submitted. Thank you! You should hear back from the proofreader within the next 48 hours. ";
  40. echo "The proofreader will attempt to contact you at the following email address: " . $theMail . '<p>';
  41.  
  42.  
  43. mail("kyrathasoft@gmail.com","Interested in obtaining proofreading", $msg, 'From:' . $_POST['email']);
  44.  
  45. $link = mysql_connect($mysql_host, $user, $password);
  46. if (!$link) {
  47. die('Could not connect to host: ' . mysql_error());
  48. }
  49. echo 'Connected to host...<p>';
  50.  
  51. $db_selected = mysql_select_db($database, $link) or die('Connected to host but could not select database: ' . mysql_error());
  52. echo 'Connected successfully to the database...<p>';
  53.  
  54. if (!blnTableNameFoundInDatabase($database,$tablename)){
  55. //Let's create the table...
  56. if($echo_on){ echo "Creating table $tablename"; }
  57. $query = "CREATE TABLE $tablename
  58. ( ID int unsigned not null auto_increment primary key,
  59. FirstName char(45) not null, LastName char(45) not null,
  60. Email char(50) not null)";
  61. @mysql_query($query) or Die('Failed to create table $tablename, script dies...' . mysql_error());
  62. $blnJustCreatedTable = True;
  63. }
  64.  
  65. $query = "INSERT INTO $tablename (FirstName, LastName, Email)
  66. VALUES ($first, $last, $theMail)";
  67. mysql_query($query) or die('Insertion failed!' . mysql_error() . '<p>');
  68.  
  69.  
  70. $file = 'proofread_seekers.txt';
  71. // The new person to add to the file
  72. $person = $name . '|' . $theMail . '|' . date("Y-m-d H:i:s") . "\n";
  73. // Write the contents to the file,
  74. // using the FILE_APPEND flag to append the content to the end of the file
  75. // and the LOCK_EX flag to prevent anyone else writing to the file at the same time
  76. file_put_contents($file, $person, FILE_APPEND | LOCK_EX);
  77.  
  78. function blnTableNameFoundInDatabase($the_database, $the_tablename){
  79. $res = mysql_query("SHOW TABLES FROM $the_database");
  80. $bln = False;
  81. while($row = mysql_fetch_array($res, MYSQL_NUM)){
  82. if($row[0] == $the_tablename){ $bln = True; }
  83. }
  84. return $bln;
  85. }
  86.  
  87.  
  88. ?>

If anyone can test the web form and take a gander at my PHP and figure out why it's producing the error, I'd be much obliged.
7  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 10:15:41 PM
@Stoic gotcha. I derived my code from sample code in a php/mysql Head First book.
8  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 09:35:47 PM
The help guy disabled the module that was causing the error message I showed earlier. But now I'm getting this error_log:

Quote
[21-Jul-2014 22:30:42 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/: cannot read file data: Is a directory in Unknown on line 0
9  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 09:34:29 PM
Both lines of the $query are needed. The "VALUES..." needs to be concatenated with the dot operator to the previous line, because you must match values to the number of column parameters passed into the table.
10  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 08:15:43 PM
Charles Little, one of the support staff, is helping me sort it. I'll post back the solution we arrive at.
11  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 05:17:09 PM
Note: the following line of code never gets executed:

Quote
echo "Your data was successfully added to the database.";
12  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 05:15:20 PM
I'm attaching my PHP script. The only thing I've changed is that I substituted the pound symbol (#) in place of the actual characters used in my db password, username, etc.

That, and the attached file ends in .txt instead of .php. Now, be gentle, I've never written PHP code before, so it's probably not well-formed. But see if anything is a deal-breaker
in the code. I'm not triggering the die( ) function in my code.
13  Other Software / Developer's Corner / Re: Data not being written to MySQL DB on: July 21, 2014, 04:22:34 PM
Dunno that I have access. This is on a gamera host. I have filed a support ticket.
14  Other Software / Developer's Corner / Data not being written to MySQL DB on: July 21, 2014, 03:33:21 PM
I have a very simple web form that collects firstname, lastname, and email address from someone visiting my Proofreading Services page and wanting to contact me regarding me doing some proofreading work for them.

I'm quite sure that my username, database, password, and host are set correctly, and my attempt to write to the database doesn't trigger a die(), and yet...

No data gets written to the MySQL database table. Furthermore, I get the following error-log info:

Quote
[21-Jul-2014 16:24:38 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[21-Jul-2014 16:28:38 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll: cannot open shared object file: No such file or directory in Unknown on line 0
15  Other Software / Developer's Corner / Re: searching the web (in particular, Amazon.com) from c# program on: July 04, 2014, 07:56:27 AM
I'm downloading the Amazon Web Services SDK, but if there's a quick and dirty way of getting what I want, I'd rather not have to delve into all of that.
16  Other Software / Developer's Corner / searching the web (in particular, Amazon.com) from c# program on: July 04, 2014, 07:54:17 AM
Does anyone know of a free class or control I can use that abstracts away the nitty-gritty details of the search implementation and will simply allow me to search for eBook titles on Amazon.com? Ideally, user could enter a search string in my program (e.g., "Kyrathaba Rising"), and the program would then search Amazon.com for that title.
17  Other Software / Developer's Corner / Re: friend can't run progs made with .net 4.5 on his XP machine on: July 04, 2014, 07:52:09 AM
SOLVED.

Thanks, all.
18  Other Software / Developer's Corner / Re: friend can't run progs made with .net 4.5 on his XP machine on: July 03, 2014, 09:41:40 PM
Aha. I already had 2.0.  I just went to the Application tab under Project Properties and specified 2.0 instead of 4.5.
19  Other Software / Developer's Corner / Re: friend can't run progs made with .net 4.5 on his XP machine on: July 03, 2014, 08:56:56 PM
Is it possible to install 2.0 alongside 4.5 and then tell Visual Studio Express which version to use in a given project?
20  Other Software / Developer's Corner / Re: friend can't run progs made with .net 4.5 on his XP machine on: July 03, 2014, 08:46:21 PM
Is there a relatively painless way to downgrade,  or would I have to manually uninstall 4.5, download 2.0, and install it?
21  Other Software / Developer's Corner / friend can't run progs made with .net 4.5 on his XP machine on: July 03, 2014, 08:19:26 PM
I'm trying to collaborate with a friend on an idea for an app. Im building on a Win 7 machine using C# on top of .Net 4.5. He's running WinXP and gets a Not a valid win32 app message when he tries to run my program. Even when I use the x86 build configuration. I think it's because .Net 4.5 is for Vista forward (per Stackoverflow.com). Any solution so he can run my progs?
22  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: June 22, 2014, 10:01:47 AM
Thanks, rgdot!
23  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: June 22, 2014, 09:24:21 AM
Mm, well, it should propagate to authorscave.com/brd/ soon.
24  Main Area and Open Discussion / Living Room / Re: Sci-fi novel now available from DC member kyrathaba! on: June 22, 2014, 09:16:40 AM
Wanted to let everyone know that "Kyrathaba Rising" won book of the month on Book Review Depot, a 1,200-member book review group:

https://www.facebook.com/groups/BookReviewDepot/permalink/295659287274823/?comment_id=295663907274361&notif_t=group_comment_reply
25  Other Software / Developer's Corner / Re: Need help with some string manip in C# on: June 21, 2014, 10:02:05 PM
Yeah, I installed Regulator, but I really need to do some studying of regexes.
Pages: [1] 2 3 4 5 6 ... 115 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.124s | Server load: 0.16 ]