Jump to content

killah

Members
  • Posts

    234
  • Joined

  • Last visited

    Never

Everything posted by killah

  1. $Query = sprintf (" SELECT c.*,ci.* FROM c.category LEFT JOIN ci.catjoin USING (c.category_id) ORDER BY c.category_id ASC GROUP BY c.category_ID "); $result = mysql_query($Query) or die(mysql_error().'<br><br><b>Query Was:</b><br>".$Query);
  2. <div>'s are cross browser while <table>'s are not. So i would recommend <div>'s here.
  3. Try this as your first query: $Query = sprintf (' SELECT c.*,ci.* FROM c.category LEFT JOIN ci.catjoin USING (c.category_id) GROUP BY c.category_id ORDER BY c.category_id ASC '); $result = mysql_query($Query) or die("Line error on " . ___LINE___ . "<br>".mysql_error());
  4. Sorry about that one. I tend to code my own php function's and think they are part of the php v4 + community. Therefor do not pay attention to my session_end(); bit at the bottom.
  5. I have never used session_register() function before. I therefor can say you can normaly just go by using this: session_start(); $_SESSION['USERID'] = 'xyz'; session_end(); //of course only if you want to end it
  6. Try using div tag's rather than table's. Div tag's are supportive over cross browser's. By using div tag's you get cross browser. Very good when needed. You just need to learn them. They are not that very hard. For example: this is css: #row_1 { height: 0px; width : 0px; margin-top: -94px; margin-left: -98px; margin-right: 0px; margin-bottom: 0px; } <div id="row_1"> </div> And that will display there. I honestly recomend using div tag's rather.
  7. Glad to help. As said. New here. I have actualy been on another forum for quite along time. PHP programming forum. They are a bunch of people who can not actualy program at all. I quit there due to the lack of people saying they are good and all but end up asking for help all the time. Anyway's im alway's up for helping some one.
  8. Isn't print(''); already part of the php syntax? And if so why would you want to take it out of the print syntax. I would use this: echo '<link rel="stylesheet" type="text/css" href="' . $style_g . '">';
  9. It should if you add more line break's to it (<br />). What you could do is add a table inside there with 0 border and make it height 100% and see what happen's there.
  10. That there is lack of spacing... Anyway's. I am new here. You can try this. $query1 = "SELECT * FROM vehicle1 WHERE status1 = 'Pending' ORDER BY id1 DESC LIMIT 1"; $result1 = mysql_query($query1)or die(mysql_error()); while ($row = mysql_fetch_array($result1)) { extract($row); //Where's your opening table? echo ' <embed src="doorbell2.wav" autostart="true" loop="true" controller="false" id="doorbell2" name="doorbell2" width="0%" height="0%"> </embed> <tr> <td align=center>' . $row['id1'] . '</td> <td align=center>' . $row['dateTime1'] . '</td> <td align=center>' . $row['passType1'] . '</td> <td align=center>' . $row['noOfVehicle1'] . '</td> <td align=center>' . $row['custname1'] . '</td> <td align=center>' . $row['des1'] . '</td> <td align=center>' . $row['roomNo1'] . '</td> <td align=center>' . $row['tableNo1'] . '</td> <td align=center>' . $row['vehicleType1'] . '</td> <td align=center>' . $row['company1'] . '</td> <td align=center> <a href="restCancel.php?status1='.$status1.'&id1='.$id1.'" style="text-decoration:none"> ' . $row['status1'] . ' </a> </td> </tr> <tr>'; } //And supposing you running more than one row you will need to display each in a new row and not all in one. echo ' </tr> </table>'; //Suposingly you also have a table we close it also.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.