fobos 19 Posting Whiz in Training

have you tried floating the divs, or just put them in a table

fobos 19 Posting Whiz in Training

again, why are you using the connection in your update statement!! try changing each form input to pageid1, pageid2, pageid3 and soforth for the rest

fobos 19 Posting Whiz in Training

use ajax. Click Here

fobos 19 Posting Whiz in Training

the connection does not need to go into your update statement, its supposed to go before it.

fobos 19 Posting Whiz in Training

Also, why are you referencing two jquery links? you have 1.3.1 and 1.4.4

fobos 19 Posting Whiz in Training

First off i see that you are using double quotes on the id after $_GET. The only time you use get, is when you are passing variable through a URL, in this case you are not.

mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error());

Needs to be

mysql_query("UPDATE table SET status = 1 WHERE id = '". $_POST['repid']."',$c2) or die(mysql_error());

And just like bollabr said, change your forms from method="get" to method="post" action="<?php $_SERVER['PHP_SELF'] ?>". Also, what is $c2 for because you are not referencing to a field to update?

fobos 19 Posting Whiz in Training

Mark solved please!

Sahil89 commented: :D ya its really bad thing, newbies should learn it. +2
fobos 19 Posting Whiz in Training

Thats good

fobos 19 Posting Whiz in Training

if you are sending email and want to recieve them in outlook, you need to have the smpt information for each one.
Say yahoo, you need to pay to have an SMTP for outlook.

fobos 19 Posting Whiz in Training

Now, when you log in as Admin, do you "Sucessfuly" log out so the session is destroyed? The only thing i can think of is the session not being destroyed and the member gets the session because its still active. Or when you log in as Member, what is the "Particular Page" that you go to, and does members session work on all other pages? Or do you log in as Member and you click on a nother page after logging in and you get admin role?

Please post your code of what you have for the php so we can look at it. Right now all we can do is just spitwad at the idae

fobos 19 Posting Whiz in Training

you could just use PHP redirect.

<?php
session_start();
$_SESSION["visiting"] = $_GET["userid"];
echo $_SESSION["visiting"." ".$_GET["userid"];
header("Refresh: 10; URL=http://localhost/fi.php"); //Refreshes after 10 seconds
?>

make sure this goes above <html> or you will get errors.

fobos 19 Posting Whiz in Training

well i guess you going to have to set a fixed width on the divs so the left one doesnt push out the right when being shown.

fobos 19 Posting Whiz in Training

if you have smtp, then configure your php.ini with it. Other than that, here is a good link to learn from click

fobos 19 Posting Whiz in Training

So your question is?

fobos 19 Posting Whiz in Training

Did you try taking out the return in your onClick? onClick="dynaBlock()"

fobos 19 Posting Whiz in Training

You need to make your parent div have a position: relative and #answer 1 & 2 need to have position:absolute; z-index: 100

# .cont a { text-decoration:none; font-family: Calibri, Arial, sans-serif; font-size: 14px; color:#000; position:relative}
#answer1 { border: 1px solid black; color: grey; width: 300px; display:none; margin-left: 115px; margin-top: -15px; padding: 10px; font-size: 12px; font-family: Calibri, Arial, sans-serif; height: 135px; position:absolute; z-index: 150; }
#answer2 { border: 1px solid black; color: grey; width: 300px; display:none; margin-left: 115px; margin-top: -15px; padding: 10px; font-size: 12px; font-family: Calibri, Arial, sans-serif; height: 135px; position:absolute; z-index: 150; }
Albert Pinto commented: Thanx.... +0
fobos 19 Posting Whiz in Training

When using the insert statement, there is no need to include the "ID" field. Since your database has auto encriment, it will add it for you automatically. So take out the "ID" in the INSERT statement and '' in the VALUES.

fobos 19 Posting Whiz in Training

Mark solved please

fobos 19 Posting Whiz in Training

$search_id = $_POST['searchID'];
$searchById = "SELECT * FROM tc_tool.forms WHERE doc_id LIKE "%$search_id%"';

But i think the problem is with your table name because database and table names cannot contain “/”, “\”, “.”, or characters that are not permitted in file names.
So..

tc_tool**.forms**

is innapropriate, but

tc_tool

is ok to use.

fobos 19 Posting Whiz in Training

Make sure the css' are not conflicting. There has been many times where i have had that happen to me. Did you build the floating menu on your computer?

fobos 19 Posting Whiz in Training

Well let me look into my crystal ball too see your coding problem. If you have a problem, please post your code that you are having problems with. From this point i can tell you is to change method from get to post

fobos 19 Posting Whiz in Training

yeah i was having the same problem, what version of IE are you using? What i did, was just switch to firefox and everything works fine.

fobos 19 Posting Whiz in Training

mark as solved

fobos 19 Posting Whiz in Training

what was the problem? Please put your computers info, problem you found, and solution you are working; incase someone else might have the same problem

fobos 19 Posting Whiz in Training

where is the dump file? i dont see the zip?

fobos 19 Posting Whiz in Training

We will put foward our suggestion when you put foward your code. Thanks

fobos 19 Posting Whiz in Training

javascript or jQuery is good

fobos 19 Posting Whiz in Training

there is MySQL for everything that you need to know. Also if your coding in PHP, theres W3Schools

fobos 19 Posting Whiz in Training

anand01, you need to do some research before you come asking for something. You have to give (the problem with your code) to recieve (the time and help that people give you). So post your code on what you are haveing problems with.

fobos 19 Posting Whiz in Training

i would suggest running my script as a test page seperately from your website, so you can understand the basics of AJAX, that way you can impliment your code into your php page. Here is a link where you can read on how AJAX works
W3SCHOOLS

fobos 19 Posting Whiz in Training

It would be easier to achieve this using AJAX.

<script type="text/javascript">
function showReg(str) {
    var xmlhttp;    
    if (str=="") {
        document.getElementById("regresult").innerHTML="";
        return;
    }
    if (window.XMLHttpRequest) {
        xmlhttp=new XMLHttpRequest();
    } else {
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4 && xmlhttp.status==200) {
            document.getElementById("regresult").innerHTML=xmlhttp.responseText;
        }
    }
    xmlhttp.open("GET","getregistrationnum.php?q="+str,true);
    xmlhttp.send();
}
</script>

//HTML

<input type="text" name="admission_no" id="textfield" onkeyup="showReg(this.value)" />
<div id="regresult"></div>

//PHP getregistrationnum.php

<?php
$reg = $_GET['q'];
echo $reg;
?>

this is to get you started. just use the if($num_rows >= 1) { do something }

fobos 19 Posting Whiz in Training

Try FireQuery. Its an extension for jQuery developers.

fobos 19 Posting Whiz in Training

Man my javascript never posted.

function toggle() {
    if(document.getElementById("check1").checked){
        document.getElementById("input1").disabled = true;
        document.getElementById("input2").disabled = true;
    } else {
        document.getElementById("input1").disabled = false;
        document.getElementById("input2").disabled = false;
    }
}
fobos 19 Posting Whiz in Training

Here is something that i came up with, but its untested and its just to get you going. I would suggest using jQuery because the code would be much more simple with this problem that you are having.

<script type="text/javascript">
function toggle(){
    if (document.getElementById("input1").disabled == false){
        document.getElementById("input1").disabled = true;
        document.getElementById("input2").disabled = true;
        return
    }
    if (document.getElementById("input1").disabled == true){
        document.getElementById("input1").disabled = false;
        document.getElementById("input2").disabled = false;
        return
    }

} 
</script>

Then just call it using the jquery onload function.

HTML

<input type="checkbox" id="check1" onclick="toggle()" />
<input type="text" id="input1">
<input type="text" id="input2">

hope this helps

fobos 19 Posting Whiz in Training
fobos 19 Posting Whiz in Training

are you using iframes? do you want something like a loader?

fobos 19 Posting Whiz in Training

why dont you use an onLoad function and create a popup window? Can you post your code on what you have so far?

fobos 19 Posting Whiz in Training

use XAMPP, its an all in one package

fobos 19 Posting Whiz in Training

If you want help, you have to post your code and state the problem within it. Asking will get you now where.

fobos 19 Posting Whiz in Training

your admin_edit.php is confusing. How can you edit the values, if you dont have them posted in a form values? You just have, click edit, then variables to straight to the database with no option of editing? Second you have

if(isset($_POST['save'])) {

again, no in a form, so how can you post using the save button?

fobos 19 Posting Whiz in Training

show me your code

fobos 19 Posting Whiz in Training

Well if you can succesfully upload the image, just use the session username for the value.

<?php
$username = $_SESSION['username']; 
?>
fobos 19 Posting Whiz in Training

Why dont you just put an upload limit, that way you dont have to worry about a file being too big.

<?php
if ($_FILES["file"]["size"] > 20000) { // if file is over 20 kb, throw error
  echo "Error: " . $_FILES["file"]["error"] . "<br />";
} else {
  //Code
}
?>
fobos 19 Posting Whiz in Training

have you tried taking out the NOT operator ! and switch the email address' in the if statement

fobos 19 Posting Whiz in Training

Hello all,
i was wondering if you could add a forum for sharepoint? if there is already one, can you please point me in the right direction?

R/S,
fobos

fobos 19 Posting Whiz in Training

Well you just answered your problem. The 1GB machine is slower so it will take longer to process the information.

fobos 19 Posting Whiz in Training
fobos 19 Posting Whiz in Training

Maybe something like this. You are using arrays, so you have to define them in your function.

function motor(){
    num = document.getElementyById("input").value;
    var qnt = new Array();
    qnt[0] = num;
    var n = qnt.length;
    var show = new Array();
    for(i=0;i<n;i++){
        show[i] = getElementTagName("label");
        show[i].innerHTML = qnt[i];
    }
}
<a onclick="motor()" id="input">

UNTESTED!!

fobos 19 Posting Whiz in Training

did you try putting a 0 in the label id?

label id="text_cost[0]">0.00</label>
fobos 19 Posting Whiz in Training

you need to fix your input box code

function loadUrl() {
url = document.getElementById("url").value;
document.getElementById("showUrl").src = url;
}
<input type="text" id="url" ondragend="(loadUrl())">