User Profile
Collapse
-
thanx for the help im looking forward to it thanx. -
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
?>Leave a comment:
-
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?Leave a comment:
-
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'Leave a comment:
-
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? -
-
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... -
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')";Leave a comment:
-
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?Leave a comment:
-
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... -
-
after addning action isset its working fine thanx for the help prabirchoudhury 's & Marcus.
close the treadLeave a comment:
-
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...Leave a comment:
-
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... -
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]')");Leave a comment:
-
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());Leave a comment:
-
<moderator note: i accidently overwrote the contents of this post>Leave a comment:
-
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());Leave a comment:
-
u mean that i have to use the value instead of variable $d i have to put direct 550 in values?Leave a comment:
-
No activity results to display
Show More
Leave a comment: