-
Posts
489 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by MrAdam
-
-
for the popup to contain the username etc. I imagine you'll either need to set it on page load, or use AJAX.the popup window would be fairly simple to create. There's an article on the javascript forum about centering a div; width and height. Then just use javascript timing to remove the popup after a number of seconds.
-
do you mean like, templated pages using includes?my way of doing it is to create a file called "templates.php" or something. have a few functions within it, mainly "writeHeader($title)" and "writeFooter()". The variable $title obviouslly to change the title of the page.then include templates.php, and run the functions where i want them.
-
I know how to use cookies - i think the problem is that the sessions simply won't last a day without having access to the php.ini file. I think the best way to do it would be to save their session data in a database. if anyone thinks otherwise though, please le'me know !-cheerrs!
-
-
i don't want to be creating a member system, it wouldn't be useful enough. Is there a way of saving the session using cookies ? (for extended periods of time - not the default session cookie)
-
i think it depends on the configuration of sessions. what i want is so that people can do stuff on the webpage with their session; exit the browser; upto a day later return to the website and it have saved their session. So anything they add to the shopping cart for example, will still be there up to a day later ..
-
How can i make a session survive after closing the browser? What's the best way of doing this when i don't have access to the php configuration files? - thanks
-
i'd start looking into PHP or ASP .. and then MySQL
-
$update = mysql_query("Update studios set tour = '$tour', studio = '$studio', address = '$address' where id = '$_GET[edit]'");
try that .. There was a comma after "address = '$address' "
-
does it actually work?
-
onclick="document.forms[0].submit();
...
onclick="document.forms[1].submit();
goes up for each form on the page in the order they appear.
-
if you want to simply, compare the two to ensure you have the right person: save the IP in the database, when they register or something, then use a select statment to verify it's the same.you can then save that in a session - and as the user cannot modify the sessions themselves, it's secure enough to compare in the future - saving time.
-
where did you find it?
-
i was messing around on access earlier, managed to create this:http://www.newbiestyle.co.uk/excelTest.html (requires excel)im not sure how limited as to saving and editting it is.. but i shall find out !
-
got it working, thanks alot!
-
hi, does anybody have a quick way of removing all the spaces from within a string?
-
ah sweet! i'll look into that! - cheers bruv!
-
yeah .. im creating a web site for my boss, for his company. at the moment he has all his stock saved in an excel document - what i was hoping to do was to allow him to change the stock on the excel document.. which i could then write a script to apply the changes to the database.
-
i managed to sort it:
$id = "72"; // usually i would have run some statements to be left with the array[x] matching my id$test = Array();$test[0] = "72,72,72";$len = strlen($id) + 1; // length of ID plus 1 more for the comma$rem = strlen($test[0]) - $len; // the remainder from length of the array[x] minus $len$test[0] = substr($test[0],$len,$rem); // use substr() to only select after the first id, effectivelly, only removing one of the IDs
-
no no, thing is, i don't want the unique.. i want to get rid of just one of the identical id's .. so if the variable contained "33,33,33,33" .. i want to be left with "33,33,33".
-
thanks-but not quite what im looking for.
-
hey all!i've been on with this for past half hour, and im a bit frustrated now!i have a variable which contains an id. In some cases the id may be repeated (multiple times), and a comma inbetween the id's. for example: "33" OR "33,33" OR "33,33,33" etc.im trying to create a simple function to remove just one of the id's: so, "33,33" becomes "33".my question is; how do I do it ?! -Thanks!
-
is it possible to link a webpage to an excel document, an be able to delete entries, add new entries etc??? -cheers !
-
i can't see that coming out too well ! i'd use PHP/ASP to redirect the user!
Possible?
in PHP
Posted
ahh, i get you. what is your actual aim with this btw? be easier if i knew what you were trying to do with it ..