flit
Members-
Posts
42 -
Joined
-
Last visited
Never
Everything posted by flit
-
Thanks again, God bless you all.
-
Greetings, I am using Dreamweaver and when I use PHP includes in my code, the code does not look organized any more when I look at the source code from my browser. Can anyone help me out with this issue? Thanks in advance.
-
Thanks. You are right I don't think that you can completely stop people from viewing the source of a html page. When you disable right clicks with javascript, they can disable javascript in their browser and they can still right click.
-
Thanks. I haven't thought about that. I got a page, with a frame to "protect" my source code. But if they can see the URL displayed in the status bar, they can type that in, navigate to a page and see my source code anyway. So that is why I was trying to hide the URL in the status bar.
-
Hello everyone, Is it possible to disable url display in the status bar with PHP?
-
Thanks dude!
-
Hi there, Can anyone help me delete a comma from a session My session file looks like this id|s:8:"1,2,3,"; I know how to delete a variable from a session [unset($_SESSION['2']);], but I cannot delete the last comma from the session. I would like the session file to look like this: id|s:8:"1,2,3"; instead of id|s:8:"1,2,3,";
-
I used to use <a href='"7.php?action=add&id=1">Test 1</a> But I don't want anything displayed into my web browser after 7.php
-
Hi there, I have the following links on a page: <a href="7.php<?php session_start(); $_SESSION['id']=1;?>">Test 1</a> <br> <a href="7.php<?php session_start(); $_SESSION['id']=2;?>">Test 2</a> <br> <a href="7.php<?php session_start(); $_SESSION['id']=3;?>">Test 3</a> <br> <a href="7.php<?php session_start(); $_SESSION['id']=8;?>">Test 8</a> When I click the first link [test 1], the value 8 is written in the session file and not the value 1 When I click the second link I want the value 2 to be added into the session file. I want my session file to look like this: id|i:1,2; Can somebody tell me what I am doing wrong??
-
When I press the first link I want to write 1 to the session file but when I press 1 it writes 8 to the session file When I press the second link I want to write 2 to the session file but when I press 2 it writes 8 to the session file When I press the third link I want to write 3 to the session file but when I press 3 it writes 8 to the session file I want my session file to look like this: 1,2,3,8....... I used to do this with <a href="99.php?action=add&id=1">Add id 1 to session</a> but I don't want to use that technique. I don't want the action=add&id=1 message printed in my web browser. I want to add id's like the links below. <a href="7.php<? php session_start(); $_SESSION['id']='1';?>">Test 1[/url] <a href="7.php<? php session_start(); $_SESSION['id']='2';?>">Test 2[/url] <a href="7.php<? php session_start(); $_SESSION['id']='3';?>">Test 3[/url] <a href="7.php<? php session_start(); $_SESSION['id']='8';?>">Test 8[/url] All I want to do is insert a id value into a session by clicking on a link, and retrieve the id's later to print some mysql info on a page
-
When I added some more links, the program writes the id of the last link to the session thus 8 <a href="7.php<? php session_start(); $_SESSION['id']='1';?>">Test 1[/url] <a href="7.php<? php session_start(); $_SESSION['id']='2';?>">Test 2[/url] <a href="7.php<? php session_start(); $_SESSION['id']='3';?>">Test 3[/url] <a href="7.php<? php session_start(); $_SESSION['id']='8';?>">Test 8[/url] Help?
-
I can't add the same id to the session more than once
-
Thanks dude, it worked! Another id was added to the session. Can I use the foreach statement later to retrieve data from a database like they are stored? -> id|a:4:{i:1;s:1:"1";.........;}
-
Hi there, I am trying to add id's to a session, but when I click on a link to enter the id into the session, it overwrites it and does not add an id to the session. I have a page called 6.php with the following lines: <a href="7.php<? php session_start(); $_SESSION['id']='1';?>">Test 1</a> -->writes to the session: id|s:1:"1"; <br> <a href="7.php<? php session_start(); $_SESSION['id']='2';?>">Test 2</a> -->writes to the session: id|s:1:"2"; I want to be able to add an id into the session and not overwrite it. Can anyone help me?
-
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
I am inserting data into the session via the url <a href="books.php?action=add&id=1"> When I open http://localhost/books.php it inserts some data that I do not want in the page When I press refresh it inserts it again. -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
When I open the session file I see sessionvar|s:8:"1,2,3,,,"; I think that this might have caused the problem, anyone know a sulotion for this??? -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
I really don't know. Can't I trim that info too?? -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
It outputs, 1 Connected Successfully Array([0]=>1[1] =>1) --> Array ( [0] => 1 [1] => 1 [2] => [3] => ) The program works fine until I refresh the page -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
It outputs, 1 Connected Successfully Array([0]=>1[1] =>1) --> Array ( [0] => 1 [1] => 1 ) The program works perfectly until I press refresh Then comes blank data -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
Ow sorry Barrand. I don't understand what you mean. But the program is supposed to run like this There are some session id's in a session file sessionvar|s:7:"3,2,1"; The code creates a session id -> foreach The code echos for every id in the session info from an msql data echo "Title :".$row['id']; But when I press to refresh in my browser, there comes some info, but no mysql data I don't know if I understood you correctly but is this what you meant?? -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
Where does he $IdArray come from??? -> $id = $_SESSION['sessionvar']; idArray = explode(',' , $id); Did you meant this part?? -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
Title: //without anything Author: //without anything ISBN: //without anything ............this happens when I press on reload/refresh -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
foreach ($idArray as $id); { $query = "SELECT * FROM books where id=$id"; $result = mysql_query($query) or $id = trim($id, ','); $row = mysql_fetch_array($result); echo "Title: ".$row['title']; echo "<br>"; echo "Author : ".$row['author']; echo "<br>"; echo "ISBN: ".$row['isbn']; ......... -
Is it possible to continue with the rest of the code on an mysql error?
flit replied to flit's topic in PHP Coding Help
Thanks both solutions worked, but now I have another problem When I run the code I do not receive an error message any more but the output is not what I wanted. I receive something like this Title: //without anything Author: //without anything ISBN: //without anything -
I don't know if I understood you correctly but I think what you need are php includes. Example: <?php include("path_of_the_page.ext"); ?> Antiano bo ta??