Sponsored Content
Full Discussion: PHP: problem with index.php
Top Forums Shell Programming and Scripting PHP: problem with index.php Post 37947 by oombera on Wednesday 2nd of July 2003 04:30:31 PM
Old 07-02-2003
Quote:
Originally posted by perleo
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\phpdev\www\dev\compulearn\in work\main.php on line 18
Access denied for user: 'content@127.0.0.1' (Using password: NO)
Okay, so that wasn't incredibly more helpful. Smilie

I'm not sure what else to suggest - I don't know php so this is beyond me; maybe someone else here knows php...
 

7 More Discussions You Might Find Interesting

1. Linux

PHP problem

Hi frnds I installed phpmyadmin for OTRS but when ever i tried to open the phpMyAdmin-2.6.2/index.php page i m getting the following error " urldecode the db name if (isset($lightm_db)) { // no longer urlencoded because of html entities in the db name // $db =... (8 Replies)
Discussion started by: naik_mit
8 Replies

2. Filesystems, Disks and Memory

why the inode index of file system starts from 1 unlike array index(0)

why do inode indices starts from 1 unlike array indexes which starts from 0 its a question from "the design of unix operating system" of maurice j bach id be glad if i get to know the answer quickly :) (0 Replies)
Discussion started by: sairamdevotee
0 Replies

3. Shell Programming and Scripting

Index problem with awk

Hello, I have this code: #!/bin/sh awk -v val="........." 'BEGIN{FS=OFS=" ";c=0} NR==FNR&&d==0{a=$0; c++;next} FNR==(NR-c){b=val;next} {if(1234 in a){print "okay"}} {print $1}' listi fpr.11 grn that is working (awk find the value in the table "a" and return "okay" followed by 1234) ... (2 Replies)
Discussion started by: jolecanard
2 Replies

4. Web Development

I can't open my index.php page after insert php code

Hello guys, Does anyone can help me? I've just made my simple index.php without any code, but after insert session code to check if any user is authenticated, my index.php doesn't work anymore. Any fresh eyes could help me to see what and where the code is wrong? <? if... (6 Replies)
Discussion started by: metalfreakbr
6 Replies

5. UNIX for Advanced & Expert Users

Running multiple php scripts into one php only, cron mail alert problem...

hi, while separated they produce the usual mail alert and i can see the output... if i write into the php script: <?php system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script1.php'); system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script2.php'); system('php -f... (0 Replies)
Discussion started by: 7stars
0 Replies

6. Red Hat

Update php 4.3 RPM to php 5.3.3 php

Dear All, My redhat version is: # cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4) # # uname -a Linux cotapplication3.cot.com 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux # I want to update my php from: # php... (1 Reply)
Discussion started by: monojcool
1 Replies

7. Shell Programming and Scripting

Running php index.php as shell in webpage

so i have a bit of a unique situation. i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code. when run from the command... (8 Replies)
Discussion started by: SkySmart
8 Replies
MYSQL_DATA_SEEK(3)							 1							MYSQL_DATA_SEEK(3)

mysql_data_seek - Move internal result pointer

SYNOPSIS
Warning This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include: omysqli_data_seek(3) o PDO::FETCH_ORI_ABS bool mysql_data_seek (resource $result, int $row_number) DESCRIPTION
mysql_data_seek(3) moves the internal row pointer of the MySQL result associated with the specified result identifier to point to the spec- ified row number. The next call to a MySQL fetch function, such as mysql_fetch_assoc(3), would return that row. $row_number starts at 0. The $row_number should be a value in the range from 0 to mysql_num_rows(3) - 1. However if the result set is empty (mysql_num_rows(3) == 0), a seek to 0 will fail with a E_WARNING and mysql_data_seek(3) will return FALSE. o $ result -The result resource that is being evaluated. This result comes from a call to mysql_query(3). o $row_number - The desired row number of the new result pointer. Returns TRUE on success or FALSE on failure. Example #1 mysql_data_seek(3) example <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db('sample_db'); if (!$db_selected) { die('Could not select database: ' . mysql_error()); } $query = 'SELECT last_name, first_name FROM friends'; $result = mysql_query($query); if (!$result) { die('Query failed: ' . mysql_error()); } /* fetch rows in reverse order */ for ($i = mysql_num_rows($result) - 1; $i >= 0; $i--) { if (!mysql_data_seek($result, $i)) { echo "Cannot seek to row $i: " . mysql_error() . " "; continue; } if (!($row = mysql_fetch_assoc($result))) { continue; } echo $row['last_name'] . ' ' . $row['first_name'] . "<br /> "; } mysql_free_result($result); ?> Note The function mysql_data_seek(3) can be used in conjunction only with mysql_query(3), not with mysql_unbuffered_query(3). mysql_query(3), mysql_num_rows(3), mysql_fetch_row(3), mysql_fetch_assoc(3), mysql_fetch_array(3), mysql_fetch_object(3). PHP Documentation Group MYSQL_DATA_SEEK(3)
All times are GMT -4. The time now is 12:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy