-
Posts
252 -
Joined
-
Last visited
Everything posted by ryanfilard
-
I don't think you can block them because they have access to your server. Maybe someone else knows a way around that.
-
The web host can get to your database. If you have passwords you should encrypt them. What host do you use?
-
Thanks it helped me do this: http://cod.ryanweekly.com/play.php?video=2
-
How would I fix this so it does not display too many stars? <?PHP if ($rating == '0.0') echo 'No Ratings Yet'; if ($rating <= '1.5') echo '<img src="../golden_star.gif" width="20" height="21" />'; if ($rating <= '2.5') echo '<img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" />'; if ($rating <= '3.5') echo '<img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" />'; if ($rating <= '4.5') echo '<img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" />'; if ($rating <= '5.0') echo '<img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" /><img src="../golden_star.gif" width="20" height="21" />'; ?>
-
I will use salt
-
How do I add 1 each time page is viewed. I use this but it does not work. mysql_query("UPDATE blops SET views = +1 WHERE id = '$idofimg'"); Example: 1 someone views the page 2 another person views the page 3 and so on.
-
How would I encrypt the password and encrypt all the old users passwords too? Here is part of my code. if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO users (fname, username, password, email) VALUES (%s, %s, %s, %s)", GetSQLValueString($_POST['fname'], "text"), GetSQLValueString($_POST['Username'], "text"), GetSQLValueString($_POST['password'], "text"), GetSQLValueString($_POST['email'], "text"));
-
Without using an html table
-
How can I repeat data from an sql table with out showing it in a table. Example: Product 1 Product 2 Desc 1 Desc 2 Product 3 Product 4 Desc 3 Desc 4
-
How can I make this look better? MySQL http://www.ryanweekly.com/tech.php
-
It still won't do it. I dont know what I am doing wrong.
-
It did not this is my whole ht file: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress RewriteCond %{HTTP_HOST} ^ryanweekly.ryanweekly.com$ [OR] RewriteCond %{HTTP_HOST} ^www.ryanweekly.ryanweekly.com$ RewriteEngine On RewriteRule ^\/(.*)\/(.*)\/.*$ user/index.php?p=$1
-
I put RewriteRule ^\/(.*)\/(.*)\/.*$ user/index.php?p=$1&interface=$2 in my ht access file. www.ryanweekly.com/cja to www.ryanweekly.com/user/?p=cja
-
How do I make a php script that will use mydomain.com/username instead of mydomain.com/?p=username
-
http://ryanweekly.com/sn.php Parse error: syntax error, unexpected $end in /home/rweekly/public_html/sn.php on line 62
-
That is all the code. In adobe dreamweaver it shows the "?>" as the error which is line 63
-
I get a syntax error on line 63 I do not know what is wrong. <?php error_reporting(E_ALL ^ E_NOTICE); $email = $_GET['ipn_email']; $header = ""; $emailtext = ""; // Read the post from PayPal and add 'cmd' $req = 'cmd=_notify-validate'; if(function_exists('get_magic_quotes_gpc')) { $get_magic_quotes_exits = true; } foreach ($_POST as $key => $value) // Handle escape characters, which depends on setting of magic quotes { if($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1){ $value = urlencode(stripslashes($value)); } else { $value = urlencode($value); } $req .= "&$key=$value"; } // Post back to PayPal to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); // Process validation from PayPal // TODO: This sample does not test the HTTP response code. All // HTTP response codes must be handles or you should use an HTTP // library, such as cUrl if (!$fp) { // HTTP ERROR } else { // NO HTTP ERROR fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { // TODO: // Check the payment_status is Completed // Check that txn_id has not been previously processed // Check that receiver_email is your Primary PayPal email // Check that payment_amount/payment_currency are correct // Process payment // If 'VERIFIED', send an email of IPN variables and values to the // specified email address foreach ($_POST as $key => $value){ $emailtext .= $key . " = " .$value ."\n\n"; } mail($email, "Live-VERIFIED IPN", $emailtext . "\n\n" . $req); } else if (strcmp ($res, "INVALID") == 0) { // If 'INVALID', send an email. TODO: Log for manual investigation. foreach ($_POST as $key => $value){ $emailtext .= $key . " = " .$value ."\n\n"; } mail($email, "Live-INVALID IPN", $emailtext . "\n\n" . $req); } } fclose ($fp); ?>
-
I have this code: <?PHP if (empty($row_Recordset1['lurl'])) echo ($row_Recordset1['lurl']); ?> I need to include text inside of the () Would I do this? <?PHP if (empty($row_Recordset1['lurl'])) echo ('<img src="'$row_Recordset1['lurl']'/>'); ?>
-
There is no border on my table when border is 3 http://www.ryanweekly.com/cja.php?id=10
-
It seems alright to me
-
I use this: <?php $form_message = true; if ($form_message) echo ' <h1> Need to contact me? </h1> <p> Please fill out your details and press the submit button to email me. <span class="bold">All fields are required</span>, thank you.</p><br /> '; ?>
-
When I do ORDER BY ID DESC I am missing a record
ryanfilard replied to pioneerx01's topic in PHP Coding Help
ORDER BY ID DESC "id" is uppercase it should be like this ORDER BY id DESC I had this issue once