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="1.0"?>
<Slides>
<slideNode...
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
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 "csv" but i don't think this is correct.
I say this be it upload...
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)...
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 "$total<br>";
if($category_1){
$update_1 ="UPDATE company_categories SET category_id='$category_1' WHERE comp_cat_id =...
Hi all,
If i have the following:
$sql = "SELECT * FROM company_categories WHERE company_id='$id'";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)){
$comp_cat_id = $row["comp_cat_id"];
$company_id = $row["company_id"]...
Hi all,
I can't seem to get this loop working properly.
Here is the script:
<?
$sql = "SELECT * FROM company_categories WHERE company_id='$id'";
$result = mysql_query($sql);
$total = mysql_num_rows($result);
while($row = mysql_fetch_array($result)){
$comp_cat_id =...
Hi all,
If i am using the following query:
$sql_query ="INSERT INTO movie_genre (movie_id, genre_id) VALUES (LAST_INSERT_ID(),'$genre_id')";
$result = mysql_query($sql_query);
how can i make the LAST_INSERT_ID() a variable? (inorder to use it later)
Cheers,
camcim
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("SELECT * FROM help WHERE help_id = '$cat_id'",$db);
while ($row =...
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...
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...
Hi all,
If i open a javascript pop up window from a page called genre.php:
<a href="#" onClick="MM_openBrWindow('member_rating.php?movie_id=<? echo $movie_id ?>','rating','width=300,height=400')">Rate this</A>
how can i get the browser to go back to the genre.php page if...
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/...
Hello,
I have the following script:
<html>
<body>
<form name="Form1">
<table>
<tr>
<td width="21%" nowrap><b>Property/Investment Name:</b>
<input type="text" size=77 name="pos1"...
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...
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 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.