AyKay47
Members-
Posts
3,281 -
Joined
-
Last visited
-
Days Won
1
Everything posted by AyKay47
-
haha, dang.. http://www.phpbuilder.com/board/showthread.php?s=&threadid=10218911
-
how to show post time like, posted few seconds ago
AyKay47 replied to $php_mysql$'s topic in PHP Coding Help
nope -
if else statement, $_FILES getting uploaded
AyKay47 replied to $php_mysql$'s topic in PHP Coding Help
because if you look at your other threads.. i am there helping you as well, however when i give you a simple solution, you do not understand it...therefore I end up spending half of the day trying to explain basic code to you...if you look at your threads, the majority of them are like 20+ replies.. you are wasting people time and efforts.. learn the ins and outs of PHP before attempting things like this...look at tutorials, read books etc.. just how I feel about it -
As mentioned before, read thorpe's reply. There is even a link to the manual that explains exactly what this function does and how it solves your SQL issue. "mysql_real_escape_string() calls MySQL's library function mysql_real_escape_string, which prepends backslashes to the following characters: \x00, \n, \r, \, ', " and \x1a. " not to get confused with the add_slashes function, which many people use instead of mysql_real_escape_string when inserting data into a db...mysql_real_escape string is much smarter and escapes more characters as well.. from php.net "This function must always (with few exceptions) be used to make data safe before sending a query to MySQL. "
-
if else statement, $_FILES getting uploaded
AyKay47 replied to $php_mysql$'s topic in PHP Coding Help
SEEMS TO ME THAT YOU ARE NOT SPENDING THE TIME TO PROPERLY LEARN AND TEACH YOURSELF PHP...YOUR QUESTIONS ARE BASIC..SOMEONE GIVES YOU A SOLUTION AND YOU DO NOT UNDERSTAND IT AND ASK THEM TO DO IT FOR YOU, THESE ARE NICE PEOPLE ON HERE GIVING YOU THERE TIME FOR FREE WHERE NORMALLY A PROGRAMMER WOULD CHARGE YOU A GOOD CUNK OF MONEY TO HELP YOU...DON'T ABUSE THEIR HELP, IF YOU HAVE A QUESTION ABOUT SOMETHING, CHECK ONLINE RESOURCES BEFORE YOU ASK HERE AND TELL PEOPLE TO HELP YOU..IF YOU DO NOT UNDERSTNAD THE SOLUTIONS HOW CAN YOU EXPECT TO BE ABLE TO PROCEED WITH YOUR CODING... -
$email_message .= "Thank you for contacting Academia\n We will be in touch with you shortly\n Click here to return to Academia\n";
-
$email_message .= "Email: ".clean_string($email_from)."\n"; that is what you are telling the email message to consist of, therefore that is all that you will see
-
if else statement, $_FILES getting uploaded
AyKay47 replied to $php_mysql$'s topic in PHP Coding Help
i urge people on this forum to no longer help this person...he/she obviously doesn't understand the basics of PHP and doesn't care to.. anyone that has an issue every hour clearly needs to study examples and practice more..as I have stated in another thread of his.. -
first script, if all is working well with it...why change it
-
you can use what gristoi suggested, however the div inside of the parent div will not be contained...if you want it to remain contained, use float:right <div style="position:relative;"><div style="float:right;"></div></div>
-
you can eliminate some unessecary steps by using $data and while loop here instead of a multidimensinal array and for loop..
-
if else statement, $_FILES getting uploaded
AyKay47 replied to $php_mysql$'s topic in PHP Coding Help
so you are receiving a parse error but you aren't receving one of your custom errors? -
back to what PFM asked, are you sure that this error is triggered in your main php file and not in a required one, paste the error(s) that you are receving
-
the variable $data is already an array, so setting it to $dr[] as well is redundant.. now i'm not sure if you want all of the results stored into one URL or if you want each result to produce its own unique URL..? what Webstyles suggested should work if you want a unique URL for each query result, however if you want a single URL, we will need to come up with something different here
-
sounds like you need a girlfriend..
-
perhaps you should take the time and effort to study the PHP language before trying to do things like this...going headfirst into coding isn't a good idea and will lead to sloppy coding and scripts having bugs etc..
-
ah okay, thanks for clearing that up
-
while ($row = mysql_fetch_array($result1)) { $image = $row['images'] $details = getimagesize($image); header ('Content-Type: ' . image_type_to_mime_type($details[2])); readfile($image); //if fopen_wrappers is enabled } } you will want to put the output php code into a separate php file...like "test.php", then your html will look like <img src='test.php' /> untested..
-
how are you storing you images...?
-
I believe something like this is what you will want... if(isset($username)){ $sql = "SELECT images FROM images_list WHERE username = '$username'"; $result = mysql_query($sql) or die("Invalid query: " . mysqli_error()); header("Content-type: image/jpeg"); $im = imagecreatefromstring(mysql_result($result, 0)); imagejpeg($im); imagedestroy($im); } this is assuming that the image is a jpeg, but this is to give you the idea...
-
why would you want to hash a query string in the first place?
-
you can "crack" it yes, but decode no
-
can't decode md5, you can however compare the md5 result with an md5 hashed version of the correct value.. your code looks correct for what you want to do
-
then you'll want.. $getname = $_GET["name"]; $name = str_replace(" "."'",$getname); will replace the space in the string with an apostrophe