Jump to content
Larry Ullman's Book Forums

lyleb

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About lyleb

  • Rank
    Newbie
  1. I'm using phpmyadmin. If I run the following query, it inserts a record just fine: INSERT INTO`council_terms` VALUES (NULL,'2001-02-13','2003-02-12',800,400,400); If I click on "Create PHP Code," it gives me this: $sql = 'INSERT INTO`council_terms` VALUES (NULL,\'2001-02-13\',\'2003-02-12\',800,400,400);'; How do I replace the values in $sql above with the values from the form? That's where I seem to be having difficulty.
  2. My real problem is that I've created a database called rezman_com_events that has the following table called council_terms: Field Type Null Key Default Extra council_term_id smallint(5) unsigned NO PRI NULL auto_increment council_term_start date NO UNI NULL council_term_end date NO UNI NULL council_term_voters smallint(5) unsigned YES NULL council_term_chiefvotes
  3. I contacted Fastwebserver about phpinfo() and about the mysqli extension and here is what they said: "As you said phpinfo() has been disabled. This is a production server and the system admins decided to lock it down to protect the users. If you need to know specific PHP config details please let m kenow and I will send you the information. Mysqli extensions are not enabled. You can use the standard mysql functions instead."
  4. Another bit of info, the mysql select version() function returns 5.0.67-community. My service provider is fastwebserver.com.
  5. Yes, I have been using both apps for creating and uploading html files and they work fine. I modified the html page as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>PHP Configuration</title> </head> <body> <?php error_reporting(E_ALL); echo 'PHP Version: ' . phpversion(); phpinfo(); ?> </body> <
  6. Aptana Studio 3, but I've also tried creating the script in the service providers file management system. I'm using FTP Voyager to upload the file I create locally.
  7. Tried it. I reduced the file to the above line and nothing esle. Still doesn't work. The URL is: http://rezman.com/council/test.php
  8. There is no space before the "()". As far as declaring two document types, I don't think so.
  9. The source code actually looks like this? <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>templates</title> <meta name="author" content="lyleb" /> <!-- Date: 2011-10-27 --> </head> <body> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html><head> <style type="text/cs
  10. By the way, the source code is more compact than is shown in the previous post (30 lines), but it does get cut off half way through the word "color" at the end.
  11. Yes, I'm using a .php extension. The file is called test.php. The source code that is returned is as follows: <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> < html xmlns="http://www.w3.org/1999/xhtml" lang="en"> < head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>templates</title> <meta name="author" content="lyleb" /> <!-- Date: 2011-10-27 --> </ head> < body> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTM
  12. Silly me. I now see why the tab reads "templates." That's what I called it. However, I still don't get why this page returns nothing.
  13. I've been trying to get php working with a mysql database. I've created a database and have no trouble adding records, etc., using mysql, but I can't seem to update records with php. I created the following page, uploaded to my server and opened it and it returns nothing. The tab reads "templates" and I get the spinning wheel. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> &
×
×
  • Create New...