premiso
Members-
Posts
6,951 -
Joined
-
Last visited
-
Days Won
2
Everything posted by premiso
-
Met bet is you are being hit by: From http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html Add more test rows and see if what comes of it.
-
Can you post the code where you actually insert the picture into the database, because afaik, you cannot store a "picture" in a hash. You could store the picture's file name as a hash...
-
It has already been moved. The appropriate forum is: http://forums.phpfreaks.com/forum/13-php-coding-help/
- 3 replies
-
- xml
- webservice
-
(and 1 more)
Tagged with:
-
I would try and debug your query: $query = mysql_query(" SELECT domain, COUNT(domain) AS domaincount FROM domaindata WHERE email_sent_date = '' GROUP BY domain") or trigger_error(mysql_error()); Should tell you if your query is bad etc. See what that says and report back.
-
Pretty good...surely you gest! It was AWESOME (the UK Version the US sucked ass). But it is not really programming just tech related
-
AntiTrust is a decent semi-programmer movie. I enjoyed it I guess you *could* include Jurassic Park, I mean they use Unix and the girls knows it! Oh and Swordfish, granted that is about cracking some encryption while a guy gets a blowjob... And the Net, not really sure what that is about... And if you consider it programming.... DollHouse (TV Series) where they program humans!
-
You do not HAVE to, I just wrote that there as a general demonstration, but by all means test it. Test it every which way you want that is how you learn!
-
Gotcha, just something to think about, maybe your mailserver was denying the html because of improper headers / mime type? Anyhow, something for you to look into when the time comes. Best of luck!
-
I do not recommend this, especially without validating the data in the base64 first. $act = 'frm'; eval(base64_decode($string)); Should do it.
-
Use it in what sense, you will need to describe how you want to use it and what you are using it for. If you just want to decode it: $decoded = base64_decode($string); Where $string is the aWY....
-
The windows gui can be lacking, but it has gotten way better. As far as linux clients, it is native to linux and there are plenty out there, I never used the gui's on linux at all, because I prefer the CLI, but I know there are clients out there, you just have to look for one that suits your needs. This is where your GoogleFU can shine!
-
In this code: <?php include("index_cross_session.inc.php"); if (!$_POST['image-upload-post']) { $_SESSION['upload'] = 1; header("Location: index.php"); die; } ?> You attempt to write session data, but you closed the session data for writing with the "session_write_close" in your include file. That is something you should look into
-
How Do I Change P Class Based On A Condition?
premiso replied to wright67uk's topic in PHP Coding Help
Yea, who knows. Maybe PHP6 will remove it HAHAHAHAA -
http://www.phpfreaks.com/tutorial/basic-pagination
-
Resize And Display Thumbnail Within Other Page Content
premiso replied to crwork's topic in PHP Coding Help
Gotcha and I did actually read your tl;dr as far as it being the most efficient, potentially. If you are going to use the thumbnail a ton, it might be worth it to run the script once and save it as a static file on the server. That should save processing time. But depending on the server and the number of hits it may or may not be necessary. -
How Do I Change P Class Based On A Condition?
premiso replied to wright67uk's topic in PHP Coding Help
You may want to check your facts on that http://www.php.net/manual/en/ini.core.php#ini.short-open-tag What I think has been depreciated from the short tags, to my knowledge, is the opening <? which should be depreciated. I tend to use the <?= for .phtml type template files. -
Where is the image being stored? On a file? How do you know the path / location to the image? That code you have there, even the database image, does not hint to any such information. We will need to know that to assist you.
-
Resize And Display Thumbnail Within Other Page Content
premiso replied to crwork's topic in PHP Coding Help
Is that your full thumbnail.php? If it is, you need to also specify the image headers, if not can you post the whole thing so we can verify? -
Yea, do you know what mailserver you are using? (postfix exim ... ?) That would help if you still cannot get it working. And as this is more than likely a server configuration issue, I moved it appropriately.
-
Ok so some general advice here, no one really wants to look through 1000's of lines of code, especially attached as files to locate your issue. More than likely, why no one has replied yet. A better way to go about this is post the relevant sections of the code, IE the file upload code and the database insertion code and then add to it when people request more specific information, such as your form code etc. I did take a glance at it, but a 23K file really just turns me off. I understand that you are not sure where it is failing and hence why you posted the whole thing. I also understand that it is semi poorly written, given that the whole thing is in one long function. If you can narrow it down and post the relevant code inline on this forum using the code tags, that would be awesome and would most likely yield you replies and help.
-
The best way to check for cookies is using javascript. There should be plenty of JS cookie checkers out there, where you basically set a cookie in Javascript, check for it in PHP, if that cookie is not there, they either have JS Disabled and or Cookies disabled. I have never really seen it done properly in PHP, because you have to do a page reload to attempt to read the cookie, where as JS there is no reload done.
-
Why not just set the column to be "unique" in MySQL? And the reason your code continues to add the user, is that you never kill the script, or set an else after checking the rows. mysql_select_db("my_db", $con); $result = mysql_query("SELECT username FROM members WHERE username = ' " . $username. " ' "); $rows = mysql_num_rows($result); if ($rows > 0) echo "Sorry, that username is already in use"; }else { /* Write to MySQL database */ $sql="INSERT INTO members (username, hash, firstname, surname, email, address1, address2, town, county, postcode, birthday, birthmonth, birthyear, paypalemail, terms) VALUES ('$_POST[username]','$hash','$_POST[firstname]','$_POST[surname]','$_POST[email]','$_POST[address1]','$_POST[address2]','$_POST[town]','$_POST[county]','$_POST[postcode]','$_POST[birthday]','$_POST[birthmonth]','$_POST[birthyear]','$_POST[paypalemail]','$_POST[terms]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } /* Redirect visitor to the thank you page */ header('Location: thanks.htm'); exit(); } Should solve your problems here. Edit: As a side note, I would look into SQL Injection and how to prevent it. Just a side note
-
Oh is this a venting thread? I am very angry at the fact that the internet exists. There is no good reason why and the fact that it exists proves that evolution is a failure and that your God does not exist. Please expand!
-
You just bought me my goatse domain! I am in your debt Glad to help and thanks for helping with the domain name!