Warning: File_get_contents() Expects At Most 2 Parameters

Dec 30, 2005

PHP Code:

$opts['http']['method'] = 'POST'
$opts['http']['header'] = $header;
$opts['http']['content'] = $request_data;
$context = stream_context_create($opts);
$filename = 'https://'.$host.$service_uri;
$content = file_get_contents($filename,false,$context);

here is the error: Warning: file_get_contents() expects at most 2 parameters, 3 given in /path/to/the/file.php on line 34.

ADVERTISEMENT

Warning: Mail() Expects At Most 5 Parameters

Feb 15, 2010

Am using this html form along with the below php ("myemail" and "mydomain" changed for privacy) and keep getting this error message: Warning: mail() expects at most 5 parameters, 7 given in /home/public_html/surveymail.php on line 10

COPY/PASTE OF HTML FORM:
<form method="post" action="surveymail.php">
<p align="left">Thank you for visiting our church recently! You matter to us and so does your opinion. We would appreciate your feedback on the following four questions:<br />
</p>
<TABLE BORDER=0 CELLSPACING=3>
<TR>
<TD ALIGN=Left>Name: <TEXTAREA NAME="name" ROWS="1" COLS="20">

View 5 Replies View Related

File_get_contents Expects A String?

May 3, 2011

I am trying to get a file from s3 and move it to my local file system and I am getting this errorfile_get_contents() expects parameter 1 to be string, object given

$upload_directory = "C:wamp est";
$s3 = new AmazonS3("key", "pass");
[code].....

View 4 Replies View Related

Mail() Expects At Most 5 Parameters

Nov 13, 2006

I HAVE A LONG FORM WITH 20 FIELDS THAT I WANT EMAILED. HOW DO I LIST THEM ALL WITHOUT GETTING THIS ERROR?

Warning: mail() expects at most 5 parameters, 7 given in /home/emortgag/public_html/message_sent.php on line 44
"From: $_POST[name] <$_POST[email]>");

HERE IS MY CODE:

<? mail('tracys@homesteadmortgage.com','Client Expectation Questionnaire', $_POST['BName'], $_POST['BWorkPh'], $_POST['BHomePh'], $_POST['BCellPhone'], $_POST['BBirthday']);
?>

View 1 Replies View Related

Warning: Domdocument() Expects At Least 1 Parameter

Aug 10, 2006

I have this script

-----------------------------------------------------------
<?php
$doc = new DOMDocument();
$doc->load('books.xml');
echo $doc->saveXML();
?>
-----------------------------------------------------------

But when I run it I get this ugly message...

-----------------------------------------------------------
Warning: domdocument() expects at least 1 parameter, 0 given in
C:ProgrammiApache GroupApache2htdocsappaimlook.php on line 2
Fatal error: Call to undefined function: load() in C:ProgrammiApache
GroupApache2htdocsappaimlook.php on line 3
-----------------------------------------------------------

My php version is 4.3.8 (with Apache 2.0 on windows 2000).

View 2 Replies View Related

Warning: Mail() Expects... Error

Dec 28, 2006

I got this error trying to set up a form... Does the mail() option only allow for 5 parameters to be sent? Warning: mail() expects at most 5 parameters, 9 given

View 1 Replies View Related

Warning: Mysql_real_escape_string() Expects At Least 1 Parameter?

Jun 28, 2010

I'm a bit too green to figure this one out, been at it all day and still no further along...Yes, I need to upgrade that book.Anyway here's the error.Warning: mysql_real_escape_string() expects at least 1 parameter, 0 given in /home/mnet/public_html/db_insert.php on line 18There has been a system problem. Failed to add record to database.Here's the code

requireonce('connectDB.php');
$password = md5($_POST['password']); // hash the password before the array_map()
array_map(mysql_real_escape_string(), $_POST ); // Since only one element won't need to be sanitized, run the entire $_POST array through mysql_real_escape_string.
[code].....

View 6 Replies View Related

Warning: Mysql_num_rows() Expects Parameter

Dec 8, 2010

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocsipodlibconnection.php on line 131

:S
129. function RecordCount ( $query )
130.{
131.return mysql_num_rows( mysql_query( $query ) );
132.}

View 1 Replies View Related

Warning: Setcookie() Expects Parameter 3 To Be Long,

Jun 17, 2002

I am using a modified versoin of PHP Helpdesk from SourceForge.net. It uses cookies to do some authentication measures and present the user who is logged in with the tickets they need. And until recently, it was working well. I suspect that my host has recently upgraded their version of PHP, but I can't be sure.

Anyway, until recently, as I stated, it was working well. Now I am getting the following error when trying to log in:

Warning: setcookie() expects parameter 3 to be long, string given in /path/to/files/helpdesk/includes/cookie.inc.php on line 8

The cookie.inc.php is actually quite a small file and I would not think that it would cause me much grief, but it is. Below is the actual code for the cookie generation script: Code:

View 6 Replies View Related

Warning: Rand() Expects Parameter 1 To Be Long

Apr 6, 2007

Rand() function doesnt like me....Heres my error:

Warning: rand() expects parameter 1 to be long, object given in C:Program Filesxampphtdocswinterswordcorecombatcombat.class.php on line 205

Now, I give it the two numbers 10 and 12. Whats wrong with that?

View 2 Replies View Related

PHP Version 4.3.10 - Warning: Domdocument() Expects At Least 1 Parameter, 0 Given

Jul 17, 2005

I'm getting the following error(s) below and I'm at a bit of a loss as
to how to correct it. When I give it a parameter it then complains it
needs two parameters and the second one being an integer or something
like that.

Warning: domdocument() expects at least 1 parameter, 0 given in
orders.php on line 157

Warning: domdocument() expects at least 1 parameter, 0 given in
orders.php on line 158

Fatal error: Call to undefined function: loadxml() in orders.php on
line 159

The lines in question are:
$xml = new DOMDocument;
$xsl = new DOMDocument;
$xml->loadXML($row['fetch_orders']);
$xsl->load('fetch_orders.xsl');
$proc = new xsltprocessor;

phpinfo shows the following:
Loaded Modules: mod_php4, mod_setenvif, mod_so, mod_unique_id,
mod_log_forensic, mod_usertrack, mod_headers, mod_expires,
mod_cern_meta, mod_proxy, mod_digest, mod_auth_db, mod_auth_anon,
mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling,
mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex,
mod_include, mod_info, mod_status, mod_negotiation, mod_mime,
mod_mime_magic, mod_log_config, mod_define, mod_env, mod_vhost_alias,
mod_mmap_static, http_core

domxml
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20616
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.1.12
libxslt compiled against libxml Version 2.6.16
DOM/EXSLT enabled
libexslt Version 1.1.12

xml
XML Support active
XML Namespace Support active
EXPAT Version expat_1.95.8

xslt
XSLT support enabled
Backend Sablotron
Sablotron Version 1.0.1
Sablotron Information Cflags: -O -pipe Libs: -L/usr/local/lib -liconv
-lexpat Prefix: /usr/local

View 1 Replies View Related

Warning: Array_keys() Expects Parameter 1 To Be Array

Jul 14, 2011

Ive been working on create a file upload form using PHPmailer to send as attachments. Ive finally got it to send the email, but its not sending the attachment. Here's my HTML form:

<input type="file" class="fileupload" name="images[]" size="80" />

And here's my php processor code:

<?php
require("css/class.phpmailer.php");
//Variables Declaration
$name = "the Submitter";...............

And now here are my new errors:

Notice: Undefined index: files in /usr/home/jak2234/public_html/new_form/phpmailerprocess.php on line 58

Warning: array_keys() expects parameter 1 to be array, null given in /usr/home/jak2234/public_html/new_form/phpmailerprocess.php on line 58

Warning: Invalid argument supplied for foreach() in /usr/home/jak2234/public_html/new_form/phpmailerprocess.php on line 58

Strict Standards: Creating default object from empty value in /usr/home/jak2234/public_html/new_form/phpmailerprocess.php on line 68

Fatal error: Call to undefined method stdClass::IsHTML() in /usr/home/jak2234/public_html/new_form/phpmailerprocess.php on line 70

View 1 Replies View Related

Warning: Mysqli_real_escape_string() Expects Parameter 1 To Be Mysqli

Dec 5, 2010

I am running a php script in XAMPP (see below) and I am constantly getting this error:

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, resource given in C:xampphtdocsfunstuffsignin.php on line 7

<?phpsession_start();
include('include/db.php');
//check for session

[code]....

View 4 Replies View Related

Warning: Mysqli_query() Expects Parameter 1 To Be Mysqli

Mar 7, 2008

Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:wampwwwcmsinsert_record.php on line 22

Warning: mysqli_error() expects parameter 1 to be mysqli, null given in C:wampwwwcmsinsert_record.php on line 25

Unable to query the database: .

Warning: mysqli_close() expects parameter 1 to be mysqli, null given in C:wampwwwcmsinsert_record.php on line 29

Code:
<?php
if(isset($_POST['title'])) {
$link = mysqli_connect('localhost', 'XXX, '', 'XXX');
if (mysqli_connect_errno()) {
echo '<p>Cannot connect to DB: ' . mysqli_connect_error() . '</p>';

[Code]....

View 5 Replies View Related

Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource

Oct 8, 2010

This is some PHP search code with some mistake. $run gives nothing where $run = mysql_query($construct); It gives: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocsxamppsearchsearch2.php on line 39 No results found.

<?php
//get data
$button = $_GET['submit'];
$search = $_GET['search'];
if(!$button)

[Code]....

View 2 Replies View Related

Warning: Mysql_fetch_array() Expects Parameter 1 To Be Resource

Apr 5, 2011

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\animal walfare (bmc)22\results audit.php on line 31

<html>
<body>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)

[Code]....

View 2 Replies View Related

PHP Warning: Setcookie() Expects Parameter 3 To Be Long

Aug 2, 2007

I am moving a site (from a server running PHP4 to a server running PHP5) with a simple PHP login system that sets a cookie and sends an email that someone has logged in. It is returning an error and not setting the cookie. Here is the error:

PHP Warning: setcookie() expects parameter 3 to be long, string given in /home/taylor/public_html/login/login.php Here is the PHP code (the contents of the login.php page that the form calls): Code:

View 1 Replies View Related

Warning: Str_pad() Expects Parameter 4 To Be Long

Feb 11, 2011

I installed xampp today ( v2.5 ) and all of my old php/mysql stuff is haywire.

ONE example is this:

$lvs_result = str_pad( 1 , 4 , "0" , "STR_PAD_LEFT" ) ;
print ( $lvs_result . "
" ) ;
//==> Warning: str_pad() expects parameter 4 to be long, string given in C:xampphtdocs estingindex.php on line 18

I am getting dozens of warnings for all kinds of functions however .

View 4 Replies View Related

Warning: Mktime() Expects Parameter 5 To Be Long

Aug 18, 2010

I'm getting this error:

Warning: mktime() expects parameter 5 to be long, string given in /home/user/public_html/include/functions.php on line 58

The code is:
if($Date_Format == 1)#For dd-mm-yyyy
{
$Date_Output=date("d-m-Y",mktime(0,0,0,$Month,$Day,$Year));
}
elseif($Date_Format == 2)#For dd/mm/yyyy
{

[Code]....

View 9 Replies View Related

Warning: Mysql_real_escape_string() Expects Parameter 1 To Be String?

Apr 15, 2010

I recieve this errorWarning:  mysql_real_escape_string() expects parameter 1 to be string, array given in /home/jeanie/public_html/inc/functions.php on line 10Now I never use to get this error,and suddenly it's only started to appear. So I'm wondering what the problem is, I do have checkboxes in my form, these are in an array. This could be part the problem. Although how do I fix it?<tr><td height="34">Interested In:</td>

<td><input type="checkbox" name="men" value="men" /> Men
<input type="checkbox" name="checkbox[]" value="women" /> Women
<input type="checkbox" name="checkbox[]" value="none" /> None
<input type="checkbox" name="checkbox[]" value="other" /> Other</td></tr>They are the checkboxes, this is where the function to clean strings gets called (In the form validation)
$_POST = clean($_POST,0,0);
[code].....

View 9 Replies View Related

Warning: Mysql_fetch_assoc() Expects Parameter 1 To Be Resource

Jun 3, 2011

I used the following code:
Code: [Select]<?php
echo "hi there";
$usr = "xxxxxxxxxxx";
$pwd = "xxxxxxxxxx";
$db = "samdb";

[Code]...

MySQL sever version 5.5.8 clinet version 5.0.7 I'm using xampp but I can't find the version of this, but it was the latest from about two months ago.

MOD EDIT: code tags added

View 6 Replies View Related

Warning: Ftp_put() Expects Parameter 1 To Be Resource, Boolean Given In ...

Jul 17, 2005

I wrote class for sending files via FTP. I hvae problem when I try to use it. I see this message:

Warning: ftp_put() expects parameter 1 to be resource, boolean given in
D:klasyclass.ftp.inc on line 32 ....

View 1 Replies View Related

Warning:mysql_fetch_array() Expects Parameter 1 To Be Resource, Object Given?

Jan 8, 2011

Hey guys, I'm getting the above warning when I try to run this code:

$mysqli=new mysqli("localhost", "***", "***","***") or die(mysql_error());
function checklogin($username, $password){
global $mysqli;

[code]...

View 3 Replies View Related

Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource, Boolean Given In?

Mar 25, 2011

//the error is at line 13

$questions =$_POST['question_text'];
$checkquestion=mysql_query("SELECT question_text FROM questions LIKE '$questions' ");
if(mysql_num_rows($checkquestion)) { //line 13
[code]....

View 3 Replies View Related

Warning: Array_slice() Expects Parameter 1 To Be Array, Null Given In

Mar 21, 2011

I'm using the following code in my wordpress site to display the latest youtube video from my account using rss:

<?php
include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
$feed = fetch_rss('http://gdata.youtube.com/feeds/api/users/UrbanGAME/uploads'); // specify feed url
$items = array_slice($feed->items, 0, 1); // specify first and last item
?>
<?php if (!empty($items)) : ?>
<?php foreach ($items as $item) : ?>
[Code]....

It works. However, some of the times I get this error when it does not work: " Warning: array_slice() expects parameter 1 to be array, null given in /wp-content/themes/theme1/header.php on line 173. "

Also I'm using the above code twice, for 2 spots on the site for 2 different accounts. One is in the my header.php file and the other in my footer.php file. When 1 works, the other does not, and of course I get an error/warning for the other one as well, just referring to that file and a different line. I have tried messing with the code and still nothing. Could the problem be with something in my code?

[Code]...

View 3 Replies View Related

Mysql_num_row - Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource

Oct 28, 2010

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:wampwwwunisiteproducts.php on line 11 I can't figure this out at all

<?php
if(isset($_GET['action']) && $_GET['action'] == "add"){
$id = intval($_GET['id']);
if(isset($_SESSION['cart'][$id])){
$_SESSION['cart'][$id]['quantity']++;
} else {
$sql2 = "SELECT * FROM products WHERE prod_id = [$id] ";
[Code]....

View 4 Replies View Related

Warning: Array_push() Expects Parameter 1 To Be Array, Null Given

May 8, 2010

I'm getting the error: Warning: array_push() expects parameter 1 to be array, null given in D:\xampp\htdocs\avatar\pages\allpages.php on line 7 When using the code listen below.

<?php
$listed_pages = array();
function addIntoArray($element) {
if (($element != ".") || ($element != "..")) {
array_push($listed_pages, $element);
echo $element . " has been added!";
}
return;
}
[Code]....

I know it means that $listed_array isn't a array, but I've declared it, and I can't seem to work out what's wrong.

View 1 Replies View Related

Warning: Mysqli_num_rows() Expects Parameter 1 To Be Mysqli_result, Boolean?

Feb 21, 2010

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:xampphtdocs est_council_sitelogin.php on line 52// get the databse settings file and estblish a connection.

require_once ('../mysqli_connect.php');
// set the page title variable $page_title
$page_title = 'User Login';
[code]..........

View 9 Replies View Related

Error.. Warning: Mysql_fetch_array() Expects Parameter 1 To Be Resource

Dec 10, 2009

I want to display data in a table I have using the following code. It works using the table and field names in the code I have displayed but when I change it to another table name and attributes in another table i get the error.. Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in H:xamppxampphtdocsdisplayCustomer.php on line 14

Code:
Code: [Select]<?php
// (1) Open the database connection – always use localhost
$connection = mysql_connect("localhost", "root");
// (2) Select your  database id
mysql_select_db("animals", $connection);

[Code]...

View 3 Replies View Related

Warning: Mysql_fetch_array() Expects Parameter 1 To Be Resource, Boolean Given

Aug 30, 2010

The mysql_query function is failing in the show function and I'm not sure why:

function index($item){
db_connect();
$query = "SELECT * FROM $item ORDER BY $item.id DESC";
$result = mysql_query($query);
$result = db_result_to_array($result);
return $result;

[Code]...

View 3 Replies View Related

Warning: Mysql_select_db() Expects Parameter 2 To Be Resource, Null Given?

Feb 21, 2010

I'm getting this warning message in the following code and I am wondering if it's because I haven't any input in the database fields yet?

Code: [Select] <?php
$dbx= mysql_connect("host", "user", "pass");   //include before any database implematation
if (!$dbx)
[code].....

View 1 Replies View Related

Use File_get_contents With URLs That Have Parameters

Jan 23, 2006

I can't believe I'm having this problem, it seems as if this function has it in for me. For some reason, when I use file_get_contents with URLs that have parameters (i.e. ?var1=xx&var2=yy....) doesn't work.

It appears that file_get_contents only accepts the first URL parameter. Has anyone else experienced this? Does anyone know how I can read URLs with parameters from within a PHP script?

View 3 Replies View Related

Warning: Ftp_login() Expects Parameter 1 To Be Resource, Boolean Given In C:Program

Jun 14, 2007

Im trying to connect to an ftp site and i keep getting this error

Warning: ftp_login() expects parameter 1 to be resource, boolean given in C:Program Filesxampphtdocsclickonlinehomesftptest.php on line 17

Warning: ftp_close() expects parameter 1 to be resource, boolean given in C:Program Filesxampphtdocsclickonlinehomesftptest.php on line 36



This is my code


$ftp_server="datalink.interealty.com/DataLinkOutput/AAR/AAR_1000045403";
$ftp_user_name="******";
$ftp_user_pass="****";




// set up basic connection
$conn_id = ftp_connect($ftp_server);

// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);


ftp_close($conn_id);



Anyone know whats causing error?

thanks

View 4 Replies View Related

5 - Setting A Cookie - Warning: Setcookie() Expects Parameter 3 To Be Long

Apr 20, 2010

I am trying to set a cookie, whas wrong with this as I am getting an error. Warning: setcookie() expects parameter 3 to be long, string given in /home/admin/domains/domain.com.au/public_html/setcookie.php on line 6

<?php
$cookie_name = "test_cookie";
$cookie_value = "test_string";
$cookie_expire = "time()+86400";
$cookie_domain = "localhost";
setcookie($cookie_name, $cookis_value, $cookie_expire, "/", $cookie_domain, 0);
?>
<HTM>
<HEAD>
</HEAD>
<BODY>
<h1>cookie mmmmmmm</h1>
</BODY>
</HTML>

View 3 Replies View Related

Curl Code Warning: Curl_setopt() Expects Parameter 1 To Be Resource

May 25, 2011

I am getting this error while working on curl code Warning: curl_setopt() expects parameter 1 to be resource, string given in C:xampphtdocs

[code]....

View 4 Replies View Related

Password Changer - Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource

Sep 21, 2010

I am using simple self-created php script to change password to my wow server's website.

Here's the error:

"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:wampwwwpassword.php on line 24"

Password script:

if (isset($_POST['submit'])){
change_db($realm_DB);
$loginusername = "$acc_name";

[code].....

View 3 Replies View Related

Updating Database : Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource?

May 15, 2011

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Sahansevena_ver1\admin\profile\updAdmiInfo.php on line 49

i got this error.here is the coding

<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.[code].....

View 1 Replies View Related

Error - Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource, Boolean Given In

Dec 2, 2009

Seems to be outputting an error, I have no other problems with my querys formatted like this,

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocsincludesconfig.php on line 163
$connection=mysql_connect($db_host,$db_user,$db_pass);
mysql_select_db($db_name, $connection);
function Search($x) { // Search Ringtones Functions
$s=$_POST['s'];

[Code]...

View 4 Replies View Related

Error - Warning: Mysql_fetch_assoc() Expects Parameter 1 To Be Resource, Boolean Given

Feb 15, 2011

I get a php error...Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given

$sql = "SELECT
`pm_messages`.`conversation_id`
FROM `pm_messages`
GROUP BY `pm_messages`.`conversation_id`
WHERE `pm_messages`.`conversation_id` = ${conversation['id']}";
$result = mysql_query($sql);
$replies = mysql_fetch_assoc($result);

View 8 Replies View Related

Warning: Mysqli_num_rows() Expects Parameter 1 To Be Mysqli_result, Boolean Give

Apr 20, 2010

When I run the program above I get this message

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:Program FilesxampphtdocsentrepreneursSign_Up.php on line 27

<?php
require_once('connectvars.php');
// Connect to the database
$dbc = mysqli_connect('localhost', 'root', 'zambullo', 'entrepreneurial groups')
or die ('Error connecting to MySQL server');

[Code]....

View 2 Replies View Related

Warning: Substr() Expects Parameter 1 To Be String, Array Given In .../checkifimage.php On Line 22

Jun 29, 2011

I'm trying to use the second function in this post to check if a URL is an image in PHP. I got it to work on my home computer running WAMP, but when I upload it to my webhost it gives me two errors:

Warning: substr() expects parameter 1 to be string, array given in .../checkifimage.php on line 22
Warning: substr() expects parameter 1 to be string, resource given in .../checkifimage.php on line 22

View 1 Replies View Related

Get The Data From Two Table - Warning: Mysql_fetch_array() Expects Parameter 1 To Be Resource Boolean

Dec 1, 2010

basically displaying data from two table. i get error massage like... Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:wampwwwdis_take.php on line 91

<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("uni", $con);

[Code]....

View 7 Replies View Related

Register System Error, Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource?

Nov 27, 2010

I am following this video:http://[url]....I don't understand everything i have written is right...?This is my code:

PHP Code:
<?php
$username =$_POST["username"];
$password =$_POST["password"];[code

Error:

Code: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocslogin.php on line 13

View 1 Replies View Related

Updating Data Into The Database - Warning: Mysql_num_rows() Expects Parameter 1 To Be Resource, Boolean

May 15, 2011

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocsSahansevena_ver1adminprofileupdAdmiInfo.php on line 49

i got this error. here is the coding

Code: [Select]<?php
/* 
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$dbuser="root";
$dbpswd="****";
$dbserver="localhost";
$nwuser=$_POST['username'];
[Code]....

View 2 Replies View Related

Warning: File_get_contents

Jul 13, 2005

I have a problem with a PHP page named search.php, this file will get content from another Web site page.

I get this error:

Warning: file_get_contents(http://apps5.site.com/apps/domainarticle/article.cgi?cid=M45&&hl=en&ac=p&q=Design): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/bestlo/public_html/my-mesm/search.php on line 9

View 1 Replies View Related

ADVERTISEMENT