User Profile
Collapse
-
did you save it with .php extentsion? -
-
its only a photo site? so nothing else? you might want to upload the images and save the url to the image in the mysql db.. ive got a script for this,..
Hope to hear from you
Greets, BeRtjhLeave a comment:
-
-
you might want to useCode:OnChange="location.php"
[HTML]
<form id="form" name="form" method="post" action = "" OnChange="locat ion.php">
<select name="type">
<option selected="selec ted">Select Product Type</option>
<option value="desktop" >Desktop</option>
...Leave a comment:
-
-
[PHP]if (is_file($url)) {
//dont do this
}else{
//do this
}[/PHP]
Hope this helped.
Grtz bertjhLeave a comment:
-
-
[PHP]$query = "SELECT photo FROM table_name";
$result = mysql_query($qu ery);
while(list($pho to) = mysql_fetch_row ($result)){
if (is_string($pho to)){
$insert = "; $photo_name";
$query2 = "UPDATE table_name SET photo='".$inser t."'";
mysql_query($qu ery2);
}else{
$insert = "$photo_nam e";
$query3 = "UPDATE table_name SET photo='".$inser t."'";...Leave a comment:
-
i think he means GET..
index.php?name= value
in the page do the following:
echo $_GET["name"];
hope this was useful,
grtz bertjhLeave a comment:
-
Make a extra column with the name 'views'
whenever a video is clicked, just do a mysql_query:
[PHP]
$query = "SELECT view FROM table_name WHERE id='".$_GET["id"]."'";
$result = mysql_query($qu ery);
while(list($vie w) = mysql_fetch_row ($result)){
//you now have the current count of views, now add one
$count = $view + 1;
//now insert the count into the...Leave a comment:
-
When you post a form, it will be sent to a webpage,.. so the script should be like:
[HTML]
<FORM ACTION="mycontr oller.php"> //could be current page with #
<INPUT TYPE="text" NAME="value" />
</FORM>
[/HTML]
Hope this helped,
Grtz BertjhLeave a comment:
No activity results to display
Show More
Leave a comment: