Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. camcim

    Flash/XML Image Viwer question

    Hello all, I'm currently working on a modified version of Macromedias Image Viewer. With the added features from tupps my movie now has auto play, stop, go to end slide (swf's) etc. At the moment i have the following code: <?xml version=&quot;1.0&quot;?> <Slides> <slideNode...
  2. camcim

    Passing a value with reload()

    Thanks for the reply.... I want to refresh the one text field to display the newly updated data that was inserted into the database (via the form, not the location form but one that was in a popup window) This popup window has a form which inserts data into a mySQL database. This same popup...
  3. camcim

    Passing a value with reload()

    Hi all, If i have the following: window.opener.location.reload(); can i pass a value along with the reload()? The reason for wanting this is because i am wanting to refresh only one text field from a form (the location page). Any ideas or suggestions? Cheers, camcim
  4. camcim

    Upload/delete file and email problem

    Hi all, I'm currently fiddling around with a file upload script (which also emails me the file). It appears to be neally working except i am unsure as to what to name the $fileatt_type variable. At the moment it is set to &quot;csv&quot; but i don't think this is correct. I say this be it upload...
  5. camcim

    Getting foreach() to display results once

    Hi all, I've been playing with this bit of code but can't seem to stop it from inserting the company_id twice. The company_id value is a unique number corresponding to the email (checkbox_email) Here is part of the code: if($email){ function mkpasswd($nochars=8) { mt_srand ((double)...
  6. camcim

    Make script more concise

    Hi all, Can anyone tell me how to make the following script more concise? There must be a better way than what i have so far. if($update_cat){ echo &quot;$total<br>&quot;; if($category_1){ $update_1 =&quot;UPDATE company_categories SET category_id='$category_1' WHERE comp_cat_id =...
  7. camcim

    Creating an array from DB results

    Hi all, If i have the following: $sql = &quot;SELECT * FROM company_categories WHERE company_id='$id'&quot;; $result = mysql_query($sql); while($row = mysql_fetch_array($result)){ $comp_cat_id = $row[&quot;comp_cat_id&quot;]; $company_id = $row[&quot;company_id&quot;]...
  8. camcim

    Looping too many times

    Hi all, I can't seem to get this loop working properly. Here is the script: <? $sql = &quot;SELECT * FROM company_categories WHERE company_id='$id'&quot;; $result = mysql_query($sql); $total = mysql_num_rows($result); while($row = mysql_fetch_array($result)){ $comp_cat_id =...
  9. camcim

    LAST_INSERT_ID() into variable

    Hi all, If i am using the following query: $sql_query =&quot;INSERT INTO movie_genre (movie_id, genre_id) VALUES (LAST_INSERT_ID(),'$genre_id')&quot;; $result = mysql_query($sql_query); how can i make the LAST_INSERT_ID() a variable? (inorder to use it later) Cheers, camcim
  10. camcim

    Writing a function

    Hi all, Is this the proper coding for a function? If so, how do i call it later on in my script? If it is not, am i able to write such a function this way? function find_title(){ $result = mysql_query(&quot;SELECT * FROM help WHERE help_id = '$cat_id'&quot;,$db); while ($row =...
  11. camcim

    Hi all, What would be the best way

    Let's assume that i do know the value of $movie_id. Eg: $movie_id = 3
  12. camcim

    Hi all, What would be the best way

    Hi all, What would be the best way to write the following query? I have a table called movie_rating which contains two fields called movie_id and movie_rating. If there is no row associated with the movie_id field then i want it to echo that there is no row containing the movie_id value and if...
  13. camcim

    Opening a popup window only if a condition is met

    Thanks guys, that should get the ball rolling. Cheers, camcim
  14. camcim

    Opening a popup window only if a condition is met

    Thanks for the reply Richard. I'll try and clarify the situation. I have a page called genre.php that will contain the <a href=&quot;#&quot; onClick=&quot;navigate()&quot;>Rate</a> The genre.php page is a visable page to all users. This contains a list of different movies. However, in order to...
  15. camcim

    Opening a popup window only if a condition is met

    Hi all, Can anyone tell me of a way to complete this process? I currently have a page called genre.php On this page i have a link that opens a javascript popup window called member_rating.php (this page has a session_start() associated with it so that only members can rate topics). If the user...
  16. camcim

    Redirecting header() if codition is met

    Hi all, If i open a javascript pop up window from a page called genre.php: <a href=&quot;#&quot; onClick=&quot;MM_openBrWindow('member_rating.php?movie_id=<? echo $movie_id ?>','rating','width=300,height=400')&quot;>Rate this</A> how can i get the browser to go back to the genre.php page if...
  17. camcim

    mod_rewrite 403 error

    Hi All I am trying to get to grips with Apache's mod rewrite. I am having trouble getting the most basic of rewrites to work. I have created two pages (1.htm and 2.htm) with unique content on my local server. I have the following in my .htaccess RewriteEngine on RewriteBase /test/...
  18. camcim

    Populating text fields upon button click

    Hello, I have the following script: <html> <body> <form name=&quot;Form1&quot;> <table> <tr> <td width=&quot;21%&quot; nowrap><b>Property/Investment Name:</b> <input type=&quot;text&quot; size=77 name=&quot;pos1&quot...
  19. camcim

    Newbie Question

    Hi Guys, Why can't i do a simple addition. Basically I'm trying to get values from two input boxes and add them together and place that result into another input box. Multiplication and subtraction seem to work well enough, why not addition? The code is: <html> <head> <SCRIPT...
  20. camcim

    onClick - multiple functions

    Hi guys, Can anyone tell me how to place two fuctions on one onClick event. They both work fine seperately, but not together. The code is below: (note - the code for the second function is beneath the </HTML> tag) <HTML> <HEAD> <SCRIPT language=JavaScript> function UseIt() { var qty =...

Part and Inventory Search

Back
Top