Jump to content

Xil3

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Xil3's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I guess you could use explode... not sure how your code is layed out though... $t = "The Carguide's Camero Information."; $t_arr = explode(" ", $t); echo $t_arr[2]; // Camero
  2. What's the error message that you're getting? I also noticed that you're not doing anything with the 'col' value that you're sending... If you want to sort them based on the column title that they click on, then you may want to add this bit near the top: ....... $database="cs_jobs"; $col = (isset($_GET['col']) ? $_GET['col'] : 'jobnum'); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM jobs ORDER BY $col DESC"; $result=mysql_query($query); $num=mysql_numrows($result); ....... Notice the change I made in your ORDER BY...
  3. Alright, lemme know if you have any other issues with it.
  4. Nope, but what you could do is have a separate file that holds all the includes and just include that one file instead of having to copy and paste all the 10+ includes in each file that requires it... Here is an example: Includefile.php include "file1.php"; include "file2.php"; include "file3.php"; ... Does that make sense?
  5. Add the following to the top of checklogin.php: ini_set('display_errors', 1); error_reporting(E_ALL | E_STRICT); session_start(); The first 2 lines should display any errors (which will allow you to narrow down any other issues) and the last line is required at the top of checklogin.php since you are using session_register in it.
  6. You could change it so that it allows them to view pages that have already been filled out, and if they go back to those pages you could just pre-populate the data into the form fields (since they would have already filled it out)... Would that work for you? This way you won't get the errors coming up and it will be more user friendly as well.
  7. You can also add DESC to reverse the order as per below: $message_result = mysql_query("SELECT * FROM usermessages WHERE user_id='$user_session_id' ORDER BY date DESC, time DESC", $db);
  8. Change the "AND" between the date and time to a comma (,) as per below: $message_result = mysql_query("SELECT * FROM usermessages WHERE user_id='$user_session_id' ORDER BY date, time", $db);
  9. The site template I have been working on is below... any constructive criticism is appreciated. http://www.j4r.org/projects/zirc/
  10. Hey guys, I just started work on a new website that is listed below: http://www.londonbars.ca Let me know what you think. Keep in mind that the 4 grey rectangles at the top will be replaced with pictures of 4 different bars (outside picture). Also, for a little bit of information on the site.... it's going to be a nightlife information and community site for the London, Ontario area. Xil3
  11. I think you need more color. The site seems overly dull right now. That's probably the only think right now, since you haven't put any content into it.
  12. I personally think that the site is too crowded... you need a cleaner layout. Also, if you try resizing the browser after it loads the site, the tables shrink and the text moves around before the side spacers do. Xil3
  13. Let me know what you guys think of my website listed below: http://www.calgaryads.ca I'm trying to improve it constantly, but at the same time keeping it as simple as possible. So, any advice or constructive criticism is appreciated. Xil3
×
×
  • 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.