vaultdweller123 32 Posting Pro

Hi! im currently annoyed by this situation where i am always logged out about every 15 or 20 minutes? this is pretty annoying as i am constructing my code and comments to reply on someone then suddenly when i hit submit it prompts me to log in, and my comments are lost even if i hit back. Btw this never happend before, before i can idle for many hours and still get back to this site still logged in, the only changes i made on my account is changing my password, could that be a reason to this? please answer

vaultdweller123 32 Posting Pro

1st wrap your dropdown <select> with a form and add a submit button

$dropdown = "<form action='get'><select name='Test'>";
while($row = mysql_fetch_assoc($result)) {
$dropdown .= "\r\n<option value='{$row['Test']}'>{$row['Test']}</option>";
}
$dropdown .= "\r\n</select><input type='submit' name='submit' value='submit' /></form>";

then update your second query

$query2 = "SELECT * FROM tests WHERE id='".$_GET['Test']."'";
$result2 = mysql_query($query2);
while($row2 = mysql_fetch_array($result2))
{
echo "<tr>";
echo "<td>" . $row2['Horse_Number'] . "</td>";
echo "<td>" . $row2['Horse_Name'] . "</td>";
echo "<td>" . $row2['Rider_Name'] . "</td>";
echo "<td>" . $row2['E_Total_Percent'] . "%</td>";
echo "<td>" . $row2['H_Total_Percent'] . "%</td>";
echo "<td>" . $row2['C_Total_Percent'] . "%</td>";
echo "<td>" . $row2['M_Total_Percent'] . "%</td>";
echo "<td>" . $row2['B_Total_Percent'] . "%</td>";
echo "<td>" . $row2['Total_Average'] . "%</td>";
echo "<td>" . $row2['Errors'] . "</td>";
 
echo "</tr>";
}
vaultdweller123 32 Posting Pro

your dropdown <select> is outside the form, move that inside the form

vaultdweller123 32 Posting Pro

for me http://www.w3schools.com/ is the best! specially for starter, provides basic and simple example that is easy to understand :)

vaultdweller123 32 Posting Pro

i can't understand your question ha ha, can you make it clear? :D

vaultdweller123 32 Posting Pro

earning master's degree in school doesn't help you, they only teach you a bunch of theories and basic stuff. if you want to be an excellent developer you gotta experience working on real projects like working on a company or freelance. there you will hone your skills

vaultdweller123 32 Posting Pro

basing on your error, then that means you haven't entered the required fields, i.e. firstname

vaultdweller123 32 Posting Pro

what count() did you use? php count or sql count? I assume you use the php count, so the reason why it displayed 1111111 is because you put the php count() inside the loop

vaultdweller123 32 Posting Pro

change this line

$w3 = mysql_query( "SELECT * FROM w3" ) or die("SELECT Error: ".mysql_error());

to

$w3db = mysql_query( "SELECT * FROM w3" ) or die("SELECT Error: ".mysql_error());
vaultdweller123 32 Posting Pro

lol nobody's gonna help you with that attitude

vaultdweller123 32 Posting Pro

or try changing your html encoding to utf8 without BOM

vaultdweller123 32 Posting Pro

move that ob_start(); to the 1st line before the doctypes

vaultdweller123 32 Posting Pro

i don't see something wrong with your code....what's the error?

vaultdweller123 32 Posting Pro

you can disable short tags, if you do not always use this, disabling it will cause no harm. but like myself, i always use php shortags so id rather echo the xml DTD rather than turning it off so decide on what suits you

vaultdweller123 32 Posting Pro

i think the xml DTD is conflicting with the php short tags, i think there are many solutions on this but try this quick fix

<?php echo '<?xml version="1.0" encoding="utf-8" ?>'; ?>
vaultdweller123 32 Posting Pro

okay so what you can do here is, add new field on the table seatdb to store the image path, then you can create a hyperlinks to each seats then pass an id variable, the link will redirect into a php page where you can do your work there like detail page. example

echo "<tr><td><a href='/detail_view.php?id=".$id."'><img src='".$your_image_path."' /></a></td></tr>";
vaultdweller123 32 Posting Pro

no problem, btw i already tested it, you can test it by running the code on firebug's javascript console

vaultdweller123 32 Posting Pro

echo 1st the $row[RegNo] to see the value, because it could be that the $row[RegNo] only contains the "five" text

vaultdweller123 32 Posting Pro
if(isset($_SESSION['web_user_id'])){
     links to downloadable pdf
}
vaultdweller123 32 Posting Pro

try this

$sql = "Select * from table_name where age = 10";
$result = mysql_query ($sql,$con) or die (mysql_error());
      $countrows= mysql_num_rows($result);
 

      while ($row= mysql_fetch_array($result))
      {
       $list[] = $row['firstname'].','.$row['lastname'];
 
      }
      
      
      
       $file = fopen("files/ExampleDAT.DAT","w");

	foreach ($list as $line)
	  {
	  fputcsv($file,split(',',$line));
	  }
	
	fclose($file);
vaultdweller123 32 Posting Pro

to be honest i don't know if im really helping you, so i suggest you should start designing your database and start coding then you can come back here with codes so we can further examine your code, because right now, i think were imagining things

vaultdweller123 32 Posting Pro

records? you mean information about that seats? then all you need to do is create a table for seats which will store the information about the seats, then query them to display on the seating page, maybe a small image and a link, then upon clicking each seats, you will redirect to it's detailed page displaying the full information, you can do this by passing the id of the selected seat

vaultdweller123 32 Posting Pro

it's possible, just design your database schema to accept pictures and link the seats and people tables via foreign key

vaultdweller123 32 Posting Pro

i think the error came from other part of code

vaultdweller123 32 Posting Pro

date("l jS \of F Y h:i:s A") = Maybe the quotation marks are causing the issue?
either change them into single quote ' or put the format in an string and put the string there instead.

I used to have this issue and removing the Date("") from the query most often solved it.
A tip mate; Learn to use Unix Timestamps and save those in the DB instead of a Date-string.

i don't think so... i don't think the date function has to do with the error, the date() statement is concatenated correctly outside the string, so if you use and editor like notepad++ you will see the the concatenated strings is not broken

vaultdweller123 32 Posting Pro

put this before the </head>

jQuery("#entersite a").hover(function(){

		jQuery("#entersite a").css("position","relative");
		jQuery(this).animate({left:"100px"}).fadeOut(function(){
			jQuery("#entersite a").css("left","-100px").fadeIn().animate({left:"0px"});
		});
		
});
vaultdweller123 32 Posting Pro

it's not possible to call the function buildModels(); from the javascript events onChange because it's a php function, and php is a server-side, it requires page load, unless you use AJAX.

vaultdweller123 32 Posting Pro

well that's weird, maybe you haven't included the header.php correctly in the index.php, because if you include it right the header.php becomes part of the index.php, try echoing or alerting text in header.php, to test if is really included

vaultdweller123 32 Posting Pro

i don't understand the question, there's no problem populating the dropdown menu, i assume you mean how to echo the selected items from the dropdown menu? if that's the case then above post is right, change $_POST to $_POST

vaultdweller123 32 Posting Pro
session_start();

// set session
$_SESSION['your_session_name'] = "your_value";

// read session
$_SESSION['your_session_name'];
vaultdweller123 32 Posting Pro

so what's the problem? this works fine

vaultdweller123 32 Posting Pro

ensure the full path is correct

vaultdweller123 32 Posting Pro

i already solved this thread how to delete this?

vaultdweller123 32 Posting Pro

hi guys i need help, i don't know what's the cause of this but somehow the page only loads 2 jwplayer videos and a white screen on mac google chrome. please help :(
http://masterbeing.com/nb/yoga-kurs-film-lp

vaultdweller123 32 Posting Pro

i don't really rely on books, i prefer internet sources as they are up to date specially w3schools who gives easy examples

vaultdweller123 32 Posting Pro

yes that's my current operation, users will have textfield where they write the path to the image. i think ill try the browser window, if u had a sample code on how to do it i would grateful thanks

vaultdweller123 32 Posting Pro

no i think we misunderstood each other, im not uploading, i only ask if we can specify the

<input type="file" name="file" id="file" />

to browse on the server instead on my computer. Like for example i have a module on the backend and i want my banner image replaced, currently the path is on a textfield. i don't want user to explicitly write and specify the correct path to the image, i want the user just to browse on the images available on the server, thanks for the reply btw :)

vaultdweller123 32 Posting Pro

thanks for the reply but that didn't help me, i tried that code but it only returned weird characters, i only want the normal input file we use in uploading but i want it to browse file from the server instead of my computer

<input type="file" name="file" id="file" />
vaultdweller123 32 Posting Pro

lol just goolge it out dude

vaultdweller123 32 Posting Pro

lol that book sucks, that's pretty hardcore for a starter in PHP, i prefer you learn PHP easy way from w3schools

vaultdweller123 32 Posting Pro

maybe it was just deleted on your gallery(assumed) list table, but not in your main image(assumed) table, try creating another database query to delete it you're main table, and if your you want to delete the image file from your folder, thin use unlink

vaultdweller123 32 Posting Pro

this error clearly says the file did not exist, you file logIn.php does not exist, try re checking your file on it's directory body/login/

vaultdweller123 32 Posting Pro

make a checkbox then assign id to each value in a row, just name your checkbox to array, example

<form>
<input type="checkbox" name="cid[]" value="1" /> 1<br />
<input type="checkbox" name="cid[]" value="2" /> 2<br />
<input type="submit" name="submit" value="submit" />
</form>

replace value with your id in your database. when you submit the form, values are stored in an array

vaultdweller123 32 Posting Pro

hey guys anyone know here how to browse image from server? currently the code <input type="file" name="file" id="file" /> is browsing from my computer. I want it to browse from the server, is it possible? thanks in advance

vaultdweller123 32 Posting Pro

hey guys anyone here know how to change the default menu icon of component in joomla? currently it's using the box icon :(

vaultdweller123 32 Posting Pro

Hey guys, anyone know how to change facebook plugin like button, text "like" to a custom text? thanks in advance

vaultdweller123 32 Posting Pro

hey guys im new to joomla and i don't know what caused this problem, i had created a new template myself, and successfully installed it and it displays correctly, but when i try to edit the template in the backend it doesn't show any any html code it only shows a blank page in the editor... please help :(

vaultdweller123 32 Posting Pro

Haha i dont have an IT joke, but i had this kind of joke

Once there was dog who is a sex maniac, he raped many of the animal in the forest, he raped chicken, cow, goat, pig etc. Almost all animals were raped and his crime continues for a long time. The animals of the forest are praying when will it stop that one day the lord will hear their prayers and punish the dog for his sin. One day when the cat was wandering in the forest... he saw the dog laying in the ground face down quivering horribly, Then the Cat says "Ha! good for you! The lord has punished you with your sin and deliver a quick death! die fool!". Just as the cat walk away the dog suddenly replies "Who's fool!? just wait i finish raping this ant and your next" ^_^

jember commented: hahaha That's a good one! xD +0
codeorder commented: LMAOOO!!!:D +0
vaultdweller123 32 Posting Pro

study PHP session

vaultdweller123 32 Posting Pro

one thing is for sure there is a problem on your query and your post is so ridiculous... its a very long code....