Hi I am trying to give my customers an option to save favorite products for easy storage and reorderig.
it works great and on the single item add to cart i have no problem, how ever i would also like to give them the option to virew all their fav's in an order form like format with a single add to cart button. the problem is that as its pulled from the database the inputs it generates are all called the same so it only add the very...
User Profile
Collapse
-
Database based order form
-
thank for the responces it was the singel quote problem.
i am so new to using database and sessions i was sure it was a problem there and not a basic php problem.
i feel quite silly now
and ty for the dump solution that will defentily come in handy -
ok i was looking at the code and now i tried cangeing this
[PHP]$userid=$_row["id"];
$username=$_row["username"];
$email=$_row["email"];
$password=$_row["password"];
$accesslevel=$_ row["accessleve l"];
$account=$_row["account"];
$firstname=$_ro w["firstname"];
$lastname=$_row["lastname"];...Leave a comment:
-
Thank you for the tip,however, i anm still getting the |$fail|$active| $enabled| come through rather than the values i set for each
it appears that when iCode:$_SESSION ['fail'] = $fail;
Leave a comment:
-
database values to $_SESSION array
Hi Im trying to do something a little more complex with my login script at the moment it works fine, checks the username and password with the database if its wrong it echo's a error and if its right redirects the user to the main page with the session variable logged_in = true
but what i have done now is added more feileds into the user table name company email ect.
what i want to do is on successful login pull the... -
-
show message on no results
HI the below code is working well with one exception if there is no results (which will happen a few times) then of course nothing is shown id like to put "sorry no results found here" of nothing is pulled from the database
[CODE=php]$caslimitset = $_GET['caslimitset'];
if ($caslimitset == "")
{
$caslimitset=4;
}
else
{
$caslimitset = $_GET['caslimitset'];
... -
-
Works great,
thank you i just couldn't figure out how to show the results when the query itsself was the result and not generating variables.
this is going in my bookmarks lol
thanks againLeave a comment:
-
count
hi i got the count functon working but this it the first time i have ever used it
[php]$_result = mysql_query(" SELECT COUNT( * ) FROM `table` WHERE `colum` = '$sid' ");
echo "$_result Phones Supported"; [/php]
i can tell my echo is wriong. but i dont know what i should be doing here
Please enclose your posted code in [code] tags (See How to Ask a Question). Please use [code] tags in future.... -
insert for cross compatibility
sorry all i ever seam to do here is ask questions:(
but im really stuck on the best way to do this
what i have is 2 tables and im trying to make a 3rd table for compatibility
example
table 1
id
data
name
data1
table2
id
data
supplier
data2
what i want is a 3rd table
table3
id
table1... -
modified it a little and worked perfectly
thank you sooo muchLeave a comment:
-
Thank you this looks like what i need or ill re post to let you know if it succeeds...Leave a comment:
-
sql query into a html table
hi,
ive seen may sofwares and lenghty scripts do to this . but im looking for a simple way to display sql queries into a html table
example
<a href='carrier.p hp?id=$id'><img src='Images/$item' />
is the data from the sql table i want
but instead of it showing as
xxxxxxxx
or
x
x
x
x
i want it to show as
xxxx
xxxx...
No activity results to display
Show More
Leave a comment: