-
Posts
2,527 -
Joined
-
Last visited
Everything posted by DeanWhitehouse
-
Use .htaccess so that when someone requests mysite.com/productname it actually loads mysite.com/product.php?product=productname_or_id
-
Try google
-
[SOLVED] Runing a query inside of a query using a loop
DeanWhitehouse replied to Pjack125's topic in PHP Coding Help
No problem, you might want to look into some database tutorials to help get your head around some db stuff. -
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
-
[SOLVED] Runing a query inside of a query using a loop
DeanWhitehouse replied to Pjack125's topic in PHP Coding Help
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 -
Or meta refresh http://www.i18nguy.com/markup/metatags.html
-
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 http://www.tizag.com/mysqlTutorial/mysqldelete.php
-
[SOLVED] Runing a query inside of a query using a loop
DeanWhitehouse replied to Pjack125's topic in PHP Coding Help
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
-
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. http://tizag.com and http://w3schools.com 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;
-
[SOLVED] Desperate need of MYSQL help!!
DeanWhitehouse replied to jamesxg1's topic in PHP Coding Help
No, i suggest you read better, i asked if you know mysql, you didn't state that you didn't in your post. -
[SOLVED] Runing a query inside of a query using a loop
DeanWhitehouse replied to Pjack125's topic in PHP Coding Help
If you tell us exactly what you need to do then i will be able to advise you on how to do it. -
Sticky forms: There has got to be a more efficient way
DeanWhitehouse replied to kyalee's topic in PHP Coding Help
I meant in the code you posted as it has syntax highlighting. -
Sticky forms: There has got to be a more efficient way
DeanWhitehouse replied to kyalee's topic in PHP Coding Help
Please use php tags. Code doesn't need to look pretty and escaping characters is fine. But if you don't want to then you can do $var = <<something stuff something>> that would allow you to insert html without the need of escaping. Or similar, one of the other members may know -
[SOLVED] Runing a query inside of a query using a loop
DeanWhitehouse replied to Pjack125's topic in PHP Coding Help
No it shouldn't, you can't run a loop through a variable, each loop is run separately. -
[SOLVED] Desperate need of MYSQL help!!
DeanWhitehouse replied to jamesxg1's topic in PHP Coding Help
Have you heard of Google? Do you even know mysql? -
[SOLVED] Runing a query inside of a query using a loop
DeanWhitehouse replied to Pjack125's topic in PHP Coding Help
That will only loop through the rows in $query1, have you check how many row are in their ? -
No, that is not what i meant when you use it in links and/or submit them as pages in your site map it can make the search engine believe it is a directory and in effect come up with a 404