AbbasAkhtar
Programmer
OK, I've finally managed to figure out and to create a blank database in mysql called mydb and create a table called details which is like this
field: type: null:
name varchar(20) yes
age char(2) yes
what i want to do in php using apache server is how to do this:
receive a count of all the listed table data for example like this:
if i have this information stored in my table in mydb,
abbas akhtar, 17
john smith, 27
then the count would be 2, because their are only 2 bits of information,
i also want to be able to read in and print on the browser something like this:
all names in the field name, or age.
edit names, or age,
delete a whole name and age,
i want to be able to use a button for this, but i am not sure on how to execute commands to the mysql server,
i no if i use this
<?php
mysql_query("SELECT * FROM details"
?>
lists everything in the table called details (i no, i have to access the db first, yes i no this).
how could i execute for example the above command, would it be like this
<input type="submit" name="submit" value="submit" onclick "<?php enter_code_here ?>"
or what, i also prefer to add all name ages in drop down combo boxes or something, but how the hell can i use html to program it,
im new to php, apache and mysql, and i have done a lot of searching, JUST to get it all installed on my windows box (not unix yet), and got it up running, and it took me a week to figure out how to create a database and create a table for that database and understand multiple tables can be created for that database.
anyway i think im doing ok, but i do need some help, so if anyone is like me and has some more experience, your help would be greatly appreciated.
thanks,
abbas akhtar.
field: type: null:
name varchar(20) yes
age char(2) yes
what i want to do in php using apache server is how to do this:
receive a count of all the listed table data for example like this:
if i have this information stored in my table in mydb,
abbas akhtar, 17
john smith, 27
then the count would be 2, because their are only 2 bits of information,
i also want to be able to read in and print on the browser something like this:
all names in the field name, or age.
edit names, or age,
delete a whole name and age,
i want to be able to use a button for this, but i am not sure on how to execute commands to the mysql server,
i no if i use this
<?php
mysql_query("SELECT * FROM details"
?>
lists everything in the table called details (i no, i have to access the db first, yes i no this).
how could i execute for example the above command, would it be like this
<input type="submit" name="submit" value="submit" onclick "<?php enter_code_here ?>"
or what, i also prefer to add all name ages in drop down combo boxes or something, but how the hell can i use html to program it,
im new to php, apache and mysql, and i have done a lot of searching, JUST to get it all installed on my windows box (not unix yet), and got it up running, and it took me a week to figure out how to create a database and create a table for that database and understand multiple tables can be created for that database.
anyway i think im doing ok, but i do need some help, so if anyone is like me and has some more experience, your help would be greatly appreciated.
thanks,
abbas akhtar.