![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| hello i have this code : Code: // keeps getting the next row until there are no more to get
echo "<table border='1'>";
echo "<tr> <th>Date</th> <th>Title</th><th>Area</th> </tr>";
$num = 0;
while($info = mysql_fetch_array( $data )) {
// Print out the contents of each row into a table
$key = 'unique_key_'.$num;
echo "<tr><td>";
echo ' '.$info['Submission_Date'];
echo "</td><td>";
echo '<a href="#" onclick="return doToggle(\''.$key.'\');">'.$info['posting_title'].'</a><br />';
echo '<div id="'.$key.'" style="display:none;">';
echo $info['posting_discription'];
echo "</div>";
echo "</td><td>";
echo ' '."(".$info['living_area'].")";
echo "</td></tr>";
$num++;
}
echo "</table>"; begining: date title **** ******* after clicking the link : date **** title |table border ******** ************************************** instead of like i want: date ***** title |table border ********* ************** ************ ********** ( the colums r under each other here cus i didnt have a way to show it differntly , buy they side by side "date title ") thanks for any help |
|
#3
| ||||
| ||||
| Just change Code: <div id="'.$key.'" style="display:none;"> Code: <div id="'.$key.'" style="display:none; width: 300px">
__________________ Register/Login Script Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |