Wolphie
Members-
Posts
682 -
Joined
-
Last visited
Never
Everything posted by Wolphie
-
Are you trying to pull an MD5 encrypted string from a database and echo a decrypted password? (Like the original password)
-
Download something named XAMPP from apachefriends.org They have a built in mail server
-
I had this same problem when using headers with sessions. Try removing session_start(); then trying the re-direct on it's own
-
In order to be able to send mail locally you need to have a mail server installed on the local machine.
-
1KB = 1024 1MB = 1024 / 1024 Therefore, do something like <?php function fileSize() { $filesize = $_FILES['file']['size']; $filesize = $filesize / (1024 / 1024); $filesize = floor($filesize); if($filesize >= 5) { echo 'Your file is larger than 5MB'; } else { echo 'Your filesize is below 5MB'; } } ?> Try that even
-
1KB = 1024 1MB = 1024 / 1024 Therefore, do something like <?php function fileSize() { $filesize = $_FILES['file']['size']; $filesize = $filesize / (1024 / 1024); if($filesize >= 5) { echo 'Your file is larger than 5MB'; } else { echo 'Your filesize is below 5MB'; } } ?>
-
Ah i see where i went wrong now. Thanks for that
-
I'm having trouble with the following snippet of code, i'm pretty certain it's to do with the regex strings. The javascript: <script language="javascript"> function checkColor() { var selectBox = document.getElementById('effects'); var user_input = selectBox.options[selectBox.selectedIndex].value; var str = user_input; if((str.match(/color/i)) || (str.match(/all/i))) { document.getElementById('divColor').style.display = 'block'; } else { document.getElementById('divColor').style.display = 'none'; } } </script> The Select Box: <select id="effects" name="effects" style="width: 147px;" onchange="return checkColor();"> <option value="1">Standard ($1.00)</option> <option value="2">Bold ($1.25)</option> <option value="3">Color ($1.25)</option> <option value="4">Underlined ($1.25)</option> <option value="5">Bold & Colored ($1.50)</option> <option value="6">Underlined & Colored ($1.50)</option> <option value="7">Bold & Underlined ($1.50)</option> <option value="8">All ($1.75)</option> </select>
-
Mail Sent from PHP Getting Flagged by Spam Assassin
Wolphie replied to craigbrass's topic in PHP Coding Help
Are you sure it's nothing actually to do with the domain? Usually it's the domain. -
Our pleasure, please remember to click "Topic Solved"
-
Yeah, that's what i thought however i wasn't sure. Thanks for the clarification.
-
Try removing page_url from the query and try just a single field.
-
<?php $con = mysql_connect('databasename', 'password', 'username'); mysql_select_db('site_info', $con); if(!isset($_POST['submit'])) { echo ' <form action="' . $_SERVER['PHP_SELF'] . '" method="post"> <center><input type="text" name="search" /><input type="submit" value="Search" name="submit" /></center> </form>'; } else { $query = "SELECT * FROM `site_info` WHERE `page_url`, `page_name` LIKE '%" . $_POST['search'] . "%'"; $result = mysql_query($query, $con) or die('Error: ' . mysql_error()); // Always use error handling while($row = mysql_fetch_array($result)) { echo ' <tr> <td><a href="' . $row['page_url'] . '">' . $row['page_name'] . '</a></td> </tr> </table>'; } } ?> Try that WITHOUT changing a thing, then copy and paste the error here.
-
<?php $con = mysql_connect('databasename', 'password', 'username'); mysql_select_db('site_info', $con); if(!isset($_POST['submit'])) { echo ' <form action="' . $_SERVER['PHP_SELF'] . '" method="post"> <center><input type="text" name="search" /><input type="submit" value="Search" name="submit" /></center> </form>'; } else { $query = "SELECT * FROM `site_info` WHERE `page_url`, `page_name` LIKE '%" . $_POST['search'] . "%'"; $result = mysql_query($query, $con) or die('Error: ' . mysql_error()); // Always use error handling while($row = mysql_fetch_array($result)) { This line 308 for me echo ' <tr> <td><a href="' . $row['page_url'] . '">' . $row['page_name'] . '</a></td> </tr> </table>'; } } ?> I think it may be the brackets. Try that
-
Sorry typo, i spelled it "names" rather than "name" Use this: <?php $con = mysql_connect('databasename', 'password', 'username'); mysql_select_db('site_info', $con); if(!isset($_POST['submit'])) { echo ' <form action="' . $_SERVER['PHP_SELF'] . '" method="post"> <center><input type="text" name="search" /><input type="submit" value="Search" name="submit" /></center> </form>'; } else { $query = "SELECT * FROM `site_info` WHERE `page_url`, `page_name` LIKE ('%" . $_POST['search'] . "%')"; $result = mysql_query($query, $con) or die('Error: ' . mysql_error()); // Always use error handling while($row = mysql_fetch_array($result)) { This line 308 for me echo ' <tr> <td><a href="' . $row['page_url'] . '">' . $row['page_name'] . '</a></td> </tr> </table>'; } } ?>
-
Only have a reply link on the parent comment
-
I don't think it's possible to encrypt source code. The best way to do what your asking is to generate a dynamic and unique encrypted string for each Payment.
-
Oops that's wrong <?php $con = mysql_connect('databasename', 'password', 'username'); mysql_select_db('site_info', $con); if(!isset($_POST['submit'])) { echo ' <form action="' . $_SERVER['PHP_SELF'] . '" method="post"> <center><input type="text" name="search" /><input type="submit" value="Search" name="submit" /></center> </form>'; } else { $query = "SELECT * FROM `site_info` WHERE `page_url`, `page_names` LIKE ('%" . $_POST['search'] . "%')"; $result = mysql_query($query, $con) or die('Error: ' . mysql_error()); // Always use error handling while($row = mysql_fetch_array($result)) { This line 308 for me echo ' <tr> <td><a href="' . $row['page_url'] . '">' . $row['page_name'] . '</a></td> </tr> </table>'; } } ?>
-
Try this <?php $con = mysql_connect('databasename', 'password', 'username'); mysql_select_db('site_info', $con); $query = "SELECT * FROM `site_info` WHERE `page_url`, `page_names` LIKE ('%" . $_POST['search'] . "%')"; $result = mysql_query($query, $con) or die('Error: ' . mysql_error()); // Always use error handling while($row = mysql_fetch_array($result)) { This line 308 for me echo ' <tr> <td><a href="' . $row['page_url'] . '">' . $row['page_name'] . '</a></td> </tr> </table>'; } if(isset($_POST['submit'])) { echo ' <form action="' . $_SERVER['PHP_SELF'] . '" method="post"> <center><input type="text" name="search" /><input type="submit" value="Search" name="submit" /></center> </form>'; } ?>
-
It wouldn't be too hard to re-use the register form. But instead of using the INSERT statement, you'd use UPDATE
-
Then it's more of a library rather than OOP.
-
I agree completely little guy.
-
Classes can be tricky if you haven't used them that often. Classes are usually used in OOP
-
Cart is a class And add_item is a function within that class So basically you're accessing the class Cart in order to use the function