php & sql problem?
Posted: Wed Oct 22, 2003 12:57 am
Hello Every One.
i have a table and 2 columns in it what i want's to do is that fetch the info that is in both columns one column name is 'title' and other's name is 'info' against each title it contains some info and i just know the name of 2 coumns . Now i had to fetch all the titles from table along with the coross-ponding info.
using the above code i can get the #of effected records but how can i fetch all the record from the column.
i mean how can i will be able to featch all the titles. ?
Regards :-
i have a table and 2 columns in it what i want's to do is that fetch the info that is in both columns one column name is 'title' and other's name is 'info' against each title it contains some info and i just know the name of 2 coumns . Now i had to fetch all the titles from table along with the coross-ponding info.
Code: Select all
<?php
$res = mysql_query($query) or die(mysql_error);
$norow = mysql_num_rows($res);
?>i mean how can i will be able to featch all the titles. ?
Regards :-