What is the variable that I should pass from page to page?

Hello,
I have gotten some code for pagination, and I have gotten it to work for the first page.  However, when I click on the links to the next pages, the results are blank.
So, apparently the problem is that I am not passing the correct variable to these next pages.
The problem is that my output that I'm trying to paginate is a little fancy, and it's hard for me to tell what variable to pass from page to page, and whether or not this variable is an array. 
My output code is below.  This is all kicked off after a user submits a value for the variable "$find" via an HTML form.  What should I use as a variable to pass from page to page?
Thanks in advance,
John
$result=mysql_query("SHOW TABLES FROM sand2 LIKE '%$find%'")
or die(mysql_error());
if(mysql_num_rows($result)>0){
while($table=mysql_fetch_row($result)){
print "<p class=\"topic\">$table[0]</p>\n";
$r=mysql_query("SELECT * , votes_up - votes_down AS effective_vote FROM `$table[0]` ORDER BY effective_vote DESC LIMIT $offset, $rowsperpage");
print "<table class=\"navbar\">\n";
while($row=mysql_fetch_array($r)){
print "<tr>";
print "<td>".'<a href="http://'.$row['site'].'" class="links2">'.$row['site'].'</a>'."</td>";
print "<td class='votes'>".'<span class="votes_count" id="votes_count'.$row['id'].'">'.number_format($effective_vote).'</span>'."</td>";
print "<td class='ballot'>".'<span class="button" id="button'.$row['id'].'">'.'<a href="javascript:;" class="cell1" id="'.$row['id'].'">'.Vote.'</a>'.'</span>'."</td>";
print "</tr>\n";
print "</table>\n";

>$result=mysql_query("SHOW TABLES FROM sand2 LIKE '%$find%'")
>
>Should it be SELECT * FROM TABLENAME ?
The OP is searhing the system tables for a user table in a database. With most dbms's you would select from the system table for the object. MySql has the Show command.
http://dev.mysql.com/doc/refman/5.0/en/show-tables.html

Similar Messages

  • Everytime I use IE, first I have to click on the IE bar to allow blocked contect to display. What is the content that is being blocked from IE? viewers may not know what the problem is and see my site totally out of format.

    Everytime I use IE, first I have to click on the IE bar to allow blocked contect to display. What is the content that is being blocked from IE? viewers may not know what the problem is and see my site totally out of format.

    discoveriweb wrote:
    This is iweb development where after publishing, things look different in IE than other browsers. U r correct that this is due to IE software but is iWeb related. After all, one uses iweb not to just publish in Safari but for all browsers.
    Which means that you are only considering half of the problem, but that's your choice.
    I'm out.

  • What is the Role that gives me access to JCO settings page?

    Hi all,
    I am at the customer site doing some WDP dev. I need to setup JCO so as to make use of RFC.
    Customer has already assigned all the roles they have and i still cant access to the backend setting page.
    What is the role to give me the access? how do i operate?
    thanks guys!

    Hi Erv2,
    As you have mentioned that you are at your customer, then I presume you would want to get things fix ASAP. Thus I would suggest that you talk to your custmoer that they allow you to have the below authorisations or role assignment to your userID (you can ask one of their Portal Admin to sit with you while you work on it and at the same time, train him/her    ).
    As already mentioned by Koti, in the backend, ask for J2EE_Admin role to be assigned to you via SU01 transaction. Then next, ask them to give you the "Super Administration" role in the Portal via User management ...this role contains all the neceesary authorisation that a Portal Admin needs to execute most/all Portal admin activities.
    Once you have finish setup, you can ask to remove the "Super Administration" role.
    As a customer (myself), I give the necessary Admin role in Portal and/or J2EE authorisation on backend systems to our portal consultant with me next to him, so as a reasurring to the SAP security team and also to achieve needed knowledge transfer. Its a win-win situation.
    If your customer does not want to give more authorisations...then the above mention roles/steps are to be follow..which at times, maybe afew steps instead of just 1.
    Hope that helps.
    Ray

  • What are the objects that support variables?

    What are the objects that support variables?

    Using Variables: The Variable Wizard and the Variable Editor
    Definition
    Variables are parameters of a query that you defined in the Query Designer and that are filled with values when you execute the query or Web application. They serve as a store for characteristic values, hierarchies, hierarchy nodes, texts and formula elements, and can be processed in different ways.
    The processing type determines how a variable is filled with a value for the runtime of the query or Web application.
    There are different types of variables depending on the object for which you want to define variables. These types specify where you can use the variables.
    Variables are reusable objects. This means that when you define a variable for a query in the Query Designer, this variable can be used in all other queries. Variables are not dependent on the InfoProvider, only on the InfoObject. A variable that you define for an InfoObject is available in all InfoProviders that use this InfoObject.
    Use
    Variables enable you to customize queries flexibly (parameterize the query) possible. If you use variables in the Query Designer, do not select any fixed characteristic values, hierarchies, hierarchy nodes, texts, or formula elements. Instead, set up variables as place holders. These are then filled with values when the query is running (when you insert the query into a workbook, when you refresh the workbook or when you execute the query on the Web. You can use one query definition as the foundation for many different queries if you use variables.
    You want to create one query for all the people responsible for customer groups, who each only evaluate the data for one customer group. In the Query Designer, you insert a variable for the characteristic u2018customer groupu2019. Just before the query is executed, decide for which customer group(s) you want the query to apply to.
    There are two tools in the Query Designer for designing and changing variables.
    The variable wizard takes you step-by-step through the process of defining a variable. Each individual step is context-sensitive and is adjusted according to the combination of variable and processing types used. This means that the variable wizard only offers the selection options that are permitted for that combination of variable and processing types. For more information, see Defining Variables with the Variable Wizard.
    The variable editor dialog box offers all of the selection options for changing an existing variable. The individual fields in the dialog box show the settings affected in the variable. You can change these settings here. If you want to make the changes using a step-by-step process with explanatory texts, you can jump to the variable wizard using . For more information, see Changing Variables in the Variable Editor.
    Integration
    The variable wizard and the variable editor are functions in the Query Designer and are context-sensitive.
    In principle, the two dialog boxes appear wherever you can enter constants (that is, values) in input fields. One of these input fields is the Entry of Variables checkbox.  If you select this option, the following options for using a variable appear, instead of a fixed value:
    ·        The variables that are available appear in the dropdown box for the input field. You can select a variable from the dropdown box.
    ·        The symbol  Change Variable appears next to the Entry of Variables checkbox. You can change the variable using  . The Variable Editor dialog box appears.
    ·        The symbol  New Variable appears next to the Entry of Variables checkbox. Choose  if you want to create a new variable. The Variable Wizard dialog box appears.
    By way of an example, when defining conditions for the value limit of the condition, you can not only enter fixed values but also formula variables. Mark the Entry of Variables checkbox and you can then use the options described above. The settings are context-sensitive so that the formula variables that only those formula variables that are available appear in the dropdown box.  The variable wizard is set up automatically in the same way for entering formula variables.
    You can also get to the variable wizard and the variable editor from the context menu of those objects for whose values you can define variable placeholders. From the context menu, choose New Variable. The SAP BW Variables Wizard appears. In the context menu for variables that have already been defined, you can choose Edit. The SAP BW Variables Editor appears.
    In the InfoProvider objects dialog box, you select a characteristic (for example, Order) and from the context menu, choose New Variable. You reach the variable wizard, which is already set up for you to enter a characteristic value variable.
    In the InfoProvider objects dialog box, you select a characteristic value variable and from the context menu, choose Edit. You reach the variable editor where you see all of the settings for the variable. You can make changes to the variables here.
    Variable Types
    Definition
    The type of variable being used. This determines the object that the variable represents as a placeholder for a concrete value.
    Structure
    There are different types of variables depending on the object for which you want to define variables. These types specify where you can use the variables.
    ·        Characteristic Value Variables
    Characteristic value variables represent characteristic values and can be used wherever characteristic values are used.
    If you restrict characteristics to specific characteristic values, you can also use characteristic value variables. See, Restricting Characteristics.
    ·        Hierarchy Variables
    Hierarchy variables represent hierarchies and can be used wherever hierarchies can be selected.
    If you restrict characteristics to specific hierarchies or select presentation hierarchies, you can also use hierarchy variables. See Selecting Hierarchies
    ·        Hierarchy Node Variables
    Hierarchy node variables represent a node in a hierarchy and can be used wherever hierarchy nodes are used.
    If you restrict characteristics to specific hierarchy nodes, you can also use hierarchy node variables. See Restricting Characteristics: Hierarchies
    ·        Text Variables
    Text variables represent a text and can be used in descriptions of queries, calculated key figures and structural components.
    You can use text variables in the description of calculated key figures, restricted key figures, selections and formulas when you create them. See Defining Calculated Key Figures, Defining Restricted Key Figures, Defining Selections, and Defining Formulas.
    You can change the descriptions in the properties dialog box. See Query Properties Calculated Key Figure Properties Restricted Key Figure Properties, and Selection/Formula Properties.
    ·        Formula Variables
    Formula variables represent numerical values and can be used in formulas. See Defining Formulas.
    In addition, numerical values are used for selecting exceptions and conditions and you can also use formula variables here. See Defining Exceptions and Defining Conditions
    You can use a formula variable for the interest rate in order to process the current interest rate, after you have executed the query or Web application.
    http://help.sap.com/saphelpnw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm_

  • Hi ,, I need to reset my security question but the email that I should reserve the reset link has changed , and i don't know it ,, what can I do ????.

    Hi ,, I need to reset my security question but the email that I should reserve the reset link has changed , and i don't know it ,, what can I do ????.

    If you still have problem, call Apple to help reset your Security Question.
    http://support.apple.com/kb/HT5699

  • HT201250 Hi what is the next system that I should upgrade from Mac OS X 10.6.8? And, should I backup before downloading it?

    Hi what is the next system that I should upgrade from Mac OS X 10.6.8? And, should I backup before downloading it?

    You should backup before installing any new system updates or upgrades. Depending upon what your machine is qualified for you could upgrade to Lion or Mountain Lion.
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You must purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

  • Apple TV: what are the specific settings I should adjust to?

    Hi, there
    I really need your help now. I use a DVD ripper to rip DVD to MP4 for Apple TV. I am trying to achieve quality that is close to a movie (m4v) from iTunes. What are the best settings to get this type of quality? I am not concerned with output file size, and I just want to get the very best quality I can. If so, what are the specific settings I should adjust to? The program I am using allows me to adjust video and audio parameters as below:
    Video parameters:
    Codec: h.264
    Resolution: 1280*720
    Bit rate: ??? (it is said Up to 5 Mbps, but what is the specific bit rate?)
    Frame rate: 24 fps
    Audio parameters:
    Codec: aac
    Sample rate: ???
    Bit rate: ??? it is said 16 to 320 Kbps, but what’s the specific figure?
    Audio channel: mono, stereo and 5.1 channel, which one should I choose?
    Following are the tech specifications I copied from Apple’s official website:
    Video formats supported
    H.264 and protected H.264 (from iTunes Store): Up to 5 Mbps, Progressive Main Profile (CAVLC) with AAC-LC audio up to 160 Kbps (maximum resolution: 1280 by 720 pixels at 24 fps, 960 by 540 pixels at 30 fps) in .m4v, .mp4, and .mov file formats
    iTunes Store purchased video: 320 by 240 pixels, 640 by 480 pixels, 720 by 480 pixels (anamorphic), or high-definition 720p
    MPEG-4: Up to 3 Mbps, Simple Profile with AAC-LC audio up to 160 Kbps (maximum resolution: 720 by 432 pixels at 30 fps) in .m4v, .mp4, and .mov file formats
    Audio formats supported
    AAC (16 to 320 Kbps); protected AAC (from iTunes Store); MP3 (16 to 320 Kbps); MP3 VBR; Apple Lossless; AIFF; WAV; Dolby Digital 5.1 surround sound pass-through
    And I have selected some parameters according to this, please see the above contents, but there is no info about specific video/audio bit rate, audio sample rate, and audio channel. I just wanna know if I want to watch the movie on my 1920×1080 TV, what are the specific settings I should adjust to?
    Any suggestion is appreciated. Thanks in advance.

    Well, then how about playback Apple TV uncompatible video files? I have some other video files(such as avi, mkv,not DVD), and I also have a video converter, i know i can convert them to m4v, mp4, or mov that supported by ATV,but the thing is that i still don't know the best specific settings for conversion. Any suggestion? Many thanks for your kind reply.

  • Correct variables that need to pass to rwrun60 and other questions

    Hello all from sunny Manchester.....
    I have questions from those pesky developer types that i can't answer. Is there an angel out there..?
    Questions:
    1. What are/where can I find the variables I need to pass to rwrun60? Anybody have an example?
    2. Also, is the rwrun60 the command line version equivalent to r25run?
    3. Is the command a stand alone executable i.e. it does not talk to a report server?
    4. What are the rwrun60c and rwcli60 commands and how do we call these?
    Answers on a postcard to... :-)

    1) The rwrun60 is Oracle's Reort runtime executable. You can find a list of the command line params you can pass to this by opening the help file (oracle reports developer) and typing rwrun60.
    2) Yes.
    3)Yes it can be used as a stand-alone command.
    4) Also found in help

  • BAPI_SHIPMENT_COST_ESTIMATE  What are the min. required parameters to pass

    Hi All,
       I would like to know what are the minimum required  parameters to pass in BAPI BAPI_SHIPMENT_COST_ESTIMATE. And from which tables I can pull out that information to pass to this BAPI.
    Does this BAPI creates a shipment cost document in the system or just shows the estimate of the shipment cost.
    If it creates a shipment cost document then its good for me. but if it shows us just the estimate does it shows estimate for each delivery (total Qty, Unit Price & Total Price). 
    What will be the item category it will pick. I like to see it picks  basic price related item category.
    Does any body has used this bapi ?
    Appreciate your fast reply.
    Regards,
    Leona

    Hello, I´ll try to answer your question:
    1. is it possible to run the bapi without actual shipment number and the shipment ( & cost ) will be created in simulation mode ?
    I think that the bapi only run with external shipment number and only run in simulation mode, that´s mean the bapi can not create any shipment and cost document, if you want to create a shipment use BAPI_SHIPMENT_CREATE, to create a cost document I don´t know if there is a bapi but you can create easily with transaction VI01 (batch-input)
    The shipment number that you use to call the bapi is a ficticious number always between external range indicated in field V_TVTK-NUMKE with the shipment type that you use.
    2. is it possible to perform estimation to inbound shipments ?
    Yes it´s depend on the shipment type. In standard system 0010 is used
    In the example that I have I use an inbound delivery
    3. does the bapi creates shipment and scd in simulate mode like transaction VICI ( from sales order ) ?
    I think that the bapi only run in simulation mode and it can not create any document
    4. is there any problem if i customized my scd item categories to open manualy ?
    I think that the bapi needs to work properly automatic iten categories
    can you please post sample code ( or any other doc's ) for this bapi ?
    I send you a document with an example if you give me an e-mail because I don´t know how to attach a word document
    Best regards,

  • What are the naming conventions we should follow while creating an object

    hi
    what are the naming conventions we should follow while creating an object in ABAP dictionary, i.e while creating zee table.

    Hi,
    Namespaces and Naming Conventions
    SAP has reserved name ranges for customer objects and SAP objects. Use these customer name ranges to make sure that your objects are not overwritten by SAP objects during the import of corrections or an upgrade.
    This documentation lists the customer name ranges for the different system objects.
    Only use the customer name ranges. If you do not keep to the name ranges for customer objects you may lose your development objects.
    SAP delivers a few system objects with names that fall within the customer name range. These objects already existed when the customer name range was extended from YY/ZZ to Y/Z. These objects are listed in table TDKZ.
    Regards

  • What is the directory that contains the init directories ?

    What is the directory that contains the init directories (rc0.d/ to
    rc6.d/)? 
    I want to install a copy of vmware5

    I think you've missed the point. Arch uses BSD-style init - /etc/rc.d. If vmware, or any other app, has an init script, it should be installed in /etc/rc.d, and if you want the app to start/stop on system boot/halt, the daemon name should be added to rc.conf DAEMONS. Creating rcX.d directories is pointless, because the Arch init process won't do anything with them.

  • I just purchased creative cloud. What is the first step I should be taking?

    I just purchased creative cloud. What is the first step I should be taking?
    I'm unable to download the applications and I'm not sure why. I thought it had something to do with me having the trial prior so I went ahead and deleted it. And I still cannot download the applications. Am I missing a specific step in all of this? I was under the assumption that when I purchased creative cloud, it would be some sort of prompt to install the program (the way adobe normally works) then I would be able to install the applications separately.

    Hi Poe7,
    Welcome to the Community & thanks for being the Creative cloud member!
    The first thing is to download Creative cloud desktop app which will help you to download all the apps available, go to https://creative.adobe.com/products/creative-cloud and download it.
    Once downloaded, launch it and select any product to start downloading/installing within the app.
    Thanks!
    Ankit

  • What are the objects that goes inactive after Transportation

    Hi,
    Usually,What are the objects that goes inactive after Transportation?
    If you have any  links for tranportation ,please send.?
    Regards.,
    Naresh.

    HI,
    the main reason for most of the transports to fail is:
    1)Transporting each and every object in the same transport request.
    Ideally,
    u2022The Infobjects should be transported first in a separate request.
    u2022Then the Data source and the Info providers (Cube, ODS, Data source and Multiproviders) together in a separate request.
    u2022At the end the transformations and the DTPu2019s in an another separate request.
    If the above mention sequence is followed while transporting the transport failures can be avoided.
    2)Also when a change is made to an ODS (I object added or deleted) it should again be transported along with the transformation but in separate request.
    I.e. the ODS 1st and the transformation.
    Hope this helps.
    regards,
    mahesh.

  • What's the variable gpuAccelerate in stage object for?

    Hi!
    What's the variable gpuAccelerate in stage object for?
    It's per default false.
    I've tried to find an answer to this but I couldn't get one from tech docs.
    It also doesn't seem to change paints (looking at one of my animations in Canary's Inspector) if true.
    Thanks,
    Volker

    Hi Darrel, hi Elaine!
    @Darrel: I'm aware of the hardware (GPU) acceleration options in different browsers/systems. I'm just wondering _what_ the boolean in the script output of Edge actually does.
    @Elaine: But _when_ would it switch on GPU in the animations and _where_ (which browsers/platforms)? There's no documentation I've found so far about it and the var is included in every animation with default 'false'.
    And what are the possible pitfalls?
    After beautifying edge-1.5.0.min.js it seems that it just enables the translateZ trick for (some) Webkit based browsers.
    if (this.gpuAccelerate && f[0].style && (typeof n === "undefined" || n === "" || n === "none")) f[0].style.webkitTransform = "translateZ(0)";
    But Edge does anyways already use 3D transitions in its animations?
    Thanks,
    Volker
    Message was edited by: Volker_E

  • What does the "41" that is prepended to the front of FP serial numbers?

    I am developing an application that will use the FP controller's serail number as part of a license algorithm.
    What does the "41" that is prepended signify?
    When will this value be changing?
    Any suggestions on how to plan for this value changing in the future without my knowledge and thereby shooting my code in the foot?
    I realize I can just ignore these two characters but that will only work if this field will never be more than two characters.
    So,
    What does it mean and how should I handle it?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

    Ben,
    Currently, the upper byte of the 4 byte serial number is "41" for FP-1600 and FP-20xx controllers and "42" for FP-1601 controllers. This value may change in the future. I can not provide any information on when/how it may change. However, it is extremely unlikely that the serial number will change to be more than the 4 bytes (8 hex characters).
    Regards,
    Aaron

Maybe you are looking for

  • How do you copy a Symbol to other fla without importing it?

    If I try to copy or move a symbol from one fla to another, it automatically gets imported, i.e. in the new fla the symbol has in its properties a source pointer, to where it was taken from. How can i copy a symbol for real, or "clone" it, into anothe

  • Select the progress of an another sql statement

    What I want to do is to monitor the progress of a sql statement which takes a long time. How many percent of the statement is already done. I know there is the possibility to do this with a query. But I can' t remember how to do this exactly. Can som

  • How do I recover a corrupt PSD file?

    My last save of a 1.5GB PSD file went without a hitch. Routine save, as I always do before closing Photoshop (using CTRL-S). The save was not interrupted in any way, nor did it behave differently than it did the previous 100 times I saved this partic

  • Mac Mail will not open after OS X Mavericks 10.9.3 Update

    Can anyone please help me with this issue? Thank you - Error message states, "Mail cannot be opened because of a problem. Check with the developer to make sure Mail works with this version of OSX. You may need to reinstall the application. Be sure to

  • Does mail have a way to verify if someone receives an email and opens it

    Question: does Mail have a way to verify if someone receives an email and/or opens it? Burt Brown ,StCharles Illinois