User Profile

Collapse

Profile Sidebar

Collapse
obtrs
obtrs
Last Activity: May 19 '09, 10:16 AM
Joined: May 6 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • obtrs
    replied to show data of multiple tables?
    in PHP
    thanx for the help im looking forward to it thanx.
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to show data of multiple tables?
    in PHP
    thanx.... but im trying inside of php tag its done via html but what when we access database tables which are inside php tags
    <?php

    ?>
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to show data of multiple tables?
    in PHP
    i have done this to achive result but tables are mess? i want this to show a ticket look like a ticket havent worked with php styling and tables?
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to show data of multiple tables?
    in PHP
    prabir i want this to be look like a ticket? what should i do?




    Code:
     <?php
    $con = mysql_connect("localhost","root","autodeskmaya");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    
    mysql_select_db("online_bus_project", $con);
    
    
    
    echo "<table border='1' cellpadding='5' cellspacing='3' align='center'
    ...
    See more | Go to post

    Leave a comment:


  • obtrs
    started a topic Generate random numbers using PHP
    in PHP

    Generate random numbers using PHP

    thanx.

    can u plz also tell me how to generate rondom numbers in a table and also how to show result of numbers?

    because when im showing contact no field which contains numbers its not showing that number ?


    say make a table called ticket.

    * id
    * ticket_number



    what should i do i have to show a ticket number in ticket?
    See more | Go to post

  • obtrs
    replied to show data of multiple tables?
    in PHP
    any one????........ .......
    See more | Go to post

    Leave a comment:


  • obtrs
    started a topic show data of multiple tables?
    in PHP

    show data of multiple tables?

    show data of multiple tables?
    i have 3 tables i want to show the data from them to a page.

    table1 "trip"
    table2 "seat"
    table3 "user_informati on"

    show all the data of table one which is working its showing but how can i show multiple table data any ways.

    show all data of trip and seat

    from user_informatio n it shows

    first_name...
    See more | Go to post

  • obtrs
    replied to send data at same id?
    in PHP
    how can i insert more than one values in this???

    Code:
    <?php
    
    $connection = mysql_connect("localhost","root","autodeskmaya") or die("error connect");
    mysql_select_db("online_bus_project");
    
    
    if(isset($_POST['team']))
    
    {
    
    foreach($_POST['team'] as $value) {
    
    $insert="INSERT INTO seats (seat) VALUES ('$value')";
    ...
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to send data at same id?
    in PHP
    thanx for the help....

    so how much fields i make for the seat selection say i made 8 OK so how that would be done if a person say select more than one field how it will insert that into separate fields?
    See more | Go to post

    Leave a comment:


  • obtrs
    started a topic send data at same id?
    in PHP

    send data at same id?

    i have alot of check boxes and through that check boxex one select seat and send tha seat number to database.

    i have a table named called trip in which i have some fields which are ok but they are on the start page user send booking time and selects "from" "to" after sending that there is a page of seat selection when ever im sending data of seat selection it sends data to the other line how can i send that too on...
    See more | Go to post
    Last edited by Markus; May 10 '09, 07:28 PM. Reason: Added [code] tags.

  • obtrs
    replied to Form Sends Data But Also Shows Errors?
    in PHP
    thanx man...........
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to Form Sends Data But Also Shows Errors?
    in PHP
    after addning action isset its working fine thanx for the help prabirchoudhury 's & Marcus.



    close the tread
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to Form Sends Data But Also Shows Errors?
    in PHP
    marcus after adding this it shows this error


    Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\sit e\booking.php on line 8...
    See more | Go to post

    Leave a comment:


  • obtrs
    started a topic Form Sends Data But Also Shows Errors?
    in PHP

    Form Sends Data But Also Shows Errors?

    i have a html form it and some php script to post it to database but every time i open page it show some error on the top but when i input data and send it it also send so how can i remove these errors?

    Errors:

    Notice: Undefined index: fromcombo in C:\wamp\www\sit e\booking.php on line 8

    Notice: Undefined index: tocombo in C:\wamp\www\sit e\booking.php on line 8

    Notice: Undefined index: DV in C:\wamp\www\sit e\booking.php...
    See more | Go to post
    Last edited by Markus; May 10 '09, 09:16 AM. Reason: Added [code] tags.

  • obtrs
    replied to use combobox to insert data to database
    in PHP
    Marcus thanx for the help buddy u helped alot i really appreciate every time i have posted u replied man thanx.

    its working now with this direct way.


    made another php and database for testing purpose working.
    Code:
    mysql_query("INSERT INTO test2 (name, dob, gender, country) VALUES ('$_POST[name]', '$_POST[dob]', '$_POST[gender]', '$_POST[country]')");
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to use combobox to insert data to database
    in PHP
    tried every thing just stuck with this error i have deleted some unnecessary things now i have this code with same error:

    PHP CODE:

    Code:
    <?php
    
    
    if(isset($_POST['submit']))
    {
    $a = $_POST['from'];
    
    $b = $_POST['to'];
    
    
    
    
    
    
    
    mysql_connect("localhost", "root", "password") or die ('Error'.mysql_error());
    ...
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to use combobox to insert data to database
    in PHP
    <moderator note: i accidently overwrote the contents of this post>
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to use combobox to insert data to database
    in PHP
    its not working either this way or that is there any thing wrong with the code?


    Code:
    <?php
    
    
    if(isset($_POST['submit']))
    {
    $a = $_POST['from'];
    
    $b = $_POST['to'];
    
    $c = $_POST['couch'];
    
    $d = $_POST['550'];
    
    
    
    mysql_connect("localhost", "root", "autodeskmaya") or die ('Error'.mysql_error());
    ...
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to use combobox to insert data to database
    in PHP
    u mean that i have to use the value instead of variable $d i have to put direct 550 in values?
    See more | Go to post

    Leave a comment:


  • obtrs
    replied to use combobox to insert data to database
    in PHP
    i didn't got that???
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...