-
Posts
78 -
Joined
-
Last visited
Never
Everything posted by php.ajax.coder
-
You need to use Sessions check it out at php.net
-
Try this 'SCRIPT_FILENAME' if not you should be able to find it here -> http://uk3.php.net/manual/en/reserved.variables.server.php
-
Would highly recommend wordpress because of the free plugins and designs
-
Try using a cms like wordpress it's free add has lots of cool features http://wordpress.org/
-
Try using a cms like wordpress it's free add does this and more http://wordpress.org/
-
you don't need the quote makes around the db name in the insert query INSERT INTO sample_db
-
php/LDAP installation
php.ajax.coder replied to potato_chip's topic in PHP Installation and Configuration
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 -
You have to request the file through the web browser http://localhost/file.php
-
Cordinating PHP with MySQL
php.ajax.coder replied to Brian W's topic in PHP Installation and Configuration
I found a good tutorial to do this http://www.tanguay.info/web/tutorial.php?idCode=phpDevelopment§ionIdCode=installApache -
Localhost on the web?
php.ajax.coder replied to DeanWhitehouse's topic in PHP Installation and Configuration
Try using a tool like noIP -
Try looking at this http://www.w3schools.com/php/php_mysql_create.asp
-
Have a look at this http://uk.php.net/manual/en/function.mysql-fetch-row.php
-
[SOLVED] pulling values from two different tables
php.ajax.coder replied to bradkenyon's topic in PHP Coding Help
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
-
File downloaded to server but error 404.jsp?
php.ajax.coder replied to siddscool19's topic in PHP Coding Help
Try looking at this post http://www.phpfreaks.com/forums/index.php/topic,95433.0.html -
How to generate a series of short strings?
php.ajax.coder replied to calande's topic in PHP Coding Help
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; ?> -
Try looking at this http://uk2.php.net/manual/en/function.mysql-fetch-row.php
-
make it clear what you want to do
-
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' "; ?>
-
php mail sent but not delivered to recepients
php.ajax.coder replied to Sparkle_y's topic in PHP Coding Help
try phpmailer