-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
Your code will just redirect any way unless their is a problem updating.
-
Have you tried just doing
return $newstring; on its own?
-
Does it work?
-
Where is $username defined and also you are comparing the username to the userid in the query.
-
Use .htaccess so that when someone requests mysite.com/productname it actually loads mysite.com/product.php?product=productname_or_id
-
Try google
-
No problem, you might want to look into some database tutorials to help get your head around some db stuff.
-
Because they are images and will go to the next line depending on image size i believe.
-
I would do something like
$array = array("quote1","quote2"); shuffle($array); echo $array[rand(0,count($array))];
Edit:
If you are getting the quotes from a db then use ORDER BY RAND() in your query
-
Stop being lazy and try it, stealing script you don't understand wont get you anywhere.
-
Might be your or die statement running, put error_reporting(E_ALL); at the top of the page
-
Yes the best way to this is to have one query which will get the process (use a while loop to loop through each process) then in the loop you will have two queries (or one joined query) to get the inputs and outputs, then use php to echo them or create an image using them
-
-
It won't have an exact tutorial on their for that but does have all the parts required.
http://www.tizag.com/phpT/forms.php
-
to change a type from checkbox to text it would be
<input type[b/]="text">
not style
Also the checkbox is actually within the form tags yes?
-
So if i am getting it correct,
you have a table with inputs?
And one with outputs?
Or are they both in one table, and you want to loop through each input and find the process and then the outputs for that process?
-
Yes except session_register is deprecated, so it should now be
$_SESSION['session_name'] = $session_value;
And try to use <?php instead of <? just better coding practice
-
However, the name of your checkbox is "box[]".
Which should mean that in your php the name of your postdata should be "$_POST['box[]']", not "$_POST['box']".
Where the hell did you get that idea from, the name box[] just means the data is added to the array called box, it is not a literal name.
-
Are you in any way using ini_set and changing the SMTP settings ?
-
We are not here to make your site bit by bit for you, please try and work it out on your own.
and
are great places to learn php
-
This line is causing them to be converted to HTML characters i believe
return rawurlencode($newstring);
Try changing it to
return $newstring;
-
No, i suggest you read better, i asked if you know mysql, you didn't state that you didn't in your post.
-
If you tell us exactly what you need to do then i will be able to advise you on how to do it.
-
I meant in the code you posted as it has syntax highlighting.
[SOLVED] Replacing and ° in PHP
in PHP Coding Help
Posted
It must be sent with html chars made special then, try using rawurldecode (i think it is)