Jump to content

jbwebdesign

Member
  • Posts

    167
  • Joined

  • Last visited

Posts posted by jbwebdesign

  1. Hello, i am trying to create a script that will have 2 different MySQL tables but I am not sure how to do this at all......

     

    Can anyone please show me where to start my query??

     

    the point of this is because I have 1 table that shows the users personal info and I want to make a seperate table for all the users sales and what dates he has sold things etc. This way it will track down the sales that the user has been making.

     

    If anyone can show me how to connect 2 different tables I would really appreciate it. Thanks :D

  2.  

    Welcome to Textmonster.org Promoters Section!

    Here you will be able to administer everything that goes on in the textmonster world! We have tried to make it as easy as can be! You will be able to see your whole entire history on how many sales you have made and how much money you are being paid.

     

    Recent Updates:

    As of now we have not added any updates. if you have any comments, ideas or anything that can make our services better please do not hesitate to tell us!

     

    We will do what we can to make our services excellent!

     

    ©  2009 All Rights Resereved Textmonster.org

     

  3. Hello, I have a problem with my php script. I'm pretty sure its a javascript error and I don't know much javascript so i don't have any clue what needs to be done.

     

    You see i had the script created a while back and I just decided to add some form validation to it but I think i messed something up in the process of doing this.

     

    When i run the script through mozilla error console it says that I have the following error on Line 1: document.forms.paypal_form is undefined

     

    here is the main script followed by the included php file that i am using:

  4. Hello, i'm not sure what section this would belong in but since it's related to php i figured i would just post it here.

     

    I am having some really annoying problems with Wamp Server and I was wondering if anyone knows how to turn off the Notice's

     

    I recently bought a new computer and Decided to download the new version of wamp, So i did.

     

    Now I don't get errors on any of my scripts but I do get really annoying Notices such as the following:

     

    Notice: Undefined index: program in C:\wamp\www\txt_mon\program\statement2.php on line 36

     

    I was told it can be fixed by editing the php.ini

     

    but I have no clue what to change in the php.ini or how to edit it.

     

    if anyone knows about this kind of thing, please give me a suggestion.

     

    Thanks

  5. hello, I am trying to write a script that will allow me to export a loop onto a text file.

    The script seems to work fine but it doesn't want to export the loop itself.

     

    what happens is that it exports 2 numbers and not the whole 10 numbers that i want......

     

    does anyone know how i can fix this??

     

     

    //============WRITE THE FILES===================

    //zero

    $zero = 0;

    //my prefix

    $prefix = "123456789";

     

     

    $myFile = $prefix . "-0000-0249" . ".txt";

    $fh = fopen($myFile, 'w') or die("can't open file");

    $stringData = $prefix . $zero . "000" . "\r\n";

    fwrite($fh, $stringData);

    while($count<=8){

    $stringData = $prefix . "000" . ++$count . "\r\n";

    }

    fwrite($fh, $stringData);

    fclose($fh);

    //===============================================

  6. Okay, I found out how to write a text file for anyone that needs it.....here is the code......

     

    $myFile = "testFile.txt";

    $fh = fopen($myFile, 'w') or die("can't open file");

    $stringData = "Floppy Jalopy\n";

    fwrite($fh, $stringData);

    $stringData = "Pointy Pinto\n";

    fwrite($fh, $stringData);

    fclose($fh);

  7. Hello, I have been trying to figure out a way to export a text file but I have no clue where to start. Can anyone please help me out??

     

    Here is the basic coding for my script......

     

     

    if(isset($loose)){

     

    echo $prefix . $zero . "000" . "

    ";

     

    while($count<=8){

     

    echo $prefix . "000" . ++$count . "

    ";

     

    }

     

    }

     

     

    everything is working fine, however what I want to do is be able to export this text to a text file by the name of

    $prefix-0000-0009

     

    does any one have any ideas on how i can do this??

     

    any help will be appreciated.

     

    Thanks

  8. CHECK UR PHP MY ADMIN FOR DATABASES AND TABLES TO SEE IF YOUR TABLE jefdur3_Users.users EXISTS OR NOT

    IT SEEMS TO ME THAT THE jefdur3_Users.users table doesn't seem to be inside that database or maybe it is misspelled.....such as the capitol U in users etc.

  9. I GOT THE CODE TO WORK KIND OF...... HERE IS MY CODE BUT NOW ITS SCANNING THE WRONG DIRECTORY.....

     

    IT ONLY SCANS THE DIRECTORY THAT THE PHP FILE IS IN AND NOT THE ONE THAT ITS POINTING TO......

     

    CAN SOMEONE PLEASE HELP ME???

     

    THANKS

     

     

    <?php

     

    $dir = '../FORMfields/forms/generated/'; //You could add a $_GET to change the directory

     

    $files = scandir($dir);

     

    foreach(glob("*.php") as $files => $value){

     

    echo '';

     

    echo $value;

     

    echo '

     

    ';

     

    echo '';//You could add an icon in here maybe, a link to the file/directory, or a link to list files in that directory

     

    }

    ?>

  10. i'm not sure I understand what you mean but it seems like your trying to make a content management system.....

     

    why don't you just create a page with check boxes and give each check box a name..... for ex::

     

     

     

    //define the vars for your check boxes

     

    $ch1 = $_POST['ch1'];

     

     

    check box 1

     

     

    and then you use the variable $ch1 to your advantage for example

     

    if($ch1!="checked"){

    //create a var that will be equal to ch1 within your query for example

    $check1 = "City";

    }

     

     

    so now what happens is that when you decide to create your query you can include the variable $check1 which also equals City

     

    which is one of your columns inside your database.

     

     

    I'm not sure if this will help or not but I hope it does

  11. I need help with a script that I am working on......

     

    I want have it working properly to scan the directory but I want it to only display the .php files inside my directory....

     

    can anyone help me out with this???

     

    thanks

     

    here is the script that I am using......

     

     

    <?php

     

    $dir = "../FORMfields/forms/generated/"; //You could add a $_GET to change the directory

     

    $files = scandir($dir);

     

    foreach($files as $key => $value){

     

    echo '';

     

    echo $value;

     

    echo '

     

    ';

     

    echo '';//You could add an icon in here maybe, a link to the file/directory, or a link to list files in that directory

     

    }

     

    ?>

×
×
  • Create New...