-
Posts
78 -
Joined
-
Last visited
Never
Posts posted by php.ajax.coder
-
-
Try this 'SCRIPT_FILENAME'
if not you should be able to find it here ->
-
Would highly recommend wordpress because of the free plugins and designs
-
-
-
try removing '$conn =' and add a closing } to the foreach statement
on the line
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
-
you don't need the quote makes around the db name in the insert query
INSERT INTO sample_db
-
Try using
xampp
http://www.apachefriends.org/en/xampp-windows.html
or
EasyPhp
http://www.easyphp.org/index.php
both open source and include PHP Apache Mysql plus others
-
-
I found a good tutorial to do this
http://www.tanguay.info/web/tutorial.php?idCode=phpDevelopment§ionIdCode=installApache
-
Try using a tool like noIP
-
-
-
This is more of an SQL question post it there and you might get you answer
-
I would have three tables in the database
1. Users - UserID, IP
2. Posts/Announcements PostID etc
3. viewed - UserID and PostID
Add each new IP to the users table
and then add an entry to the viewed table when the post is read.
Then check for entry to see if viewed
-
-
Try this Script
<?PHP $chars = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N", "O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b", "c","d","e","f","g","h","i","j","k","l","m","n","o","p", "q","r","s","t","u","v","w","x","y","z", "1","2","3","4","5","6","7","8","9","0"); //Lenght of String $string_length = 6; //Result String $result = ""; //Array Length $count = count($strs) - 1; for ($i = 0; $i <= $string_length; $i++){ $rand = rand(0, $count); $result = $result . $strs[$rand]; } echo $result; ?>
-
-
make it clear what you want to do
-
You could use a timestamp with a random number added to the end e.g.
<?Php echo time() + rand(0,9); ?>
-
Try Something like this
<?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $result = mysql_query("SELECT * FROM person"); while($row = mysql_fetch_array($result)) { echo $row['FirstName'] . " " . $row['LastName']; echo "<br />"; } mysql_close($con); ?>
-
Try this script
<script type="text/Javascript"> var xmlHttp; try{ // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); }catch (e){ // Internet Explorer try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }catch (e){ try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }catch (e){ window.location="noajax.html"; return false; } } } function pageRequest(page){ xmlhttp.open('GET', page); xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4){ document.getElementById('content').innerHTML=xmlHttp.responseText; }else{ document.getElementById('content').innerHTML='<center><img src="images/loading.gif" alt="Loading" style="border:0px;"/><br />Loading, Please Wait...</center>'; } } xmlhttp.send(null); } </script>
Just use the GET method by adding the value to the page name
EXAMPLE
news.php?value=4
<a href='javascript:pageRequest("news.php?value=4")'>
From the file use
<?Php
echo $_GET['value'];
?>
to get the value
-
Just use the GET method by adding the value to the page name
e.g. news.php?value=4
From the file use
<?Php
echo $_GET['value'];
?>
to get the value
-
Try
<?PHP
$category = $_GET['category'];
$sql = "SELECT * FROM products where category= '$category' ";
?>
-
try phpmailer
[SOLVED] Question about login form......
in MySQL Help
Posted
You need to use Sessions
check it out at php.net