Jump From One Part Of The Script To Another
Is it possible to jump from one part of the script to another part? Meaning the script would jump from line 7 to line 20, ignoring lines 8-19.
View Complete Forum Thread with Replies
Related Forum Messages:
Using Jump Menu
I am using a jump menu to select multiple drop down boxes in a form which are related to the choice you make in the first drop down box. The problem is that the page reloads and everything before this tag is cleared. I want to be able to repost the data. I know that I need to use sessions in my code but I dont know exactly how to use them for this case. Code:
View Replies !
Jump Frame?
I want to make a jump frame (i think is the name), when people click in an image or video, appears a frame in the top (or left), but i want to put an id for each video and image. There are a simple and better way, but i don´t know how to do, where we can put only the link and it redirects with the frame in php (out.php) like this one (this is an adult link, not spam, only is an example what i want): Code:
View Replies !
JUMP Out Of The Script
"mysql_connect establishes a connection for the duration of the script that access the db. Once the script has finished executing it closes the connection. The only time you need to close the connection manually is if you jump out of the script for any reason. " http://www.webmasterworld.com/forum88/903.htm What does he mean by jump out? I used header redirection, is this "jump out", but after header redirection, I always added exit;, does it mean that I need to close the connection.
View Replies !
Unable To Jump To Row
I have a tariff which is atm 44 rows with 15 columns of numbers. Now i am trying to pull as individual price from the tariff based on user input: Code:
View Replies !
Unable To Jump Row 0
I am getting the following error: Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 2 in /home/content/i/n/n/**/html/tracker/connect.php on line 35 Here is my coding from line 34 on down. Code:
View Replies !
Jump Menu
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)"> <option value="www.site1.com">google</option> <option value="www.site2.com">metu</option> <option value="www.site3.com">mynet</option> <option value="www.site4.com">asa</option> </select> above code ; i want to get the selected value and post as named $url into a php code. How can i call the selected value?
View Replies !
Site Jump During Submission
1)I'am collecting form data on my server from a HTML form. The next steps Iam trying to figure out is: 2) I want to then go to another site (payment site) 3) then back to my site. 4) extract original data gathered from step 1 I know the simple method would be to go to pay site first then to my site. However I would like my form first! I also do not want to write the data into mysql in step 1. Not until step 4.
View Replies !
Header('Location:') Jump Ignored?
I'm seeing a problem that has me flummoxed. The only thing I can think of is that I'm violating some rule I don't know about. I have some code that does some processing and then does a header('Location: ...) jump to page A on success or falls through to the jump to page B. This is the code: if ( mysql_query( 'LOCK TABLES tableX WRITE', $link ) ) { mysql_query( $q, $link ) ; // store the record $ID = mysql_insert_id( $link ) ; // save the new id if ( mysql_affected_rows($link) == 1 ) { unlock_tables() ; $_SESSION['ErrMsg'] = 'New ID is ' . $ID ; header( 'Location: PageA.php' ) ; $_SESSION['ErrMsg'] .= ' Error: ignored jump' ; } else // the store failed { error handling } } // second chance (for debugging) to do the right thing header( 'Location: PageA.php' ) ; $_SESSION['ErrMsg'] .= ' and it ignored it AGAIN!' ; // and we shouldn't get here at all -- but we do! header( 'Location: PageB.php ) ; Unfortunately, as I know from the telltales I stuff into session, the store works but the interpreter ignores both header calls that would jump to A and finally jumps to B instead. Unless I'm more tired than I'm aware, or more ignorant, this doesn't make sense.
View Replies !
Jump To Section Of Same Page
PHP Group, How can I in PHP, based on a result, move the cursor to a certain location on the page? I want the same result as Anchor tags in HTML. I want to go to a certain section of the same page based on a return result in PHP. What this is for is an order forms page - when a user fills out a section incorrectly, I want the page to display at that location in the form after the user presses a submit button.
View Replies !
Jump Out Of A Multidimensional Array?
trying to get out of an array dynamically. $transport = array('foot', 'bike', 'car', array('test1', 'test2')); i'm in test2( $transport[3][1] ), how do I go into $transport[3]? Is there a function capable of doing this?
View Replies !
Jump Menu Selected Value
I have a set of 2 menus where the values of the 2nd are dependent on the value selected in the first. Yes, I will (eventually) convert this to a javascript process, but for now I am content reloading the page. I have created a jumpmenu that reloads the page with the state passed in the url (ie. community.php?state=NY). This determines the values displayed in a second (dependent) menu which then lists the counties available for that state. Code:
View Replies !
Jump To Html Page
I am a php newbe and I am trying to figure out how to simply display an existing html page from my php script. Here is the code I use but I get the normal "output started" errors. $sql = "INSERT INTO author SET firstname='$name1', lastname='$name2', workphone='$workphone', email='$email', loginid='$loginid', password='$password'"; if (@mysql_query($sql)) { header("Location: formSubmit.htm"); <--------HERE
View Replies !
Dynamic Jump Menu
I'm looking to create a dynamic jump menu/list menu that will enable me to navigate to a particular record by selecting a value from the list, however the list is dynamically generated from the recordset. Code:
View Replies !
Header - Jump Menu Does Nothing In IE
I have a php header and php footer that are being called into my content pages. In the php header, I have a jump to menu system. The jump to menu works great in Firefox, however, the jump menu does nothing in IE. Have any of you experienced problems with jump to menues in php headers and whatnot?
View Replies !
PHP/MySql Jump Script
I have also read in a affiliate forum (quote below)that putting &afsrc=1 at the end of a link will help click through, how might this also be implemented? "Recently, I put the &afsrc=1 on all my links across my largest sites. Damned if sales have not increased by 10-20% since then. (it has been about 2 weeks at about 13000 clicks a day)" <?php $link = mysql_connect ("localhost", "user", "pass"); mysql_select_db ("datebase"); $result = mysql_query ("SELECT link FROM id WHERE number=$locn"); $row = mysql_fetch_array($result); header("Location: " . $row["link"]); mysql_close ($link); ?>
View Replies !
Jump Script And Wordpress
I created a very simple jump script, and then edited a page on my blog so the links use the jump script links. I followed a template, and triple checked all the code, so I am sure that part is right. My question is, where do I put the actual .php file so the links in the jump script actually pick up the code and go where they are supposed to go? I tried a variety of folders (public_html, themes folder, actual theme folder, etc.), but none made the script work. unless I am (quite possibly) missing something else?
View Replies !
Pagination :: Unable To Jump To Row 0
I am running a script to find the "Previous" and "Next" records, the problem is when I get to record 1 I get the error below, same with when I reach the last record in the db. PHP Code: Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 18 Here is the script running it, do I need to add to the query? or how can I use IF/ELSE?PHP Code: <?php $id = $_GET['id']; // Retrieve your record according to id // Display Record // Links to Previous Records $query = "SELECT id FROM jokes WHERE category = '$category' AND id < $id ORDER BY id DESC LIMIT 1" ; // For Previous $result = mysql_query($query) ; ..........
View Replies !
Jump To Letter In Paginated Results
I'm on a project that has paginated results coming from MySQL, say ten records on a page. Let's say that the results contain a song title. What would be the best method for me to write a script that could take a user to whichever page has the first song title starting with B? Basically, the client wants a list of letters at the bottom that take the user to the page that records beginning with the selected letter begin on. Advice? Am I going to have to loop through the results and count the positions of the letters, and then calculate which page that position would be on?
View Replies !
Jump Menu Call Page
Is it possible to use a jump menu to call a page within a page? To be clearer. I can place an " include ('whatever.php'); " within my page which is fine. But i would like this include to be a variable set by the options within a jump menu. So when I select from the menu the include will swap from its default to the newly selected one. Am I making sense?
View Replies !
How To Create A Jump-menu Using Dreamweaver?
I have 50 names and links I need to show up alphabetically in a jump-menu. I'm pretty green with php and databases. Is there a quick and easy way to accomplish this? I know how to create a jump-menu using Dreamweaver, but how would I set it to read the text file.
View Replies !
Script That Is A Bit Like A Jump Menu But Without The Pull Down List.
I am looking for a script that is a bit like a jump menu but without the pull down list. I want users to be able to enter a post code (4 digits) and then be redirected to a web page based on that post code as each web page is different per code. the jump menu provided in dreamweaver is almost there but as there are thousands of codes it is impractical to have them drop down.
View Replies !
How I Can Make A List That Acts Like A Html Jump Menu?
how I can make a list that acts like a html jump menu (for a regular list I have to use a "Go" button in order to achieve the desired behaviour and jump menus I cannot use because they work only with links to other pages). For example,I want such a list filled with questions from my db and when I select one I want to see its possible answers; the page stays the same, only its data differs based on the selection. Or you can have a look at such a jump menu on this website, the one with options for geting to various sections of the forum.
View Replies !
Warning: Mysql_result() [function.mysql-result]: Unable To Jump To Row 0
i want to grab the value of a sql entry. but the thing is, sometimes this value is <NULL>. i thought, no biggy, i'll just have an if statement: if (is_numeric(mysql_result($query, 0))) { //do something } else { //do something else using mysql_result($category_id_query, 0); } however, this doe not work. i get this error: Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 3 is there a way to check to see if mysql_result() is <NULL> without throwing an error.
View Replies !
Getting Part Of A String
What I am attempting is to retrive part of a string, the string comes from TEXT field in mysql db using mysql_fetch_row. It is an article, in the article there is flags like for example [image]img=34,align=left[/image]. Now I would like to retrive the [image]img=%[/image] part to be able to use the wildcarded number for a database query to get the image link and image comment then giving it all a proper html formatting. After that, I replace [image]img=%[/image] in the original string with the newly formatted html.
View Replies !
Extracting Part Of Specified URL
I have seen some tutorials on how to retrieve a section of the current URL with php, but what I am trying to do is a little different. I need to be able to specify any myspace URL in a form and have the output be a section of that URL. For example: I input the following URL into a form field: http://www.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=257367900 when the submit button is pressed the output should show: 257367900 I need it to be so that I can input any myspace url as such and the output will be everything after the "&friendid="
View Replies !
Get The Last Part Of An Array
I am trying to preselect all the checkboxes on an edit form if they are part of the record in the database I put this to get an array of categories that pertain to that record being edited. Code:
View Replies !
Selecting Part Of A Value
Learning php and mysql, and frankly it's making my head spin... Anyway, how would you get a result and output only part of it? Like get "2004" and only output "04". It's probably a stupid question, but I can't seem to find the correct syntax in any of the manuals. Specifically, I want to output the standard mysql "0000-00-00" date format as "mm/dd/yy". I know there are scripts out there for dates, but I don't want to do anything fancy with it, just switch some numbers around and output part of a result (plus I'm trying to learn this stuff, and this seems like a question that will provide answers for other things as well). An example script would help me alot. From what I know so far, I think the answer would be to select the field, explode the string, then assign and output the variables with "/" in between.
View Replies !
Get Part Of A String
if I could use php and get certain parts of a string like $string: = "<table><tr><td>Name</td><td>Desithugg</td></tr></table>"; Would it be possiable to use something like preg match to get only that part Desithugg into another string like $name. So I want to get the part between <td>Name</td><td> and </td></tr>. If it's possiable can anyone give me an example. I tried looking at the manual but didn't quite get it.
View Replies !
Get Part Of A Integer
just like you have substr() to get part of a string, is there a way to get part of an integer? $myVar = 20060103142005; // and want $myVar = 20060103; what's the best way to do it? $myVar = 20060103142005; $myVar = substr ($myVar, 0, 8); echo $myVar; doesn't work. Trying to convert the number to a string doesn't work either: Code:
View Replies !
Part Of A Script
Apparently there is a problem with part of a script, this is the problem part: Code: $member['reputation'] = $this->html->reputation_level( $member['id'], rtrim($member['rep']) );
View Replies !
Update Part Of A Row
if it's possible to update part of a row in phpmyadmin? I know how to do it with a PHP script but phpmyadmin would be better in this case. Example: The value of the row is BBB001, I want it to be ABB001. It's only the first character of the row I want to update.
View Replies !
Last Part Of IP Address
For example if IP address is 64.12.34.56, I want to display it like 64.12.34.** Here is my code: $this_ip="64.12.34.56"; $this_sub_ip=substr($this_ip, 0, strrpos($this_ip, ".")+1); $this_sub_ip_replace_length=strlen($this_ip)-strlen($this_sub_ip); for ($index=0; $index<$this_sub_ip_replace_length; $index++) { $this_sub_ip=$this_sub_ip."*"; } echo ($this_sub_id);
View Replies !
Get PART Of A File (via ID)
So I want to get part of a file, specifically everything WITHIN the div id="left". I have this code, but it gets the whole file. I want to use this to edit a remote file test.html). Code:
View Replies !
Using Only Part Of A String
Pulling data from old DB to new DB. One field is text for an article, I need to pull it and only get part of it for a new summary field. How can I get just part, say 1 or 2 paragraphs out of the string?
View Replies !
Part Of WEBPAGE
This is my first time in the forum and right on the start i need help of you guys. I am a new developer and I am trying to build a page in PHP/Html. what I want to do is refresh only a part of page. User fills in the form and comes toward the end of the form where he decides how many pictures to upload and the momment he selects number of files to be uploaded from a pop up menu the bottom part of page should get refreshed having that many number of file input fields as many were selected by the user.
View Replies !
Display Part
Im using $date('Y-m-d H:i:s') to grab date and store it in a database in datetime format, but on some occasions Id prefer to display just Y-m-d or Y-m-d, 2pm as apposed to the full date n time values. Is there any simple way to split the data in the row so I can just grab the first part of it like this.
View Replies !
Replacing Part Of A String
I am using the command ereg_replace() to replace " with ' . For fast web pages, I use Microsoft Frontpage and it has everything use ". I have to change them all to use ' . The code is writen and it works, sort of. It has some text displayed at the end I don't want. Here is the my code:
View Replies !
Replace Part Of Line
ok so i have a text file thats has a word then a definition i want to replace everytihing after the first word file.txt : Gadbee (n.) The gadfly. Gadder (n.) One who roves about idly, a rambling gossip. Gadding (a. & n.) Going about much, needlessly or without purpose. Gaddingly (adv.) In a roving, idle manner. ---- so for "Gadbee (n.) The gadfly." i want to keep Gadbee but replace the rest of the line with nothing ("") heres what i got but it doesnt work: Code: <?php $file = $_GET['l']; $fp = file($file); $num_lines = count ($fp); $n= $num_lines; $i=0; echo "<pre>"; while($i < $n){ $r= ereg_replace(" $"," ", $fp[$i]); //the line that need to be changed echo "$r"; $i++; } ?>
View Replies !
Caching A Part Of A Page?
I am working on a custom banner generator for some of our users. Its basically a flash banner that can take vars for colors etc, so users can integrate with their sites colour scheme. Its set up currently with the banner at the top as a preview, with e.g. .swf?color1=00000&color2=45efef in the object and embed tags. Below this is a script that is 3 nested for loops, that increment a var each and convert that to hexidecimal. The three hex refs are then concat'd together, and set as a CSS background to a transparent gif with an href around that calls the same page with the new colors in the url, which get passed back to the flash movie. (hope im making sense here :)) So theres about 500 or so (im incrementing the vars by two,otherwise its way sloooow) <a><img></a> that have to be generated on each page load. Im wondering how and if i can speed this up?
View Replies !
Getting Part Of Another HTML Page
I'd like some help with writing a script that grabs part of another HTML page. For example : I want to grab the content of a HTML page that contains the following strings : <!-- begin --> and <!-- end --> Then I want to get all the content (including these two tags) that is in between the two tags.
View Replies !
Refreshing Part Of A Page
Can some one help me if it is possible to refresh a part of a page, without reloading the whole page. Let's say, i want to add a small message box to my webpage. After writing a message, the user presses the send button and i want only this part of the page to refresh and give him a status message saying his message was successfully received.
View Replies !
How To Echo Only Part Of A Field?
I set up a news-type publishing system but I'm running into one problem. I need to echo part of the "body" of the news article for the front page of the site to act as a teaser. For instance, I just want to echo the first 255 characters. Is there a function that I can use to suck out just the first 255 characters of a field?
View Replies !
Mime Part Numbering
IMAP_FETCHBODY requires the "part number" to fetch. how the part numbers are derrived. for example, here is the formatted parts array from a message: Parts: array(2) { [0]=object(stdClass)(12) { ["type"]=int(0) ["encoding"]=int(0) ["ifsubtype"]=int(1) ["subtype"]=string(5) "PLAIN" ["ifdescription"]=int(0) ["ifid"]=int(0) ["lines"]=int(1) ["bytes"]=int(38) ["ifdisposition"]=int(0) ["ifdparameters"]=int(0) ["ifparameters"]=int(1) ["parameters"]=array(2) { [0]=object(stdClass)(2) { ["attribute"]=string(7) "CHARSET" ["value"]=string(10) "ISO-8859-1" } [1]=object(stdClass)(2) { ["attribute"]=string(6) "FORMAT" ["value"]=string(6) "flowed" } } } [1]=object(stdClass)(15) { ["type"]=int(2) ["encoding"]=int(0) ["ifsubtype"]=int(1) ["subtype"]=string(6) "RFC822" ["ifdescription"]=int(0) ["ifid"]=int(0) ["lines"]=int(34) ["bytes"]=int(1609) ["ifdisposition"]=int(1) ["disposition"]=string(6) "INLINE" ["ifdparameters"]=int(1) ["dparameters"]=array(1) { [0]=object(stdClass)(2) { ["attribute"]=string(8) "FILENAME" ["value"]=string(21) "TEST OF HTML MAIL.eml" } } ["ifparameters"]=int(1) ["parameters"]=array(1) { [0]=object(stdClass)(2) { ["attribute"]=string(4) "NAME" ["value"]=string(21) "TEST OF HTML MAIL.eml" } } ["parts"]=array(1) { [0]=object(stdClass)(12) { ["type"]=int(0) ["encoding"]=int(0) ["ifsubtype"]=int(1) ["subtype"]=string(5) "PLAIN" ["ifdescription"]=int(0) ["ifid"]=int(0) ["lines"]=int(10) ["bytes"]=int(251) ["ifdisposition"]=int(0) ["ifdparameters"]=int(0) ["ifparameters"]=int(1) ["parameters"]=array(2) { [0]== object(stdClass)(2) { ["attribute"]= string(7) "CHARSET" ["value"]= string(10) "ISO-8859-1" } [1]= object(stdClass)(2) { ["attribute"]= string(6) "FORMAT" ["value"]= string(6) "flowed" } } } } } } ["value"]=> string(6) "flowed" } } } } } }
View Replies !
|