I've a slight problem with my while loop. Although it is doing exactly as it is suppose to, I relized something. I need to contact the MySQL database, find the value of every line with a given username, then show the content of each of those lines one by one. I thought maybe an array or...
The line after $sql you'll want to put this:
$result = mysql_query($sql,$dbh) or die("Information insersion fail.<br>Reason: ". mysql_error());
I believe this should fix your problem.
Okay, thank you everyone. The problem was the fact that I was using to and from, I changed them, and everything worked fine... just a few bugs I still need to work out though.
The best way to remove a background that I've found is once you do what Kylebellamy said, you just hit Shift+Ctrl+I (Select > Inverse) then ctrl+X (cut) and finally ctrl+v (paste) this will put the image on a second layer with no background, you can then delete the bottom layer and do as you...
Okay, I've checked, re-checked, and looked over my code what feels like a few hundred times now. I know it's connecting to the Database, but it won't add information!
Anyways, here's my code:
$sql = "INSERT INTO pm (from,to,subject,message,date) VALUES...
As far as I can tell, you're only giving the variable 'code' value, then doing nothing with it. I would just do what spookie said, except try it like this:
$Message .= "\n\n<a href=http://www.domainName.com/file.php?code=".$code.">Click here</a>";
That way it doesn't look...
Okay, I'm trying to write a pm system for my site. However, as far as I know (a friend of mine ran into this problem) MySQL databases don't store paragraphs.
I'm wondering if maybe ASCII is stored (if so, the ASCII code is 12), or how I could fix this problem. Then I need to parse the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.