Jump to content

voyde

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

voyde's Achievements

Member

Member (2/5)

0

Reputation

  1. That doesnt work it just keeps making one line with the most recent data.
  2. Ok I need a flat file to hold one variable... ten different times. A user submits let say their name, the script adds the users name into the flat file erasing the one at the bottom (so there is only 10 at a time). What i got... $filename = $configpath.'lastten.txt'; if (!$handle = fopen($filename, 'r+')) { $error = "Cannot open file ($filename)"; exit; } if (fwrite($handle, $direct_link) === FALSE) { $error = "Cannot write to file ($filename)"; exit; } fclose($handle); How on earth do i get it to write the latest at the top and remove the what once was number 10.
  3. Ok well how in a form input do i retain the breaks? I.E on the way into the database.
  4. I dont seem to follow.... <textarea cols="40" rows="20" name="text"><?=$text?></textarea> do i convert it into a nl2br(String) before i send it to the DB? or when im trying to read the DB
  5. I need some help... If someone enters data into a form a textbox, with multiple lines how can I get PHP to convert each new line into a <br /> so when it saves to the database it automatically has the proper spacing?
  6. Yes but on form submission.
  7. I dont see how those will improve search results.
  8. thanks but I have tried that already with no luck. its mysql 5.0.45 and i cant figure it out on it.
  9. Currently: $sql = "SELECT * FROM lyrics WHERE lyric LIKE '%$q%' ORDER BY id DESC limit $startat,$search_perpage"; Its ordered by descending id, i need it to order by relevance. so the more times $q is found the closer it put it to the top of the results. any ideas?
  10. <? if (isset($_POST['submit'])) { $site = $_POST[status]; header('Location:' . $site .''); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Redirect from forms</title> </head> <body> <form method="post" action=""> <center> <table width="600" cellpadding="0" cellspacing="0"> <tr> <td> <table> <tr> <td><b>I need:</td> <td> </td> <td><select name="status"> <option value="-SELECT-">-SELECT-</option> <option value="http://google.com">On Site Support</option> <option value="http://yahoo.com">Website Development</option> </select> <input type="submit" name="submit" value="submit" /></td> </tr> </table> </td> </tr> </table> </form> </body> </html>
  11. Your index page needs to be something along the lines of.... <? // MAIN PAGE // Put the pages into variables $x = $_GET[x]; $plan = $_GET[plan]; if ($x=="reseller")) { if (empty($plan)) { include ".some/reseller/page.php"; } elseif ($plan=="mega") { include "./some/page/to/mega.php"; } elseif ($plan=="super") { include "./some/page/to/super.php"; } } else { include "./path/to/homepage.php"; } ?> Like I said SOMEthing like that
  12. On a form submit the out put is.... site.com/?s=bananas&q=coconuts&p=1 how to get it on submit to.... site.com/bananas/coconuts/1 ? Thanks
  13. what about google adsense? or bidvertiser, how would i know how much a click costs?
×
×
  • 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.