Jump to content
xisto Community

TavoxPeru

Members
  • Content Count

    865
  • Joined

  • Last visited

Posts posted by TavoxPeru


  1. Aren't Mozilla and firefox equal?well...my browser's name is Mozilla Firefox.I dont know why i get javascript errors...
    can anyone here be my helper in that game...i need someone experienced with it!

    well...i think that the internet explorer isn't that good so i don't use it...internet explorer was made by microsoft so i dont like but i still use their Windows XP ;) thats enough to them
    EDIT:BTW as my site was approved and back online and my site here on Xisto was denied because of too many one line posts i will stay there until more errors come back and i get too many people so i need to change(as it is 5GB it is unlikely to happen soon)

    Checking your code i notice that you use for every javascript function a SCRIPT TAG, it is not necesary, enclose all your functions with only one and put it inside the HEAD section of your page.

    Also, I recommend you to install the Firebug add-on, it's an excellent tool for debuging your html, css and javascript code, you don't know how useful is this tool.

    You can download and install it from Get Firebug.

    Best regards,

  2. The mysql_pconnect() PHP function simply allows to use persistent database connections to a MySql database and in general it works most exactly the same as the mysql_connect() PHP function, the only advantage that gives is efficiency, so, try to use only non persistent connections to verify your script.

     

    mysql_pconnect() acts very much like mysql_connect() with two major differences.

     

    First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.

     

    Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (mysql_close() will not close links established by mysql_pconnect()).

     

    This type of link is therefore called 'persistent'.

    Generaly i use the following code to connect to any MySql database:

    <?php$link = mysql_connect("localhost", "user_name", "user_password") or die("Could not connect to server. MySql error: " . mysql_error());mysql_select_db("database_name",$link) or die("Error, could not select database. MySql error: " . mysql_error());// $link generally is not necesary, so, you can use the following// mysql_connect("localhost", "user_name", "user_password") or die("Could not connect to server. MySql error: " . mysql_error());// mysql_select_db("database_name") or die("Error, could not select database. MySql error: " . mysql_error());?>
    The colors don't work because you forgot to include the "#" character.

     

    And, check your php configuration maybe you are not allowed to use persistent connections, check the mysql.allow_persistent and the mysql.max_persistent configuration settings on your php.ini file. Also, check if PHP is running as a MODULE or as a CGI wrapper.

     

    Some links from the Online PHP Manual:

    Persistent Connections

    mysql_pconnect() function

    mysql_connect() function

    Best regards,

  3. Quantum.Byte, you must add the quotes when you are reproducing a text coming from somewhere else. I did it for you this time, look how to use the quotes and do this way next time.

    Your text is an exact copy from http://www.freewarefiles.com/Spybot---Search-And-Destroy_program_7280.html

    For honesty, when you use a text written by somebody else, you must put it between quotes and give the link where it is coming from. Else, this would be plagiarizing, which does not respect our forum rules.

    More than that, try to give us a real info. Most of us know about Spybot S&D, and we are very interested about your opinion. Did you use this product by yourself ? Are you satisfied with it ? Was it able to remove the last trojan which infected a friend's PC ? My last trojan was detected by Norton which failed to remove it, and Spybot also failed removing it, and I simply had to re-install my PC.

    This kind of info is worth for us : tell us how the thing works, tell us how you use it, tell us it's limitations or it's easy-to-useness.

    I agree with yordan, and also, i recommend that before make any post please take the time to perform a minimal search at the forums ;) because i don't know exactly how many times i read posts about Spybot.

     

    Best regards,


  4. well...

    the think is i didn't create this game on my own...a friend started it and i just finished it and debugged it!

    i can't get people to play it... i am in 2 networks with trading links(http://www.adgridwork.com/)(http://www.linkreferral.com/).some people just visit them, but none registers...only one except my few friends registered and played(2 times)

    i dont know any other (FREE) way to advertise it

    Well, only for curiosity i just register to your game, but it dont work fine because it shows up javascript errors, everytime i access any single page of your site shows an error on Line 95, and when you mouse over the navigation links on the left side shows up an error on line 171.

     

    BTW, every javascrip error happens twice.

     

    Best regards,


  5. Ah, ok. If you can't read, then you can never export. I thought your initial problem was you can't change the data and it's structure. Anyway, good to hear that you can work on it now. Try to export it and use a newer version if possible. Access 97 seems to be quite old, and might be problematic or at least having limitation to cop up with the current trend. Unless you're using vb6, I don't see any reason to stick with it.
    Good Luck

    Not only i can't change the data and it's structure, also i can't open any table to view its data or select it with a simple query. Exactly, the only reason why i need this database is because my client needs some new tables and queries to be created -my work- and all the data is based on the tables of this database, nothing more.

    Well, i don't work with VB6 for a long long time but i guess that it would be a good choice, and i hope that VB6 allows me to work with this database and finally i can perform my work.

    Thanks again and Best regards,

  6. Another way to reset your auto increment id field is by truncate the table so the ID of your first new inserted record will get as Id the value 1, TRUNCATE TABLE is a data manipulation statement that empties completely a table and also resets any auto_increment counter of the table, sounds like this is similar to perform a DELETE FROM TABLE statement, but it is not absolutely true, because it depends on the version of your database, also, if you perform the DELETE statement this will not reset the auto_increment counter of the table, so, if you insert a record to your table after this the auto_increment counter will be setting up with the next value.

     

    But be carefull with this method, if you have data on your table and you want to preserve it, well, what i generally do in this case is to first delete the primary index of the table, then i delete the auto_increment field, after that i generate an sql file of the table by exporting it, then i proceed to delete the table and finally i import the generated sql file.

     

    Sounds like there are too much tasks to perform a simple task like this, well, if you use MySql and phpMyAdmin it is very easy and simple, you simply go to the export tab of your table, select the options you need and press a button. There are a lot of options that you can select here, for this case the options i select are:

    Export: Sql.

    Structure: Add DROP TABLE, Add IF NOT EXISTS, Enclose table and field names with backquotes.

    DATA: Complete inserts, Extended inserts.

    Export type: INSERT

    Save as file: This is optional because it depends on the size of the table, if the table have few records -less than 100- i do not use it.

    Then, phpMyAdmin proceeds to generate the sql code, if i dont use the last option, it shows up the code on a textarea field, where i simply select all the generated sql code and copy it to the clipboard, or, in the other case, save the file to disk.

     

    After that, if i use the Save as file option i go to the Import tab, open the FILE input control, browse my disk and select the just generated sql file, finally press the GO button. In the other case, i only need to go to the SQL tab of the table, and simply paste the just generated sql code inside the textarea field and finaly press the GO button.

     

    Best regards,


  7. Hmm, where did you get this database in the first place. Can you view the data inside the original database?

    I got this database from a client of mine, and i can't view any data inside it, also, i can't export, import, corvert, etc. Yesterday i just install Access 97 and with it i can create any new object like tables, queries, modules, etc.
    Best regards,

  8. Enlarge Image Script

     

    Enlarge Image Script

    Hi,

     

    I found why your code is not working, you miss a ' on the second src

     

    <img src="yourimage.Jpg" width="150" height="200" onclick="this.Src='yourimage.Jpg';this.Height=400;this.Width=300" ondblclick="this.Src=yourimage.Jpg';this.Height=200;this.Width=150">

     

    Many thanks

     

    A

     

    -Alex

    Oopps, thanks a lot, i gonna edit the code right now.

     

    Best regards,


  9. I think it's easier if you export then import the database into a new database. That can also overcome some flaws in the access 97. Another way is to add the old database into ODBC, then use access 2003 to open it, then duplicate/copy the table into the new database. You can then setup the permission manually.

    Only to say that both options don't work and i'm not be able to work with this database.
    Best regards,

  10. all they would need to do was exploit the database so it could be remotely downloaded, then you would be able to open it up and look at the user name/passwords. Go back to the site and enter them in. I would recommend using php / SQL if you want it to be done securely.

     

    Kind Regards

    - Karmen

    Hi, i think that you have good knowledge of Access and hope that you may help me with a problem i have with an Access 97 database.

     

    I have an Access 97 database that seems to be crashed because i can't work with it, the only posible thing that i can do with it is to open it and view all the tables, queries, etc. that it have, but for example, if i try to open any of its tables or queries either in design or data mode Access shows up an error window with the following message: Couldn't read definitions; no read definitions permissions for table or query 'table_name'.

     

    Also, i'm not be able to export any thing of this database, or convert it to another version of Access like Access 2000 or 2003, when i try to do it Access shows up another error window but in this case saying something related with the user permissions, exactly i don't remember right now the complete message but is more or less like the previous one.

     

    Another thing that i notice is that when i enter to the security options located on the tools menu i view that this database don't have any owner, it shows up that the owner of the database is unknow.

     

    In the topic Access 97 to Access 2003 that i post two weeks ago the user faulty.lee give me a solution to this but unfortunately it doesn't work too.

     

    I hope that my explanation is enough and you understand it completely, if not, please ask me whatever you want or need.

     

    Best regards,


  11. A time ago i have the same problem and i found that this happens because of the DOM and if you set or not the DOCTYPE to tell the browser which kind of page you serve. So, what i did to resolve this is to attach to the onsubmit event of my form the this reserved word, that references the form itself and of course declare correctly which page i will serve using the DOCTYPE.

     

    This is the code that i use on my page:

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/; xml:lang="<?php echo $languageCode; ?>"><head><script  type="text/javascript">//<![CDATA[function validate_form1(theForm) {	Tot = theForm.elements.length-3; // because i don't need to validate the last 3 fields of my form (2 buttons and one textfield)	for(i = 0; i < Tot;i++) {		if(theForm.elements[i].value == "") {			alert("Error...blah blah blah");			theForm.elements[i].focus();			theForm.elements[i].select();			return false;		}	}	email=theForm.email_field_name.value;	if (!isEmail(email)) {		alert("Error email not valid!!!");		theForm.email_field_name.focus();		theForm.email_field_name.select();		return false;	}	return true;}// other functions//]]></script></head><body><!-- some content --><form action="sendmail.php" method="post" id="form1" onsubmit="return validate_form1(this);"><!-- text inputs and the submit and reset buttons --></form><!-- some content --></body></html>
    As you can see, this page is a valid XHTML webpage, please visit the following webpage Contact Us - Calendar Te Recuerdo Perú 2008 - Almanac Te Recuerdo Peru 2008 if you want to see it in action.

     

    Of course, you can use this to reference not only your forms also you can use it with your fields, for example, you can attach to the onfocus event of your fields the select() function to select its contents directly like in the following code:

     

    <input type="text" name="txt_age" onblur="txt_age_onblur()" size="3 maxlength="3" onfocus="this.select();" />
    Best regards,

  12. Hi,
    I think AVG Antivirus Free Edition is the best antivirus but has a poor performans with spyware and malware.

    Regards

    I use this antivirus for a long time with always good results, but i hear this kind of opinion not few times, can you post some other software that are better with spyware and malware than AVG????

    Best regards,

  13. I also have problems and can't access my cPanel or web, i just check the status of the services and all of them are online, i verify my credits and i don't run out of them.Best regards,Edit: i guess that right now the Xisto's tech support are working hard because now i can access my cPanel but not my web.


  14. Which PHP version do you use and what is the exactly error code/message that you receive if available???

     

    do you try to do the same thing using cUrl??? because i know that it has more or less the same functionality.

     

    Take a look to these pages at the online PHP manual:

    Filesystem - allow_url_fopen

    Using remote files

    List of Supported Protocols/Wrappers

    Best regards,

  15. Yesterday i come into the necesity to convert an Access database to MySql and while looking around at the database forum i found this topic Access -> MySql that is exactly what i'm looking for, in this topic i found a post with an URL to a free converter that shame on me is no longer free so i decide to search for a really free converter and lucky me finally i found two excellents free converters that i think can be useful for everybody.

     

    The two free Access to MySql converters are:

    Access to Mysql: This freeware is very complete and easy to use, and have more options than the MdbToMySql, you can read at My post about Access To Mysql more information about.

    MdbtoMySql XP: This is more easy to use than the previous one, but is less complete and only allows to convert your Access database to a dump sql file, you can read at My post about MdbToMysql more information about.

    Best regards,

  16. I guess that you read the reply posted at 25-jun-2007 on the User contributed notes right??? Well, in that post are the reasons to give up the use of labels or goto statements, for the ones that don't have the time to read it and want to know what we are talking about here are the two posts:

    Okke25-Jun-2007 05:53
    As a reply to zzo38: please don't -ever- use that code. Labels are generally considered a bad programming practise. If you mis-use switch statements in order to simulate the workings of labels, that's double bad.

    Why not use a simple if/then/else statement? It's readable and less prone to bugs.

    zzo38
    18-Jun-2007 11:51
    There is no GOTO command in PHP, but you can do something similar like this:

    <?php
    function testfunction($x) {$label='';while(1){switch($label){
    case '':
    if($x==0) continue ($label='fail')*0+1;
    case 'ok':
    echo "ok\n";
    case 'fail':
    echo "fail\n";
    return;
    }}}
    ?>

    Best regards,

  17. Very strange your situation because the gamma server is my hosted server and i can access everything without any problem, cpanel, ftp, etc.Right now, i'm logged in to my cPanel and the server status shows that the server is up for 16days, 7:56min and all the service status are up.Do you try to perform a ping to gamma.xisto.com????? if true, what are the results??? i just do it and the results are fine too.Best regards,


  18. Sten, sorry, it happens ^_^ and your suppositions are correct.

     

    I just test this cool freeware with excellent results i can say. This software is very easy to use and is nothing more than a Wizard that do its job in 4 steps, select source -an access database-, select destination -a MySql database or a Sql file-, set tables to be transfered and set transfer options.

     

    For my testings I use 3 different databases, one in Access 97, one in Access 2000 and one in Access 2003 and convert them with the two options available on the program which are direct convert and dump file. The first option allows to convert directly an Access database to a MySql database, and the second option allows to dump the Access database to a SQL file.

     

    The second option in all cases do its job and works perfectly while the first one dont because throws some errors however it finish correctly and perform the convertion of the database.

     

    So, based on these tests i recommend that if you need to convert an Access database to MySql, first use the second option to create a Sql file and then use the first one, if something fails you have the choice to import the Sql file.

     

    Best regards,

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.