mysql_fetch_row() expects parameter 1 to be resource
Hello, I am getting the following error: ==== Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/user/public_html/magento-db-repair-tool-1.1.php on line 378...
View ArticleCan cURL use sock proxies?
I don't really have any knowledge regarding proxies, but can cURL use a sock 4/5 proxy to execute requests? I'm currently using HTTP proxies, and I can never find more when I need them (because usually...
View Articlenon-database php form stuffs
Hello! I am attempting to put together a little 'login' of sorts, where a user inputs 4 numeric values into a form. The values are then compared to variables in a php script to see if the input...
View ArticleData fetching from multiple table dynamic
Hi All, I want to select rows from dynamic created tables i.e we have tables like web_analytics_mm_yy(ex: web_analytics_06_13, web_analytics_05_13, web_analytics_04_13 and so on) web_analytics...
View ArticleEnclosing an IP range within a tag
I've got a list of IP ranges, each one on a new line, in the following format: x.x.x.x-x.x.x.x I would like to enclose each IP range within a <deny></deny> tag automatically. How...
View Articledisplay image inside zip archive - can't read the file if it has special chars
This script will find a zip archive in a specific folder, then read an image file inside the zip and output it as jpg. It works perfectly when using a simple image filename, but as soon as the image...
View ArticleSearch and return customizable order
Hey I'm a 'newbie' to php so treat me nice~ I have a basic understanding of how things work~ I am looking to make (or have made for me) something that will scan through a website (a store type) and...
View ArticleCalling events from an array within a loop from a function
I am making a php calendar but struggling to get the query to work. The php calendar is made through a function with 3 variables fed into it. you can find the full calendar...
View ArticlePHP ftp upload from html form
$host = 'XXXXXXXXXXX' $usr = 'XXXXXXXXXXX'; $pwd = 'XXXXXXXXXXX'; $destDir = $_POST['filetype']; $conn_id=ftp_connect($host); $success = ftp_login($conn_id,$usr,$pwd); $rightName =...
View ArticlePHP Membership Cronjob
Hi, I have a question... I have created a PHP system where you can purchase various membership systems (e.g Bronze, Silver and Gold). When the membership is purchased it updates the following:...
View Articlenot showing results
hey guys, anyone have any idea why i cant get my code to show the results when i click submit? thanks. <?php require("db.php"); $data = array(); if(!empty($_GET['term'])) { $query = "SELECT...
View Articlephp mysql (html?) echo 'username' problem
Hello, I have download a 'sign up email login form' on the web, the process works (email confirmation), but when after signed i want to echo/print the username I got errors. Here my code (at bellow...
View Articlephp mail ignoring page breaks
I have this code that sends two emails (among other things). When the order is see on the order review web page it looks fine and the page breaks are there. When the email is sent, the received email...
View Articlemultiple periods in file names
Is there any potential problem for putting multiple periods in a filename for PHP. My server is a Linux-based server (running Apache), and I'd like to be able to do something like this:...
View ArticleRemove new line from encoded url string
Hello, Code: <?php $mylink = $_GET["link"]; $final_link = $mylink; if( strpos($mylink,"test")>0) { $tmp = "mystring1".$mylink."mystring2"; $final_link = urlencode($tmp); $loc =...
View ArticleUsing Preg Replace to Parse bbCode Into a Function
I am working on developing a custom forum with codeigniter. I am almost completely finished with it, however, the only problem I am running into is parsing a bbcode quote tag. I use two different...
View ArticleConvert huge if to functions
Hi Everyone, I need help converting this if / ifelse to a function, (I am new), if($file_extension == 'unknown'){$doc_extension = 'unknown'; $file_type = 'Unknown';}...
View ArticleNeed help opening up a file and replacing text between 2 delimiters
I will have a PHP file Within that PHP file I'll have something like this: <!-- #### Start of my code --> <!-- #### End of my code --> I want to write code that replaces everything...
View ArticleDirectory Permissions
I wrote a website some time ago that shares files for specific authorized individuals. Nobody can access the files without logging in. EXCEPT, Google has somehow scanned the directory, and if someone...
View ArticleWhy can't cURL manage a connection?
I have a script that tests a compiled list of HTTP proxies to see if they can connect to a specified website. If they connect, and the correct page results are returned, they are added to a list of...
View Article