Jump to content

Dev_Isos

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Dev_Isos's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. OK ... I've never used the LIKE before ... so I couldn't remember that. I simply checked the search method that phpbb forums uses and it seems the same. they have all the posts in one table refered by the poster and the wordsearch is a different table. I'll try this LIKE thing and thank you very much ... that seems a lot less work.
  2. Hi I want to build a search page for arabic bible verses. I need to create a database for this ... now the script for the search page is not a problem but my problem is in the database. Now ofcourse before I write the script I need to create an admin page so people may help me inserting the bible into the database verse by verse. but as I was considering the search method, it must by word ... so I need another table which will have 3 fields: one for the word ID, another for the verse ID and another for the word itself. So that way, I will enter a verse, that is a whole sentence, into the database using a php admin page. The question is ... how can I do the data entry for once, and have the data entered in two ways: 1. Have the verse entered as sentances in the verses table 2. Have each word of the verse be entered into the wordsearch table word by word (each word should be inserted in one row). I am simply asking 4 hints ... but if somebody have a full script for that, I will appriciate it.
  3. heloooooooooooooooo ... can I please get some help?
  4. I have a GET conflict as I set the method of two forms. one form should select something that should cause the page to load and keep the first form as it is and show another form with the method GET now I know I can use GET for the first and POST to the second ... but I need the URL to appear as: index.php?select1=value1&select2=value2 I am doing this with smarty: [code] {* =============== START DISPLAY ================ *} {* SELECT PREACHER*} <tr>     <td width=5%>     <FORM ACTION="" METHOD="GET">         <SELECT NAME="preacher" OnChange="this.form.submit();">               <OPTION SELECTED > ÇÎÊÑ ÇáæÇÚÙ           {section name=preacher max=$p_count loop=$preachers }           <OPTION VALUE="{$preachers[preacher].id_p}"                    {if $preacher == $preachers[preacher].id_p} SELECTED {/if} >{$preachers[preacher].preacher}           </option>           {/section}         </SELECT>     </FORM>     </td> {* END SELECT YEAR*} {* ---------------- *} {* SELECT DATE *}   {if $preacher}     <td width=40%>     <FORM ACTION="" METHOD="GET">         <SELECT NAME="year" OnChange="this.form.submit();">               <OPTION SELECTED > ÇÎÊÑ ÇáÓäÉ           {section name=year max=$y_count loop=$years }           <OPTION VALUE="{$years[year].year}"                    {if $year == $years[year].year }                    SELECTED {/if}>                    {$years[year].year}           </option>           {/section}         </SELECT>     </FORM>     </td>   {/if} {* END SELECT YEAR*} {* ---------------- *} [/code] now as you can see the first form is to select a preacher so after selecting it the URL goes like this: index.php?preacher=1 at the same time the page loads and the second form should appear with to select a year. I need the URL to go like this: index.php?preacher=1&year=2005 ... ofcourse that would display records later according to both of these values. any help will be appriciated
×
×
  • 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.