have you tried floating the divs, or just put them in a table
Sahil89 commented: :D ya its really bad thing, newbies should learn it. +2
Albert Pinto commented: Thanx.... +0
fobos 19 Posting Whiz in Training
have you tried floating the divs, or just put them in a table
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
the connection does not need to go into your update statement, its supposed to go before it.
Also, why are you referencing two jquery links? you have 1.3.1 and 1.4.4
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?
Mark solved please!
Thats good
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.
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
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.
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.
So your question is?
Did you try taking out the return in your onClick? onClick="dynaBlock()"
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; }
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.
$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.
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?
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
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.
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
where is the dump file? i dont see the zip?
We will put foward our suggestion when you put foward your code. Thanks
javascript or jQuery is good
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.
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 }
Try FireQuery. Its an extension for jQuery developers.
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;
}
}
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
are you using iframes? do you want something like a loader?
why dont you use an onLoad function and create a popup window? Can you post your code on what you have so far?
use XAMPP, its an all in one package
If you want help, you have to post your code and state the problem within it. Asking will get you now where.
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?
show me your code
Well if you can succesfully upload the image, just use the session username for the value.
<?php
$username = $_SESSION['username'];
?>
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
}
?>
have you tried taking out the NOT operator ! and switch the email address' in the if statement
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
Well you just answered your problem. The 1GB machine is slower so it will take longer to process the information.
Here this will help. Its a good place for tutorials.
http://cookbooks.adobe.com/post_Display_an_image_stored_in_a_database__PHP_-16637.html
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!!
did you try putting a 0 in the label id?
label id="text_cost[0]">0.00</label>
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())">