Is it possible to have a Session variable as an array in PHP where,
that array gets values added to it dynamically?
Im trying to create a inquiry cart where the product ids of all the items that a customer inquires about gets stored in a session variable. how can I do this?
the ids can be sepperated by a delimeter dynamically. I just cant get this done. pls help if you know. thans in a...
User Profile
Collapse
-
Can I have a session array that gets added dynamically?
-
Hey thanks so much for your answer. but even this way i keep loosing the value when I navigate to another page and back from abc.php.
Well im thinkin may be cookies is the solution
like:
setcookie("cook name", $_SESSION["pid"], time()+60*60*24 *100, "/");
if there's someother way smone pls let me know. thanks in advance!!
See what I want... -
Using Sessions to pass a value from one page to another in PHP
I use PHP sessions to pass a value from one page to another.
In my 1st page I pass a value called 'id' to my 2nd page using a hyperlink.
explained:
<a href="abc.php?i d=<?php print"$image_id ";?>"></a>
so in my 2nd page (abc.php) I capture the value for id using $_GET.
I want to know how I can do the same using session variables.... -
-
nse111 started a topic How can I determine the height and width of the flowwong php mysql tag cloud?in PHPHow can I determine the height and width of the flowwong php mysql tag cloud?
[code=php]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hope this works</title>
<link href="./Art/stylesheets/cloud_style.css "... -
sorry it's a silly question. found the answer. for anyone who seeks tha answer it's simply that the
or
should be
||Leave a comment:
-
and one of those $fname within if() should be $email. sorry mistyped.
I get this smg all the time. just cnt c y
"Please fill all required fields"Leave a comment:
-
Data isn't saving to mysql database
I hv a form in my php file to accept some data from the user.
Then as shown below I capture the data using PHP.
the data is getting captured in the variables no prob with that.
but the data isn't getting saved to the database.
it should have something to do with my if cluases. pls let me knw the error.
thanks in advance...!!!! :)
[code=php]
<?php... -
OMG!! I'v bin lookin for this for sooooooooooo long! all of u r life savers!!!!! thaaaaaaaaaaaaa aaaaaaaanks!!! I'm a newbie myself :( thanks thanks... :)Leave a comment:
-
Hmmm really interesting facts guys.. thanks so much I will really consider them! thanks againLeave a comment:
-
-
This is why..
the 'tags' field in my table stores all the tags for a particular image.
like,
example: cherry:tree:gar den:hotel:mount ain
so after accepting a tag/tags from a user n assigning it to a variable/variables
how do I query my database?
can you pls help?...Leave a comment:
-
match an exact word within a string
Hey yaaaaaaa guys n gals!
I want to know how I can match a whole word within a string using php.
these are the results returned by the mysql query:
tree:sweet:hous e:gate:tent
candy:lollipop: choco:street:ch ild
i want to search the word 'tree' wich I take from the user dynamically.
when I use the following code:
[CODE=PHP]
if (isset($_POST['findtag']))... -
-
-
I want to know how I can do this using PHP & MySQL
I want to add tags for a paricular image in my db table.
I want these tags to be stored in one table field.
lets say I entered the following tags for an image:
house
mountainside
lake
greenery
I want these tags to be saved in 1 field named Tags separated by a delimiter.
house:mountains ide:lake:greene ry
the above is wat shld be stored in my database. ... -
thanks all :) for the info on tags, links n abt the advice on attitude arnd here :)Leave a comment:
-
Gosh stop being rude! by the way thanks for that link but that also explains displaying just ONE image. see thats the prob I'v got. I want to display multiple images (thumbnail list).Leave a comment:
-
Blob does not display multiple images from mysql database
[code=php]<?php
//header('Content-Type: image/jpeg');
header('Content-Type: text/html');
@mysql_connect( "localhost","ro ot","dba") or die("Error");
@mysql_select_d b("gallery");
$result = mysql_query("SE LECT * FROM paintings");
while($row = mysql_fetch_ass oc($result)){
print $row[p_painting_id]."</br>";
//print $row[p_painting_imag e];... -
Paging isnt working
I am trying to get some data and show it usig paging. my coding displays and also the paging is also visible on my web page. but it doesnt work. as in when i click next the next set of results aren't shown. Pls tell me wats wron wit my coding.
pls not that this is a jst a snippet from my coding.so ignore unclosed tags n all.
[code=php]
$db_host = 'localhost';
$db_user = 'root';
$db_pwd = 'dba';
...
No activity results to display
Show More
Leave a comment: