Sunday, June 1, 2008

i try to go to frugooscape.net wen it says somethin about mySQL

im supposed to flush /var/www/frugooscape/index.php on line 9 with mysqladmin flush-hosts

how do i do that

thank you

Hello friends- I need Help. I have Installed Apache its working fine..but I dont know how to install PHP and MySQL. and How to write Script in...please help me to get this answer...
thanks in advace..
Cheers-
Neel
I have little knowledge. but to test it i need to install php and SQL. I m planning to develop dymamic quote web page..
please suggest best way to go

i have xampp downloaded and installed on my pc and phpmyadmin and mysql seems to work. i have problems with sripts copying to the drive a have used for site tho.xampp is on this drive and database works so i know xampp had access to drive but why wont the script copy or make directories on this drive. i had this script on my site before i put everything on my pc and started hosting it on pc. can anyone point me in right direction?
nothing has been change in xampp i moved site to d:/xampp/htdocs and still nothing the site begins at htdocs thats were index.php is located all i did was change the origanal index.php and index.html to index1 so that new index page would be main page of site. it maybe in script itself i mite have to change things- rest seem to work right. the scipt has
mkdir($basePath . $pname);
is this correct?

Hello:

i wish to create the following form:

<html>

<body>

<form action="phpscript.php" method="post">
<input type="button" value="get data">
</form>

</body>

</html>

then connect it to the following php/mysql select statement:

$query = "select firstName- lastName from myTable";

- how can i go by doing that? that is- when i press the "get data" button that query is executed.

thanks so much.
Seco thank you very much for helping me. the results would appear in a table- right? now do we not need a $_POST[ ] kind of thing to link to the submit button?
hi seco- please ignore the above. i have just tested it and worked fine- YOU ARE THE MAN. there is only one little thing: the records are not lined up: for example- the second row is also on the first row. any solution?? thanks so much.

I have a DB working where imgs are stored in the DB and do not want that but can t get it to work with pulling the filename. Are in 2 different files..

<?php
header("Content-type: image/jpeg");
$prodid = $_GET[ id ];
$con = mysql_connect("localhost"- "test"- "test") or die( );
mysql_select_db("store"- $con);
$query = "SELECT image from products WHERE prodid = $prodid";
$result = mysql_query($query);
$row = mysql_fetch_array($result- MYSQL_ASSOC);
$picture = $row[ prodid ];
echo $picture;
?>

while($row=mysql_fetch_array($result- MYSQL_ASSOC))
{
$prodid = $row[ prodid ];
$description = $row[ description ];
$image = $row[ pic ];
echo "<tr><td>$prodid</td><td>$description</td>\n";
echo "<td><img src=\"showimage.php?id=$prodid\" width=\"80\" height=\"60\"></td></tr>\n";
echo "<td><img src=\"images/ $pic \" width=\"80\" height=\"60\"></td></tr>\n";
}

1st img tag works w/old way
Removed and still not working- any other thoughts?

No comments: