Jump to content

Tazz

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

About Tazz

  • Birthday 01/22/1987

Profile Information

  • Gender
    Male
  • Location
    Cape Town, South Africa

Tazz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ahh... That makes sense! Thanks for telling me about the fact that I need to make sure my tables are InnoDB, all mine were MyISAM. I'll play around with it a little bit more, but the way you described it to me now makes perfect sense. Thanks again!
  2. Thanks for the reply, so I cannot rollback anything already committed? That seems a bit weird as all the examples I've seen online suggests that.
  3. I am new to MySQLI and tried to test the rollback functionality. I created a simple database called mysqli and one table called test with and id and name field. my PHP is as follows: $mysqli = new mysqli('localhost',name,password,'mysqli'); $mysqli->autocommit(FALSE); $result = $mysqli->query("INSERT INTO test (name) VALUES('bla')"); $mysqli->commit(); $mysqli->rollback(); After hitting the page, it does the insert, but does not roll back the transaction. So it ends up being inserted into the DB. Why is the rollback not working?
  4. You're right. I've been trying justify going this route, but there's just too much risk. Thanks Dan.
  5. The title may be a bit misleading, but essentially what I have is a custom CMS I built in PHP. What I want to do next is to build some sort of authentication to ensure my code was not copied and reused on another server. I need some way to communicate between my CMS and an external script to ensure that it is valid. I was thinking of putting a file on a domain. A simple function that accepts an url this function takes the url, searches the db, if it finds it, send back an result. My CMS obviously queries this function with the current url of the domain and if the url is in my db, the software works, otherwise it displays a message saying it was illegally copied. How do I build this interaction between the two? I could use AJAX, but i need something a bit more robust so that your average developer doesn't figure it out too easily.
  6. How does it work, how are the letters represented? Is there some sort of formula that I can use to figure out what code is assigned to which letter?
  7. Hi ras1896 Thanks for the reply, but thats not what I was looking for.
  8. I don't really know how to explain this, I saw once on some forum members signature, something like this : G = "\ x50 \ x72 \ 157 \ 144 \ x75 \ x63 \ 164 \ x20 \ x6c \ x69 \ 143 \ 145 \ 156 \ x73 \ 145 \ 040 \ x68 \ 141 \ x73 \ 040 \ x65 \ x78 \ 160 \. 151 \ 162 \ x65 \ 144 \ x2e \ x20 "+ E. That somehow translates into words, I know there is a PHP function to convert that, what is that code called and what is the PHP function?
  9. http://php.net/manual/en/function.highlight-file.php
  10. There are some javascript libraries that actually colour each of the PHP keywords accordingly. I don't simply want to display normal text, nice formatting and appropriate colours for the keywords and variables too.
  11. Can anyone give me a link to some examples of Javascript or similar that one can use to display PHP code in a development blog withoug actually parsing the code. Similar to this forums <code></code> tags. php code here
  12. Solved. There was no problem, except for own stupidity.
  13. Once again I'm stuck with some jquery... I am trying to implement the table sorter plugin. http://tablesorter.com/docs/ Here is some demo code: <!doctype html public "-//w3c//dtd html 3.2 final//en"> <html> <head> <title>Table Sorter Test</title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.tablesorter.js"></script> <script type="text/javascript"> $(function() { $("#tablesorter-demo").tablesorter(); } ); </script> </head> <body> <table id="tablesorter-demo" class="tablesorter" border="0" cellpadding="0" cellspacing="1"> <thead> <tr> <th>first name</th> <th>last name</th> <th>age</th> <th>total</th> <th>discount</th> <th>difference</th> <th>date</th> </tr> </thead> <tbody> <tr> <td>peter</td> <td>parker</td> <td>28</td> <td>$9.99</td> <td>20.9%</td> <td>+12.1</td> <td>jul 6, 2006 8:14 am</td> </tr> <tr> <td>john</td> <td>hood</td> <td>33</td> <td>$19.99</td> <td>25%</td> <td>+12</td> <td>dec 10, 2002 5:14 am</td> </tr> <tr> <td>clark</td> <td>kent</td> <td>18</td> <td>$15.89</td> <td>44%</td> <td>-26</td> <td>jan 12, 2003 11:14 am</td> </tr> </tbody> </table> </body> </html> The jquery.js file I am referencing in the <head> is the latest jquery 1.3.2 and the tablesorter js file is the minified one downloaded from the url at the top of this post. For some weird reason I cant get it to work. What am I doing wrong?
  14. Ah, you know, sometimes I just want to kick myself for being stupid. That works like a charm. Easy solution. Thanks Thorpe. Thanks for the js tip as well.
×
×
  • 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.