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 TouchToneTommy 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: blekfis
  • Content: Threads
  • Order by date
  1. blekfis

    Possible JOIN question

    I've read tutorials and forums, but I just dont get it or it's not possible to do what I want... I've got two tables (a bit cut here): albums (aid, visibility) pictures (pid, aid, name, title) // pid increases by 1 for each new row I'd like to select the latest addition from pictures, but if...
  2. blekfis

    Create a serie of databases

    Hi, I would like to make a script that creates a serie of databases. This is what I thought could do the job... $mysql_access = mysql_connect("localhost", "user", "pass"); $count = 1; while ($count < 5) { $query = "CREATE database_" . $count; mysql_query($query, $mysql_access) or die...
  3. blekfis

    Get part of string

    My script is called like this: script.php?sms=123#456 Then I use GET to read $sms into the script. 123 and 456 is two separate values I'd like to retrieve. They can be from 1-5 digits each. Best way to do this?
  4. blekfis

    Differences in MySQL-databases

    How come this difference? INSERT INTO `db1_search_wordlist` VALUES ('bara', '251', '0'); INSERT INTO `db2_search_wordlist` VALUES (0x3237, 3861, 0); Data from two different databases on different servers, both using phpBB. But why that difference in the database? Trying to move phpBB-forums...
  5. blekfis

    mysqldump certain tables via prefix_*

    The normal way to use is: shell> mysqldump [options] db_name [tables] Is it possible to do something like this shell> mysqldump [options] db_name [prefix_*] I want to backup certain tables from a db which all have the same prefix (xyz_a, xyz_b, xyz_c ... )
  6. blekfis

    Send referer with header

    I'm redirecting traffic via this (in short...): header("Location: " . $html->param('redirect')); Only problem is that the recieving website doesn't get any referer-info, and since I'm redirecting for affiliation I don't get paid :( Is there a way of sending clicks thru my page to reciever so...
  7. blekfis

    Copy and rename directory

    I've got a directory called "alfa" that contains both files of various types and subdirectories with files. I'd like to be able to create a new directory named "beta" and copy all the files and subdirectories from "alfa" into "beta". All should be done in PHP... Is it possible (dumb quetion!)...
  8. blekfis

    Sorting problem

    I've got an table that looks something like this: product | price | currency prod1 | 15 | USD prod2 | 20 | EUR prod3 | 89 | GBP prod4 | 11 | USD I extract these from the table and then converts them all to EUR, but how do I sort them from low to high (or vv)? Any code-examples are welcome...
  9. blekfis

    Recieve from &lt;FORM&gt;

    Search is under maintenance, so I haven't searched Tek-Tips... <Newbie-warning> To send data from a form to a php-file, does register_globals always have tp be set to On? This little form: <form name="form1" method="post" action="test.php"> <input name="t1" type="text"> <input...
  10. blekfis

    How to get the latest 24hrs content?

    How do I get things out from a table that has been submitted the latest 24hrs? The table I'd like to get things out of is built on this: CREATE TABLE nuke_stories ( pn_sid int(11) NOT NULL auto_increment, pn_catid int(11) NOT NULL default '0', pn_aid varchar(30) NOT NULL default ''...
  11. blekfis

    Submit a form when clicking a radiobutton

    I've got a simple voting with 5 radiobuttons. I want it to be submitted when one is clicked, without having to click on a submitbutton. How do I do this?
  12. blekfis

    imap_status not working, how do I do?

    Using the below script should give me the number of messages in my inbox and how many that's not read, right? If so, how come it doesn't work? or is there something else that's wrong? I get the correct number of mails in my box, but it never tells me one is unread... Someone got a clue on how...
  13. blekfis

    Layer &quot;The Tek-Tips way&quot;

    Hi, Anyone who can point me in the right direction for creating something like the layer dropping down when first reaching Tek-Tips? I'd also like it to appear only once in 72hr or once to each user (using PostNuke) /N!cklas
  14. blekfis

    FORM to another window...?

    Is it someway possible to have a FORM that opens in another window? Something like this (note the 'target'): <form method=&quot;POST&quot; action=&quot;nextPage.asp&quot; name=&quot;myForm&quot;> <input type=&quot;hidden&quot; value=&quot;SomeValue&quot; name=&quot;hidValue&quot;> <a...
  15. blekfis

    Help w simplest script...

    I've got a file1 with a form action=file2.php. How do I get file2 to get back to file1 (or another file) after it has processed what it's supposed to do? File2 <? FunctionToProcessFirst FunctionToReturnToFile1OrOtherFile ?> Still a newbie....
  16. blekfis

    Coding help needed

    I'd like to use the script below, but I want to use the servertime instead of the computers local time.... Anyone who can help me? /N!cklas ---------------------------------------------------- <script language=&quot;JavaScript1.2&quot;> function...
  17. blekfis

    round to 0 or .5

    How do I make php round to x,0 or x,5? /N!cklas
  18. blekfis

    Drop specified tables

    Hi, How do I drop specified tables? I know I can use drop table '****' , but I want to drop 70 out of 75 tables... Is there an easy way (in PHPmyadmin)?? /Newbie-N!cklas

Part and Inventory Search

Back
Top