-
Posts
1,008 -
Joined
-
Last visited
Everything posted by spiderwell
-
Showing multiple order/orderdetails on single page
spiderwell replied to skinnyguy76's topic in PHP Coding Help
you are correct, no offence taken. -
looking closer at the code it does look like it already does
-
as you have stated, the server side check does give the security you need. You could store the userid into the session object and avoid it apearing in the form altogether
-
Showing multiple order/orderdetails on single page
spiderwell replied to skinnyguy76's topic in PHP Coding Help
one way to approach it would be to put the order items details enquiry in the loop of the first query, so as you iterate through all the orders, make a call to the details part as you loop through the recordset of the orders. first query here for list of orders while (looping through the orders) { use the second query here to get item details by passing the id of the order. } -
you can do it that way if you wanted, but that is often the case in programming that theres more than one way to approach it.
-
why dont you just echo the <ul> outside of the loop, or did i miss something obvious here?
-
php 5 has scandir, which will do this for you. check it out here
-
how about using the mysql_num_rows() function? $query = "SELECT pid FROM products WHERE productgroup = 'Some Group'"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); I havent checked this snippet for typos so it might not run from cut n paste
-
I would suggest the error is pretty self explantory
-
and as far as i can tell from some bench marks that thorpe posted somewhere, zend is a bit clunkier all round than symfony
-
so essenetially you want to split a 24hour period equally and show it as a timestamp? or something like that? although your example does exclude the first minute of said period. I am guessing this split could be 2,3 ,4 or more? thus becoming 12hr,8hr,6hr etc periods?
-
hit up you tube and use my playlists, which seem to be all classical these days! but then sometimes i will be like today is iron maiden day and rock them out ! i guess it depends on the mood. i have yet to code to Barry White
-
Despite your example, I still have no idea what you mean. are you looking to split the date up into month,year,day? by divide what do you mean? as this is also a maths function. please clarify further thanks
-
Finding word in a String this way...
spiderwell replied to natasha_thomas's topic in PHP Coding Help
what term,guru? -
html 5 <input type="email"> job done. however you can't rely on that sadly!
-
first thing i would do is look up the function on php.net and see what that suggested as a replacement/alternative
-
SQL uses the word OR not the double pipe
-
isset() is to check if the variable has been set, regardless of its value, the first post will tell you if the variable has a value of null.
-
i gave up on bing when it was unable to give me a result when i typed the domain name directly into their search bar!
-
thanks for the response giz, a nice indepth answer wwas more than i hoped for!
-
i think he wants to grab a webpage with php and stuff it into a variable to echo out at his leisure
-
not if you dont show it to us, or explain exactly what bugs you are stuck with
-
if you are trying to repopulate the textarea, you need to put it inbetween the textarea tags not into a value attribute <textarea name="example"> <?php echo $_POST['example']?> </textarea>