Jump to content

jeger003

Members
  • Posts

    260
  • Joined

  • Last visited

Everything posted by jeger003

  1. oh man i wish it was that easy......i've been tryin for months to figure out how to do that......i hired a guy from scriptlance.com.........he started working and said he was using cURL to combine the two(not sure how that works).....but after a little work i never heard from him again.....lol.....learned my lesson....so im tryna do everything myself now cause i really cant trust anyone......im still using phpbb forum and wanted to combine that with my site.....i didnt get any support from their forum...... thats why i wanted to decide on whether it was worth using or not.........if you created a college forum what would you do or how would you change it to make users post? should i have a few fake posts? or how do i make it start up? its soo empty
  2. Awesome advice guys!!! i've been trying to get one up for my site......wasn't really sure how to go about it or what i would need.. thanks again guys!
  3. hello everyone, does anyone know anything about facebook applications? can they be created in php? how do they work and how can i create one for my site? i would appreciate any feedback! thanks!
  4. another question. how can i start up my forum? make users post? show that we have a forum? i would appreciate any feedback
  5. yea very good point......it hasnt gott'n any posts but i think its because its so separate from the site.....i've been tryin to find ways to make the forum stand out or show that we have a forum......but yea i think im just gonna combine them thanks
  6. hello, i have a simple search on my php site that does not have a button. its two fields.....one you can search by title and the other you can search by ISBN....my problem is since it doesnt have a button it wont work on a mobile phone (i tried it). how can i combine them but have them do two different things <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td height="79"><table width="504" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td nowrap class="search_bar_text_title">Book Title:</td> <td width="417"><form action='/index.php?a=28&b=145&search=100' method='post' class="search_bar_text_font"> <input name='szs' type='text' style="color: #999999; font-size: 12px;" onFocus="if (value == 'Enter Title ') {value=''; style.color='#000'; }" value="Enter Title" size="60" maxlength="50" /> </form></td> </tr> <tr> <td nowrap class="search_bar_text_title">Book ISBN:</td> <td width="417"><form action='/index.php?a=28&b=145&search=200' method='post' class="search_bar_text_font"> <input name='isb' type='text' style="color: #999999; font-size: 12px;" onFocus="if (value == 'Search ISBN') {value=''; style.color='#000'; }" value="Search ISBN" size="60" maxlength="50" /> </form></td> </tr> </table></td> </tr> </table>
  7. hello everyone, i have a site where college students can post items.......similar to craigslist but college....i have a forum with it but its completely separate from the site.....and it requires a new login.....which means to post an item you need a login and to post in the forum you need a new login.......i might be able to combine them but.....not sure if its worth it my question: should i combine the two or keep them separate? or should i just remove the forum? i was hoping to make the forum a place for students to just talk about school, professors, classes etc..... i would appreciate any advice......ideas....tips....not sure whats left...lol thankS!!!
  8. hello everyone, quick question. is it possible to create email forwarding similar to craigslist.com where a user posts an ad it creates a special email that hides their email?? any help would be great!
  9. oh boy.......this is embarrasing....*cough*you were right*cough*.....apareantly server was pointed to something that had the same name thanks thorpe!
  10. LOL........sorry i didnt specify that i checked everything....i made sure of the file location, name, and everything that has to do with it......but i still get the error......any ideas on how i can test it?
  11. hello, im tryin to include a .php file and its giving me this error Warning: include() [function.include]: Failed opening '/file.php' for inclusion (include_path='.:/usr/local/php52/pear') in /display_php_3.php(5) : eval()'d code on line 1 can anyone help?
  12. yeah thanks so much man! i had no clue about any of this stuff.
  13. lol that is freakin awesome....i had no idea that was even possible.......thats def something im gonna read up on...........thank you for all the help....greatly appreciate it!!!!
  14. i thought each isbn was assigned to a specific book......how can a 9 digit be converted to a 13 digit? i think what im going to do is offer two fields......ISBN 13: and ISBN 10: this way there wont be a mix up on which is which.....i dont know why a user would think they can put (ISBN13:978-11-335-44) in a field that asks for ISBN:(meaning just the numbers)....theyr just putting double the crap (ISBN:ISBN13:978-11-335-44)...this is where it really messes up the search and makes it incredibly difficult to remove ISBN13 then search for 978-....do you have any similar issues? EDIT: and how do you get around them?
  15. true, but that began i think after 2007. but it really doesn't matter how many digits a user enters....its being able to match isbn's when users search for them.....thats why i wanted to remove the '-'. this is a very help tip......only problem is that i'd probably have to update the db every time a user enters a book. is there any thing in php or mysql that would remove/ignor everything except numbers?
  16. yea i wanted to be able to call just 'numbers' in a query. thought maybe there is a way to do that so that it would ignore the '-' in ISBN numbers stored in the db. but i figured out to do it this way....i would appreciate anyone looking at it and hopefully improving in any way.....my other issue is that sometimes users are retarded and they would enter ENTER ISBN: ISBN:(number) and this means i have to string replace ISBN: as well.... here is my code: it works $query_search_exact_match = mysql_query("SELECT listings.title, listings.id, listings.description, listings.search_text, listings.image, listings.date, listings.price, listings.location_city, listings_extra.name, listings_extra.value, listings_extra.classified_id FROM listings,listings_extra WHERE name = 'ISBN%3A'") or die(mysql_error()); while ($fetch_extra = mysql_fetch_array($query_search_exact_match)) { $replace = array("-","ISBN",":"); $with_this = array("","",""); $valu = $fetch_extra['value']; //echo urldecode($fetch_extra['value'])."<br>"; $new_isbn = urldecode(str_replace($replace, $with_this,$valu)); $find_replace = array("-"," "); $find_with_this = array("",""); $find_valu = $_GET['isb']; $to_find_isbn = str_replace($find_replace, $find_with_this,$find_valu); if($new_isbn == $to_find_isbn) { if($fetch_extra['classified_id'] == $fetch_extra['id']) { echo $fetch_extra['title']; } } }
  17. is there a way to make it displays numbers only and make it ignore all other values or characters?
  18. problem is my site is a purchased script.....i know what you mean but i wouldn't be able to figure out where to make it do that....... but....with the code you provided....i honestly have no clue where and how i can use it.......do you mean that i would first call the ISBN fields and then str_replace the "-" then run it back into a new query and match it with the users input?
  19. yes, it wont be able to find any isbn.....if a user did 9780135048160 and the isbn is stored as 97-801-350-4816-0 it wont find a match
  20. try this $price = $price_here; //i.e. $12,452.58(EA) $to_remove = array("$",".", ",", "(EA)"); $to_put_in = array("","","",""); echo str_replace($to_remove,$to_put_in,$price) ; basicaly replacing characters with "" or nothing...let me know how it goes....i tested it myself and it works
  21. hello, i have a book site and i want users to be able to search books by isbn........the isbn of the books on my site are stored like this 123-45-678-9-10 i want to be able to remove the '-' so that it would be 12345678910 that way when a user searches for that isbn i can do $ISBN = 123-45-678-9-10 str_replace("-", "", $ISBN); but i cant figure how i can remove the '-' of the isbns that are already in the mysql database here is my code so far $search_isbn = mysql_real_escape_string($_POST['isb']); $rpl_isbn = str_replace("-","", $search_isbn); $query_search_exact_match = mysql_query("SELECT listings.title, listings.id, listings.description, listings.search_text, listings.image, listings.date, listings.price, listings.location_city, listings_extra.name, listings_extra.value, listings_extra.classified_id FROM listings,listings_extra WHERE listings_extra.name = 'ISBN%3A' AND listings_extra.classified_id = nvc_classifieds.id AND listings_extra.value LIKE $rpl_isbn") or die(mysql_error()); not sure why but name for ISBN field is stored ISBN%3A i would appreciate any help thanks
  22. i got it working but i want to retrieve the name 'c' in the form....thats what im using to match with the database.....the form is basically a search....when i use 'post' i can $_GET a and b but if i use 'get' in the form it shows 'c' but then it wont run query. echo "<br>"; echo "<table> <tr> <td colspan='2' align='center'>Search All Visits<td> <tr> <form action='/visitors/index.php?a=1&b=2' method='post'> <td>Enter:</td> <td><input type='text' name='c' value='' /></td> </tr> <td><input type=submit name=submit value=Submit /></td> </table>"; echo "<br>"; //list all visits echo "<br><br><a href='/visitors/index.php?a=3&b=4>List All</a><br><br>"; //-----------can delete below $get_a = $_GET['a']; $get_b = $_GET['b']; $get_c = $_GET['c']; if(isset($get_a) && isset($get_b)) { if($get_a == 1 && $get_b == 2 ) { echo "search 1st if <br><br>"; echo $get_c; } if($get_a == 3 && $get_b == 4 ) { echo "list all 2nd if <br><br>"; } } else { echo "500 limit 3rd if"; }
×
×
  • 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.