Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tcardoso
  • Content: Threads
  • Order by date
  1. tcardoso

    Hi - HTML symbol for ?

    Hi, I know this is probably a stupid place to ask :D but anybody know thats the code for ?? Like http://www.avenue-it.com/html/extracharacters.html Thanks
  2. tcardoso

    Doubts - OnMouse and innerHTML

    Hi, I have a couple of doubts, first the code: <span id="muda" onMouseOver=changeName();" onMouseOut="backName();"><font color='green'>A</font><font color='blue'>name</font></span> <script type='text/javascript'> function changeName() { document.getElementById('muda').innerHTML ="<font...
  3. tcardoso

    Transaction (Begin...end)

    Hi, I'm trying to do: $result = mysql_query("DELETE FROM `table` WHERE `field`='value'"); if (mysql_affected_rows()>0) { //Run rest of code } My question is: If after the DELETE runs on DB and before mysql_affected_rows() is called another DELETE or UPDATE, etc occur? Then...
  4. tcardoso

    strip_tags in JSP

    Hi, how can I strip the HTML tags in JSP to show in a page. I want the text <b>bold<b> to be tranformed to &gt;b&lt;bold&gt;b&lt; Thanks
  5. tcardoso

    Proxy detecter

    Hi, Don't want to abuse the forum, but its a completely different subject and it could be very useful for future users doubts. Do anyone know any good piece of PHP proxy detecter (not the ones on the web, I test them all and none work on modern proxies). Or does anyone know any online service...
  6. tcardoso

    Prevent multi-session

    Hi, I want to catch multi-session and logout who makes it. Like if you are working on a Firefox browser and if you login on a IE browser, the first session has to be disabled. Same thing on tabs on firefox, etc... Only one window session active! How can I do it? Thanks
  7. tcardoso

    Lock on table

    Hello If I do: 1) mysql_query('LOCK TABLE tablename'); 2) mysql_query('SELECT * from tablename where condition=0'); 3) if (cond) { 4) mysql_query('UPDATE tablename SET condition=1 WHERE condition=0'); 5) } 6) mysql_query('UNLOCK TABLE tablename'); What happens when another process arrives...
  8. tcardoso

    Critical - Security in php - 2 Clicks at same time - Duping

    Hi, Problem: Some folks in my site are clicking two buttons at same time to request opposite operations, for example in Firefox one account clicks remove the thing I had put to sell, at exact same time in IE other account clicks I want to buy the product (normally its a "hacker" running both...
  9. tcardoso

    Simple Question

    Hi, How do I delete files that belong to a user or group. I have a directory with files from 2 users, I want to delete only the ones from one user. I looked into rm command and didn't see that option. Thanks
  10. tcardoso

    Session problem

    I have this error on my server many times: open(/tmp/sess_81516e1e3235a35d2f5ade72ccde4acd, O_RDWR) failed: Permission denied (13) I have /tmp directory with 777 permissions, session.save_path set to /tmp. What can I do more? Thanks P.S. - There is a better forum for this doubt?
  11. tcardoso

    Spaces in like query

    Hi, this query: SELECT * FROM `table` WHERE `field` like '%Some Name%' give me empty result and this one SELECT * FROM `table` WHERE `field` like '%Some%Name%' gives me the "Some Name" Guy :( Why does spaces aren't working? Thanks
  12. tcardoso

    high numbers in PHP

    Hi... I have a function where I have a value of 1200000 and php transform it to 1.2E6 and when I put it on the DB it stays 1 :( in there! How can I make php to put to normal big number? should I make it strval? Thanks
  13. tcardoso

    Extract Day from Timestamp

    Hi, I have timestamp in the DB and I want to extract the day, month, etc directly from the timestamp... Like it was SELECT DATAPART('day', `my_field_in_timestamp`) as day FROM `table`. Any change in doing this with SQL only with a timestamp? Thansk
  14. tcardoso

    Select after update...

    Hi, I'm kind of noob in PHP... I make several selects to a table, then I make one update and several selects again on the table... The update seems to not commit, but if I put $sql->commit(); my execution of program dies there (like exit() or die())... What should I do? Thanks, Telmo Cardoso
  15. tcardoso

    Urgent problem - IE doesn't refresh with AJAX

    Hi... I have a page with AJAX call onload... but in IE if I have in definitions to search for an update of the page automatically (most users have)... then the ajax code its not going to the server it simply shows what the result that IE have on temporary files. I cannot ask to all users to...
  16. tcardoso

    Cron problem - Passing Parameters

    Hi, how can I pass parameters in cron job like I tried: {...domain...}\cron_test.php?code=CRONCODE and in cron_test.php I had: if($_GET['code'] != "CRONCODE") { print "WTF are you looking?"; die(""); } //rest of cron code here But it wont work... if I remove ?code=CRONCODE from cron...
  17. tcardoso

    Field size - max varchar (8000)

    Hi, I'm kind of noob in SQL Server... I use SQL Server 2000. I have a field that is varchar (8000) left from another coder, but now I need it to have more size, but max varchar is 8000... What should I use? Thanks Telmo Cardoso
  18. tcardoso

    return in select (even in null cases)

    Hi, I want do make something like this: select ta1.* from table1 ta1, table2 ta2 where ta1.field=ta2.field and ta1.field=12 I want to return values even if ta2.field is null! In SQL Server its (*=): select ta1.* from table1 ta1, table2 ta2 where ta1.field*=ta2.field and ta1.field=12 How can...
  19. tcardoso

    Case sensitive JDBC

    Hello, I have an aplication JSP-JAVA-SQL Server. And I migrated to MySQL, but in MySQL the SQL its all case sensitive so I would have to change the SQL code in JAVA (that would be crazy, even with find-replace). The obvious solution is to change the charset and/or collation but I can't find...
  20. tcardoso

    SQL Server to MySQL (case sensitive connection)

    Hello, I'm sorry for posting here this question...but I didn't find a better forum :| to post... I have an aplication JSP-JAVA-SQL Server. And I migrated to MySQL, but in MySQL the SQL its all case sensitive so I would have to change the SQL code in JAVA (that would be crazy, even with...

Part and Inventory Search

Back
Top