Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
I agree Tom, heck, for all we know it's top secret CIA code - if we change one line we might bomb Russia or something right? Best to leave it as it's always been with that error there Here's a little clue for you dude. If we can't see the code, we can't fix the problem. You seem to refuse to admit that there even IS a problem, and think the error in the code is "not a coding error". We're not psychics, we're programmers. If you're not going to post code, you're going to have to fix it yourself. Have fun kiddo.
-
Don't post all 450 lines, post SOME of the lines BEFORE and AFTER the STATEMENT causing the ERROR. Or, you can simply choose to believe you're infalliable, and it was a gremlin who went in and changed it, and maybe if you post the fing code you might be able to fix it. I don't believe you that it "worked" before as the code you've posted IS NOT VALID CODE.
-
A cookie can be edited by the user - as you yourself said "hackers" cannot create sessions - they can easily edit/delete/create cookies.
-
You want to quit telling us what's not the problem? obviously you can't figure it out as you're asking for help, and I can assure you the code you have posted is far from valid code. So if you want our help, quit arguing and post the code.
-
You have a bunch of open strings with no ending and literal strings for tags Examplke: t=>"? should be 't'=>'?' or 't'=>"?" Also, that's not even a complete statement. It's starting with the assignment of keys in an array, but no creation of the array or assignment. Please post the lines surrounding this.
-
To help future readers, you should post what the solution was.
-
What does this mean - www.example.com/index.php?a=bc
Jessica replied to forumnz's topic in PHP Coding Help
I've never gotten a PM from you - what are you talking about? The only PMs I have are from yesterday from someone else. -
I normally use the time() as the query string cause it will never repeat. You can also add some no cache headers.
-
I think $_SERVER['REQUEST_URI']; might work better Add that to your domain and you've got the url.
-
use WHERE id=$id Like I said, check out the tutorial.
-
Making PHP send HTML mail using the mail() function
Jessica replied to smc's topic in PHP Coding Help
http://us3.php.net/manual/en/function.mail.php Example 1038. Sending HTML email -
What does this mean - www.example.com/index.php?a=bc
Jessica replied to forumnz's topic in PHP Coding Help
Please show me an example of a page that does this. PS: What message? If you are one of the many people to PM me asking me to help with your post, you might want to go read the forum rules where it says NOT to do that. That's why I didn't respond to your message. So, nice of you to read the rules before whinging. -
You have a p after your function...
-
See, as I said like 85 times, you have some with a 0 and some with a 1 - you're looping through all of them, so you get each one. Read the tutorial in the beginner section on mysql.
-
Don't put field names in quotes, and read the mysql manual. $cat_id = mysql_query("SELECT sectionID from `sections` WHERE sectionName='$cat_segment' AND topSection !='0' ") or die(mysql_error());
-
Googling the error you got turned up this: http://www.psoft.net/HSdocumentation/sysadmin/phpmyadmin_linked_tables.html
-
You'll always get a $result, even if it wasn't updated, unless there was an error. Since you check for an error, you'll either get the die() message or a $result. Add print $query before you run it to make sure it looks the way you want.
-
What are the entries in your database? By the way, there is no </img> tag - img is one tag. <img src="image.gif" />
-
What does this mean - www.example.com/index.php?a=bc
Jessica replied to forumnz's topic in PHP Coding Help
What the hell are you talking about? "Using "$_GET" can sometimes pose a problem because of an alert the browser gives you on page with "$_GET" in it; when page is reloaded." I have never ever ever seen a browser alert when a page has a query string. Register globals is a security hazard, that is why it was removed. If you're having weird alerts because you're trying to use valid code, there's another problem - the rest of your code, likely. Using undeclared variables is poor practice, not using $_GET, $_POST, etc is even poorer. -
Yes, and if you have one entry in your DB which has a 0, and one which has a 1, you'll get the results you're getting. JJ: PHP uses weak typing so 0 == "0" == '0' == false.
-
because that's html with php inside, I think you'll need to have the start of it be a closing php tag so it can go back into the html.
-
um, do you have one result that comes to 0 and another that comes to 1? You're selecting more than one row...
-
You end the " too early.
-
Well you didn't show us the code for that. But instead of printing the message, print whatever you want....
-
All you did was make a string. you need to use something like mysql_query() to run it. Read the tutorial in the beginner section or on http://www.php.net/mysql_query