Jump to content

spdwrench

Members
  • Posts

    94
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.abmatch.com

Profile Information

  • Gender
    Male
  • Location
    Hartford,Ct

spdwrench's Achievements

Member

Member (2/5)

0

Reputation

  1. ok I had some time to do a little digging she told me she wants the script as simple as possible I found python to have a built in database using the following code import anydbm db = anydbm.open("database", "c") db["1"] = "one" db["2"] = "two" db["3"] = "three" db.close() db = anydbm.open("database", "r") for key in db.keys(): print repr(key), repr(db[key]) this code produces result: '2' 'two' '1' 'one' '3' 'three' now any idea on how I would make a searchable database out of this? with subject .... class... section.... student....?? give me just a little direction if you could... I would prefer to use this simple method because they are not really expecting much from this project.... thanks Paul
  2. I get windows cannot find 'mysql' make sure you typed the name correctly , and try again
  3. I installed mysql for python it seemed to install fine... so I think what I need to do is initialize the databse (create) I just have never used python can I create the database withing the code? or do I need to use a phpadmin or comand line to create my database...?? thanks for your help I have not spent alot of time but could not find much. I am looking into this after 11 hour workdays at my job... sorry to be such a pain. Paul
  4. I have only used mysql through php on my linux server... I have the python and mysql link you gave me running on windows... do you know how to initialize the database and what should the connection read?? is it still localhost??? how to I set this database up fro connection... when I do it for my webbased stuff I just use plesk... please help Paul
  5. Hello I am a web developer and new php programmer... a girl I know needs help with a project.. she need to write a python script that can search a database with a student database...... with subject / class / section / students... could someone please point me to some sample code to look at to perform a simalar result? also what type of database is generally used ?? thanks paul
  6. I am getting an error in two of my scrips when trying to require or include files that are not within the same directory... I am getting a not within allowed path error and I know I need to change my open_basedir setting but do not know what to set it to? it is curently in the php.ini file with a semi colan in front ;open_basedir anyone know what I should set this to please let me know Paul
  7. [phpBB Debug] PHP Notice: in file /var/www/vhosts/abmatch.com/httpdocs/engine/load_configuration.php on line 25: main() [function.main]: open_basedir restriction in effect. File(/smartway/lib/system.lib) is not within the allowed path(s): (/var/www/vhosts/abmatch.com/httpdocs:/tmp) [phpBB Debug] PHP Notice: in file /var/www/vhosts/abmatch.com/httpdocs/engine/load_configuration.php on line 25: main(smartway/lib/system.lib) [function.main]: failed to open stream: Operation not permitted [phpBB Debug] PHP Notice: in file /var/www/vhosts/abmatch.com/httpdocs/engine/load_configuration.php on line 25: main() [function.main]: open_basedir restriction in effect. File(/smartway/lib/system.lib) is not within the allowed path(s): (/var/www/vhosts/abmatch.com/httpdocs:/tmp) [phpBB Debug] PHP Notice: in file /var/www/vhosts/abmatch.com/httpdocs/engine/load_configuration.php on line 25: main(smartway/lib/system.lib) [function.main]: failed to open stream: Operation not permitted Fatal error: main() [function.require]: Failed opening required 'smartway/lib/system.lib' (include_path='.:') in /var/www/vhosts/abmatch.com/httpdocs/engine/load_configuration.php on line 25 I am running this command when the error happens require "../engine/load_configuration.php"; the code calling the require is in directory /phpBB3
  8. im actually trying to pull a variable into phpBB3 not from phpBB3 thanks Paul I need to pull from http://abmatch.com/index.php into http://abmatch.com/phpBB3/index.php
  9. for example if I wanted to retrieve a variable called $name from http://abmatch.com/index.php when I load http://abmatch.com/phpBB3/index.php how can I retrieve this variable? Paul
  10. ok I am running a php dating site.... I have had alot of trouble integrating it to autologin to phpbb when I go from http://abmatch.com into http://abmatch.com/phpBB3 how can I pass the username and password into the file http://abmatch.com/phpBB3/index.php from the file http://abmatch.com/index.php?? I need to safely pass the username and password so I can log the user into the bulletin board please help I have been trying to include the phpbb functions into my site but doesnt work Paul
  11. I am working up some code now.. thanks for the advise people..will post back on my progress later.
  12. my problem is... the users log in to my dating site then when they click the forum they are prompted to log in again... so would the answer be to find the login area's of both sides? and make sure sessions for both are started when they sign in either the forum or the site... or vise versa... this seams the only logical way then? thanks Paul
  13. I got it to work adding align="center" into the table is this method recomended? also I do not have a doc type how do I know what doc type I should be using... I was also trying to validate my code... Paul
  14. could you check how it looks in internet explorer I used <div style="text-align: center;"> <table border="0" cellpadding="0" cellspacing="0" width="770"> ..... </div> and it centers the 770 width tables in the midle of the whole screen if I change that to 100 it works in firefox but stretches out my page I need the table to remain 770 and to get centered in 100 percent of the browser... the <div style="text-align: center;"> accolplished centering the table to the midle of the browser... but it wont in firefox can I created another table that will center the 770 width table to the midle of the screen? thanks for your help Paul
×
×
  • 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.