473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Undefined variable: var error

Notice: Undefined variable: var in C:\xampp1\phpMyAdmin\friends.php on line 8

Warning: mysql_fetch_array() expects parameter 1 to be resource, integer given in C:\xampp1\phpMyAdmin\friends.php on line 9



Expand|Select|Wrap|Line Numbers
  1. 1.<?php
  2. 2.    if(!isset($_SESSION)) 
  3. 3.    { 
  4. 4.        session_start(); 
  5. 5.    } 
  6. 6. include("profilesql.php");
  7. 7.$result = mysql_query("SELECT * FROM addfriends where meid='$_SESSION[stuid]' ");
  8. 8.while($row = mysql_fetch_array($result))
  9. 9.  {
  10. 10. $uid1[$i] = $row["friendid"];
  11. 11.$i++;
  12. 12.  }
  13. 13.
  14. 14. $acrec1 = mysql_query("SELECT * FROM addfriends WHERE userid='$uid1[1]'");
  15. 15.
  16. 16. while($row = mysql_fetch_array($acrec2))
  17. 17.  {
  18. 18.    $img1[0]=  $row["image"];
  19. 19.  }
Attached Images
File Type: jpg error.jpg (39.7 KB, 152 views)
May 22 '14 #1
1 1359
Dormilich
8,658 Expert Mod 8TB
the error messages don’t match your shown code and I deem it strange to have your own files in the phpMyAdmin directory.
May 26 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Dan Finn | last post by:
OpenBSD 3.2 Apache 1.3.26 PHP 4.3.4 PHP-Nuke 6.9 getting these in the apache error log: Sun Nov 16 20:20:16 2003] PHP Notice: Undefined variable: HTTP_USER_AGENT in...
3
by: Jason | last post by:
hello, i am new to PHP, so go easy. I am using the examples in the book: PHP: Your Visual Blueprint For Creating Open Source, Server Side Content In the section where they talk about...
3
by: Martin | last post by:
I'm getting PHP Notice: Undefined variable: db_list in C:\mypage.php on line xx when I use the following code: <?php $conn = @mysql_connect( "localhost", "myname", "mypassword" ) or die(...
10
by: Chuck | last post by:
Hi! Any ideas as to how I can get ride of the script error undefined variable "Exp_Month"? I am trying to get this drop down list to default to the current month as opposed to 01. Thank...
4
by: Chris Beall | last post by:
If you want your code to be bulletproof, do you have to explicitly check for the existence of any possibly-undefined variable? Example: window.outerHeight is defined by some browsers, but not...
1
by: rizk | last post by:
I'm getting the following error when i load my page 'bak_up' is undefeined. Any body can help!
6
by: Jeremy Felt | last post by:
Newbie here. I'm sure I'm missing something EXTREMELY simple, but an hour of searching has led to nothing. I'm playing around with ajax and trying to pass a variable to a function. If I do:...
2
by: Bob Bruyn | last post by:
I've recently installed Apache 2 and php 5.2 on my WIndows XP machine. Everything is up and running. I'm passing some vars via the URL. It works fine online:...
1
by: bob johnson | last post by:
Notice: Undefined variable: db_host in C:\wamp\www\cbmall\index.php on line 7 Notice: Undefined variable: db_user in C:\wamp\www\cbmall\index.php on line 7 Notice: Undefined variable: db_pass...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.