Jump to content

11Tami

Members
  • Posts

    329
  • Joined

  • Last visited

    Never

Posts posted by 11Tami

  1. I'm just trying to learn how to put and parse one php code inside another and still get it to work. Once I figure out how to do that I may be doing something else with it later, not sure yet.

     

    Here it is again.

     

    <?php

    $string = '</?php

    echo "test";

    ?>';

    echo $string;

    ?>

     

  2. Hello, this works.

     

    <?php

    // current time

    echo date('h:i:s');

    ?>

     

    I need to put it inside other php and still get it to execute. Can someone tell me how? This is what I tried but it doesn't show the time, anyone know why? Please let me know, thank you very much.

    <?php

    $string = '</?php

    echo date(\'h:i:s\');

    ?>';

    echo $string;

    ?>

  3. Thank you I appreciate that explanation. I uploaded them to take a look. They are just saying how long it took the script to execute and nothing else I take it, like you said.

     

    Is there any way to get a script to keep executing using microtime? Or does it need a page refresh to keep executing. Please let me know someone, thank you very much.

  4. Hello, regarding microtime etc. I already saw what the manual said and all it says it that it returns the unix timestamp for a particular time. I need to know some opinions on how this could work in some php functions. For instance if I set microtime on a random function, by default does it only show the particular time on page load only? Or is there a way to keep it firing.....?? Please let me know, thank you very much.

  5. Thank you. Just the usual database name, several tables and several things in the tables.

     

    Nothing special done with tables or the fields in the tables. On the fields in the  tables I only adjust one column for "type." There most fields are marked as "text" one for "date"  and a few for "varchar" so I can limit how many items are added to a few of the fields. "Type" is the only category for fields that I use.

  6. Thank you, Yes this is how it looks. I'll put an asterick next to the ones that

    have checkmarks.

     

    *Structure

    Add DROP TABLE

    Add IF NOT EXISTS

    *Add AUTO_INCREMENT value

    *Enclose table and field names with backquotes

    Data

    *Complete inserts

    *Extended inserts

    Maximal length of created query

    Use delayed inserts

    Use ignore inserts

    *Use hexadecimal for binary fields

    Export type

    INSERT

  7. Hi, I am learning how to export and import mysql files. It will only import them if database is brand new. How do I upload an existing database? I tried using, all different options under  “Export Type”  .....insert, update, and replace, but none of them would update an existing database with the same name. Please let me know what I'm doing wrong? Thank you very much.

  8. Thanks, but I don't know what you mean. I need to know what to name the page? If I name it something like this....    code.php?show=1        I cannot upload it to my ftp account. It says it will not take the question mark in the url address. Should this be happening?

     

     

    <?php

    $show = $_GET['show'];

    if($show == 1){

      print "text";

    }

    ?>

     

     

  9. Hello, here is some code that if show is in a url and is equal to 1 then the following php text should appear. Problem is when I put in a url like this http://www.website.com/show=1.php nothing happens. When I use this http://www.website.com/page.php?show=1  It doesn't like that either, it says a question ? mark cannot be used in a url address. Please someone let me know the proper way to do this. To link a url to this code.....Thank you very much

     

    <?php
    $show = $_GET['show'];
    if($show == 1){
       print 'text here';
    }
    ?>

  10. Jesirose, good to see you. Please tell me what your suggestion means, I have no idea at all. It doesn't have to completely work, I just need to be headed in the right direction. I won't know if I am going in the right direction, if I don't understand what it is. I have no clue what your code suggestion is supposed to do. Please let me know, thank a lot.

  11. Thats terrific but I still don't know what it does. Also my post is still incorrect. I am trying to make a closing A tag for an a href link. But it keeps turning it into a url tag instead. Can anyone tell me what this code and the "Show" commands are supposed to do? Thank you very much.

  12. Strange that post added a whole bunch of stuff to it that I didn't add. Let me try again.

     

    I have this in a page.php page.

     

    <?php

    $show = $_GET['show'];

    if($show == 1)

    {print "<a href='http://www.website.com/page.php?show=1'>test link</a>";}

    ?>

     

    But no text link is appearing. I guess it would help to know that your code is supposed to do? For instance is my page supposed to be named page.php?show=1? instead of just page.php ....  and how does all this connect with it?

     

    Thanks a lot.

  13. Thanks very much you guys and Jesirose, I have this in a page.php page.

     

    <?php

    $show = $_GET['show'];

    if($show == 1)

    {print "<a href='http://www.website.com/page.php?show=1'>test link</a>";}

    ?>

     

    But no text link is appearing. I guess it would help to know that this is supposed to do? For instance is my page supposed to be named page.php?show=1???? instead of just page.php ....

     

    If so what does that all doing? Thanks a lot.

×
×
  • 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.