No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
try this code: <?php mysql_connect("localhost","root","") or die("Failure to communicate"); mysql_select_db("mydb") or die("Could not connect to Database"); if(isset ($_POST)) { if(empty ($_POST)) { echo "Enter User Name"; } else { $query="INSERT INTO tbl1 SET fieldname = '" .$_POST. "'"; mysql_query($query) or die("can't execute query"); echo "query finished"; } } ?> <form …
definitely base on your title you cant use mysql to move your file in the directory. but in php its posible, like ryan was posted.. and the use of mysql there is to save other information in the database like Description, ImageName, Id, ForeignID etc..
you can use move_uploaded_file
you are using code generated by dreamweaver, i suggest to create our own log in form since code generated by dreamweaver is not flexible. try to experiment the code posted by sikka_varun
are you using php? try to use a counter in fetching the data then echo the counter, bcoz if your using the ID(autoincrement) of mysql everytime you delete you also delete(part of deletion) that number. and if not, just in mysql idont know either =p
the reason why the query did not execute bcoz it does not read the statement in your query try this query $query = mysql_query("SELECT * FROM topics WHERE '" .$_POST['metode']. "' LIKE '%".$_POST['search']."%' LIMIT 0, 50") or die("error"); and for easy tracking of error always put die
Files\wamp\www\working3\admincp\pages\mainconfig.php on line 11 it usually happen when you have an error in your if statement if () { } elseif() { } else { }
try this one; $result = mysql_query("SELECT * FROM topics WHERE Title LIKE '%".$search."%'");
<? mysql_connect("localhost","root", ""); mysql_select_db("dbname"); $query = "SELECT Pics from tblPic"; $result = mysql_query($query); echo '<table>'; while ($r=mysql_fetch_array($result)) { $pic = $r; echo '<td><img src="'.$pic.'" width="32" height="32"></td>'; } echo '</table>'; ?>
The End.
flagbarton