Jump to content

JayBachatero

Members
  • Posts

    296
  • Joined

  • Last visited

    Never

Everything posted by JayBachatero

  1. Seems like IE is not taking into account the max height for the code block. I'll look into it.
  2. There is a tag mod for SMF. http://www.smfhacks.com/hacks/Tagging-System.html
  3. There is a See All in the topic page. But it not really recommended to do that on large forums.
  4. Easy. Delete a post then move the post back. The board might not be counting posts.
  5. I use Komodo and I love it. I've used ConText and others but Komodo gets my vote.
  6. Are you talking about the topics/messages tables? If so two tables would be better than having 1 large table with the topics and the messages. The topics table would be all numeric. The messages table would have a reference column for the id_topic. I suggest you look at other forums and get an idea on how they do it. Some even split it into 3 tables to optimize things but 2 tables is enough. The 3rd table would be just a reference to the id_message and the actual post itself.
  7. I'm the same way. I have to wear a white t-shirt under any shirt. Doesn't matter what type of shirt it is. I can't wear wife beaters. Has to be t-shirts. I'm somewhat like this but that's when I'm bored and start wondering while I'm walking. Like I pay attention to these things more than usual. Not sure why. Sometimes when I'm thinking or wondering I start pulling my chin hair. Just pull it and let it go repeatedly.
  8. I just have a test dir and i let it get filled with junk.
  9. Yea you need apt-get dist-upgrade to upgrate to the latest distribution.
  10. This mod is for SMF only.  I think there are other mods for other forum software.
  11. You can also rsync the files. IIRC rsync is faster than ftp.
  12. If anything there is a phpBB to SMF converter .
  13. Change $query = "select * from parasite WHERE id='$_GET['id']'"; to $_GET['id'] = (int) $_GET['id']; $query = "select * from parasite WHERE id='$_GET[id]'"; Change $_GET['id'] to $_GET[id]. Added the $_GET['id'] = (int) $_GET['id']; to make sure its an integer.
  14. Change the if($row['LinkURL']==$page) to this. if (strtolower($row['LinkURL']) == substr(strtolower($page), 0, -4))
  15. Most likely your new host has prefixes for databases. Check your settings an make sure its not a prefix problem. I'm assuming that you did backup and imported your database. Database info is not stored like regular files that you download and ftp to new server.
  16. Can you explain what exactly are you planning to do so that we can help you out a bit with the schema.
  17. What are you using the id field and the job_number field? They will be the same number so might as well ust use one of them. No need for dup data.
  18. I used ' most of the times except when I must use ".
  19. Try doin a print_r to see what data is in the array. print_r($cart);
  20. You have a parse error in your code. If you are going to use single quotes you must escape them inside the string. eg. echo 'It\'s hot outside.'; Or else you get a parse error. Same goes when using double quotes. Change the opening and closing quotes to double quotes. <?php $sql = ' INSERT INTO `Client`( `Client_FName` , `Client_LName` , `Client_CName` , `Client_Street` , `Client_City` , `Client_State` , `Client_Country` , `Client_Zip` , `Client_PhoneCountry` , `Client_PhoneArea` , `Client_PhonePrefix` , `Client_PhoneNum` , `Client_Email` , `Client_StartDate` , `Client_BillDate` , `Client_CurrentQuota` , `Client_CurrentPricePerGig` , `Client_SalespersonID` ) VALUES ( 'Client_FName', 'Client_LName', 'Client_CName', 'Client_Street', 'Client_City', 'St', 'USA', 'Client_Zip', '1', '213', '555', '1212', 'Client_Email', NOW( ) , '3', '5', '2.00', '1' );'; ?> <?php $sql = " INSERT INTO `Client`( `Client_FName` , `Client_LName` , `Client_CName` , `Client_Street` , `Client_City` , `Client_State` , `Client_Country` , `Client_Zip` , `Client_PhoneCountry` , `Client_PhoneArea` , `Client_PhonePrefix` , `Client_PhoneNum` , `Client_Email` , `Client_StartDate` , `Client_BillDate` , `Client_CurrentQuota` , `Client_CurrentPricePerGig` , `Client_SalespersonID` ) VALUES ( 'Client_FName', 'Client_LName', 'Client_CName', 'Client_Street', 'Client_City', 'St', 'USA', 'Client_Zip', '1', '213', '555', '1212', 'Client_Email', NOW( ) , '3', '5', '2.00', '1' );"; ?>
  21. You might want to look into making sure that a variable isset before using it.
  22. You don't really need this in your code. $name = @mysql_query('SELECT parasitename FROM parasite'); if (!$name) { exit('<p>Error performing query1: ' . mysql_error() . '</p>'); } $from = @mysql_query('SELECT parasitefrom FROM parasite'); if (!$from) { exit('<p>Error performing query2: ' . mysql_error() . '</p>'); } $genre = @mysql_query('SELECT parasitegenre FROM parasite'); if (!$genre) { exit('<p>Error performing query3: ' . mysql_error() . '</p>'); } $description = @mysql_query('SELECT parasitedescription FROM parasite'); if (!$description) { exit('<p>Error performing query4: ' . mysql_error() . '</p>'); } $techinfo = @mysql_query('SELECT parasitetechinfo FROM parasite'); if (!$techinfo) { exit('<p>Error performing query5: ' . mysql_error() . '</p>'); } To order alphabetically change this. SELECT parasitename,parasitefrom,parasitegenre,parasitedescription,parasitetechinfo FROM parasite to this. SELECT parasitename,parasitefrom,parasitegenre,parasitedescription,parasitetechinfo FROM parasite ORDER BY parasitename ASC EDIT: You might want to take a look into http://us2.php.net/manual/en/function.mysql-escape-string.php for when inserting data.
×
×
  • 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.