need help with confirm to delete page
Moderator: General Moderators
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
?
?
Only have the following code on your php page:
Do you still get errors now?
(As a side note, please be patient and don't "bump" up your posts.)
Code: Select all
<?php
$dbname = "database";
$tblname = "items";
$linkid = mysql_connect("localhost", "username", "password") or die(mysql_error());
$db = mysql_select_db($dbname, $linkid) or die(mysql_error());
$query = mysql_query("SELECT * FROM items WHERE itemId='$itemId'") or die(mysql_error());
$num=mysql_num_rows($query) or die(mysql_error());
echo $num;
?>(As a side note, please be patient and don't "bump" up your posts.)
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
-
mikewooten
- Forum Contributor
- Posts: 169
- Joined: Wed Feb 11, 2004 12:13 pm
- Location: Duluth, Georgia
- Contact:
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Something to try...
Do you have access to phpMyadmin? If so, try running your query using the phpMyadmin SQL window. That may give you an error message that might help direct you a little better. From time to time I get errors like that. When $result is not a valid argument it could be that the query you are running is not handling itself right in mySql.i used the code that you posted, and i had only that code on a php page, and when i viewed the file, there were no errors, and there was no output either, the page came up blank., i don't know why the page came up blank? i think there should of been some output that displayed on the page.?
thanks
Just a thought.