-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
Considering someone has already told you what you need to do you should of tried that way and came back when you get stuck instead of waiting for code, which is most likely what you will do like some of your other threads.
if i wanted people to build my site i would title the thread "Please biuld my site for me", as you can see im asking for help on 'A' page
No you like to do the subtle approach and wait until someone just writes it for you.
-
do
for($i=0;$i<count($category);$i++) { if($i == 0) $sql = "CREATE VIEW items_temp AS SELECT * FROM items WHERE cat_id=".$category[$i]; else $sql = "INSERT INTO items_temp (column1,column2) VALUES ('value','')"; mysql_query($sql); }
-
I have better things to do than find excuses why you can't be bothered to try and do work on your own.
If you want examples use google
-
Is the IF statement being run, try putting an echo in the statement.
-
ucfirst(); to make things uppercase, and your other idea won't work it is hard to make it create spaces without knowing where they are, try renaming your db tables to use a seperator for words, like
wordone
could be
word_one
-
And you want us to modify it for you?
Try and modify it yourself and when you hit an error or problem then ask us to help you fix it, we are not here to do work for free but to help.
-
Wow, your still trying to get the forum to build your site for you, even though i have recommended sites to learn php and there are hundreds on the net.
Edit: also i just took a look at that link and it doesn't say that people with asperger have problems learning, just communicating with others.
-
Btw if this is solved then click solved in the bottom left of the thread.
-
try putting session start at the top of the code, make sure it is before everything else (including any PHP or html code)
-
Also remove the @ from the sql query, and add or die(mysql_error()) to it.
Example
$sql = mysql_query($query) or die(mysql_error());
-
Are you sure it doesn't parse the code like PHP does, and run the function instead of reading it literal
-
This will teach u regex
http://www.webcheatsheet.com/php/regular_expressions.php
Which is what that /\s\s+/ is
-
Either (i think), it might read 'NOW()' literally though
-
When you want to update it use NOW() as the value in the query
-
You said str_replace didn't work,lol, next time show us the code of your attempts
-
This thread alone has taugh me some stuff, (1) Grammer, (2) Some PHP, (3) To try and solve the problem first before asking for help and how great Blade is
Thankyou guy's
James.
Your too kind
-
yes, explode(".",l-193-160.sheridanc.on.ca); i think
-
echo $prev_page, see if it correct, also make sure you have no output before the header
-
do you have session start at the top of both pages?
-
Use $_GET
e.g.
http://mysite.com/login.php?previous_page=http://mysite.com/forum.php
and then do
Obviously needs more security etc.
//login stuff if(isset($_GET['previous_page'])) { //after login header("Location:".$_GET['previous_page']); }
-
Another example
-
Use header or meta refresh to automatically redirect, also you can't have ;;; it will produce an error, you only need one ;
-
look at the mail function, or the unset function to auto delete the file once downloaded.
-
If it saves the id you then query on each page to get the user details using the ID as a reference.
Problem with session
in PHP Coding Help
Posted
Quick way to do it if you don't have access to php ini
echo ini_get('session_save_path');
I think that is correct