- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
116 Posted Topics
Is there anyone with the knowledge on how to Show online users with php?? i have seen in many sites,now i need someone who can explain to do it. (if there are users who are online to be displayed) Please explain how to get started)))) | |
I want to create a single profile page for members. The way I want it is when any user logs in he will automatically be taken to that single profile page. I am wondering if there is a way I can make the code IN PHP extract only the profile … | |
Re: see this article in sitepoint [url]http://www.sitepoint.com/article/php-gallery-system-minutes/[/url] below is the link for forum where people discussed the article [url]http://www.sitepoint.com/forums/showthread.php?t=122279[/url] i hope it can help. | |
![]() | |
Is there anyone who can explain to me how can i store image in a folder to the server then the path to mysql. i dont know even how to get started,i will appreciate for your help. Or links where i can find the tutorials. | |
i just started learning SEO and and i want to know if the are free tools to see the position(ranking ) of my website... any suggestion will be appreciated. | |
basically i am checking if i am in the same url as the page and i want to refresh the page only once,but whenever i try it keep refreshing infinitively place='/development/petersburg'; var pathname=window.location.pathname; if((pathname==place)){ window.location.reload();//reload the page } help!! how can i limit this page to refresh only once if … | |
Hey guys, i need Your suggestions(help). i created a social network website not long time ago,now i want to put the News feed in the home page like the Facebook one. That is if a friend posts status,add friends,uploads photos,video,join groups,Commented something etc to appear in the home page. Please … | |
Re: // update product quantity $sql = "UPDATE tbl_cart SET ct_qty = '$newQty' WHERE ct_id ='$cartId[$i]'"; try that)) | |
Helloo Guys...i have worked with PHP for almost two years and my Editor was Notepad++ then three weeks ago shifted and started using PHPEDIT )) BUT FOR I AM LOOKING TO KNOW WHICH PHP FRAMEWORK IS BETTER,BECAUSE I WANT TO START WORKING ON IT. PLEASE I NEED YOUR SUGGESTIONS. | |
WELL GUYS,I HAVE A NAVIGATION IN MY WEBSITE WHICH IS SIMPLY A <UL> LIST. ALMOST EVERYTHING WORKS WELL,EXCEPT WHEN I WANT TO SHOW THE CURRENT PAGE WHICH IS BEING VIEWED,...I HAVE SUCCESSFULLY IMPEMENTED THE FUNCTIONALITY IN PHP WHICH CAN DETECTED THE PAGE BEING VIEWED BUT THE PROBLEM IS CSS WHERE … ![]() | |
Re: is it Giving any Erro? what if u try this [code=php] while ($row = mysql_fetch_array($query)) { $id=$row['id']; echo "row= $id "; } [/code] | |
i have table users in my database))the host of my website is in US and i am currently leaving in Russia. so when i display date/time in web page it shows time as if i am in US also my clients in different countries they are experiencing the same problem.\ … | |
Guys i`m trying to archive something like facebook,twitter wall Display. I have a friend table,inside it has id,friendid and userid. also got feeds table which contains id,action,sender_id,statusid,status,date. What i have succeeded to do is if You are logged in you can see all the updates from your friends...As the code … | |
Re: it may be something like this...i havent tasted the code. [CODE] /*Database connection*/ /*below our query*/ $query= mysql_query("SELECT name FROM characters WHERE online ='1' ORDER BY name") OR die(mysql_error()); $count=mysql_num_rows($query); /*check if there is anyone online*/ if($count>0){ $msg="There are $count Members Online<br/>"; }else{ $msg="There are No members online<br/>"; } echo"$msg<br/>";/* … | |
Guys i`m trying to archive something like facebook,twitter wall Display. I have a friend table,inside it has id,friendid and userid. also got feeds table which contains id,action,sender_id,statusid,status,date. What i have succeeded to do is if You are logged in you can see all the updates from your friends...As the code … | |
Re: And here is the tutorial for login. [url]http://www.phpeasystep.com/phptu/6.html[/url] @Remember Google is your friend. | |
Re: Here in Daniweb people help if you show some efforts. Show what you have done and people will do the rest. | |
Re: This one may help [url]http://openinviter.com/[/url] | |
I need to display part of text from mysql: for exapmle i`m having 50characters and then i just want to display just part of it like 20characters in the first page and the remain including the first as a link to another page. That when someone clicks the link the … | |
Re: for me this is how i think the Your login system should be. [CODE] $username = $_POST['username']; $password = $_POST['password']; if(($username)&&($password)) { $conect = mysql_connect("localhost","danvrajmas","nokia3110")or die("Error"); mysql_select_db("user")or die("Error"); $query = mysql_query("SELECT * FROM user WHERE username='$username' AND password='$password'")or die("Error"); $numrows = mysql_num_rows($query); if ($numrows==1) { $row = mysql_fetch_assoc($query); $dbusername = … | |
Re: As BrianDickson said session_start() should be the first line. | |
Re: @nonshatter i think it should be like this from ur codes [code=php] if (!$counter) { $counter = 1; $sql1= mysql_query("UPDATE memberst SET counter='$counter' WHERE id='$id'"); } else { $addcounter=$counter+1; $sql1=mysql_query("UPDATE memberst SET counter='$addcounter' WHERE id='$id'"); } [/code] or [code=php] if (empty($counter)) { $counter = 1; $sql1= mysql_query("UPDATE memberst SET counter='$counter' … | |
Re: WELL! WITHOUT CHANGING YOUR CODE as LethargicCoder, did some little changes(he will be displaying rows inside table instead of tables as ur code) I JUST CHECKED THE LINE 29,AND PUT SOMETHING LIKE THIS <?PHP. [code=php] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // … ![]() | |
Re: first u need to have a registration system,create mysql table to store all the user informations. Then you will be able to retrieve the user info. simply like this [code=php] include"config.php";//connect to db $query=mysql_query("SELECT *FROM users WHERE email='$email' AND pass='$password'"); $count=mysql_num_rows($query); if($count==1){ while($row=mysql_fetch_array($query)){ //fetch all the user infos //Display infos … | |
i`m having this problem after whenever include or require is Used. help please i dont know how to solve this. Fatal error: Cannot redeclare validateemail() (previously declared in C:\wamp\www\kislat\functions\functions.php:3) in C:\wamp\www\kislat\functions\functions.php on line 26 [code=php] <?php session_start(); require "config.php"; $user=$_SESSION['user']; $id=$_SESSION['id']; if(!session_is_registered('user')){ header("Location: checklogin.php"); exit; } define('INCLUDE_CHECK',1); require"functions/functions.php"; require"includes/functions.php"; //$user=$_POST['user']; … | |
i have this weird problem and i dont know how to make it work. the problem appears after i consider the OR statement.without or statement the first part is working . So idont how to use this statement in mysql. i hope someone can help me. Down is my script. … | |
i have a comment system of which member can insert smileys which commenting to something )))that works well...Now i want the smileys to be desplayed in a small popup window like the one i have attached in screenshot..and dont know how to make it possible... i just believe that it … | |
i`m using the jquery library in ma web....so i`m wondering which method of calling the library is more recomended. i mean to download the libary and call it directly from the server or to link to googleapis???? Any suggestions will be appreciated. <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> OR <script … | |
hi everyone! i`m trying to display a friend of a friend from a friend table,but i dont know how to do it. i have a table called friends,which has id,friendid and userid fields. Now i want if a member loggin, to be displayed a list of friends of his friends … | |
I HOPE YOU ARE ALL FINE) In my web i`m using image magic or GD library to resize photos when someone upload them to the server. This makes me create alot of thumbnails for a single photo. So i`m asking if their is any function in PHP which can resize … | |
Re: Also check this one,is good one)) [url]http://www.9lessons.info/2009/06/autosuggestion-with-jquery-ajax-and-php.html[/url] | |
Re: check this one!its free most of popular website use it. [url]http://openinviter.com/[/url] | |
Re: consult ur sever!may be they are not allowing more 8mb. | |
i have a web in which after member login, is able to publish blog post and only logged in members can comment. Now my problem comes in notification. 1.I need after someone comment then to send notification to the owner of the post. 2.Also if other members commented on the … | |
Re: What do u need??explain your question and people will help you. | |
HI everyone!!i have this got this function, and i dont know what is going wrong here. in the table, the field for date i saved as timestamp, meaning time is automatically inserted when the record inters. [code=php] function time_stamp($session_time) { $time_difference = time() - $session_time ; $seconds = $time_difference ; … | |
Re: @Aamit is Right!dont save ur images in dB,instead upload them into the sever and their links to db. Here is one Good article in Sitepoint [url]http://articles.sitepoint.com/article/php-gallery-system-minutes[/url] and the supporting forum [url]http://www.sitepoint.com/forums/showthread.php?t=122279[/url] it helped me a lot. | |
I`M USING THE PHP MAIL FUNCTION TO SEND EMAILS TO MEMBERS IN MY SITE. [CODE=PHP] sendto="xxxxxxx@yahoo.com"; $to=$sendto; $from="From:mysite@mysite.com \r\n"; $subject="$fullname contacted mysite"; $content="$message \r\n his/her email address is $email"; if($content){ mail($to, $subject, $content,$from); echo"<font color=green>Your email was sent successfuly to adminstration of mysite.<br/><a href=index.php>Continue to the site</a></font>"; } [/CODE] i … | |
If any one have a script which can grab the yahoo,hotmail and gmail address book,i will appreciate to have it or Any suggestion on how to make me succeed in this. I wantto enable member in my site to import their address book directly from the site. Thankx. | |
I have worked in PHP for 1year and a half,Now i want to develop website using the CMS,and some people suggested it would be better to start with Joomla...i have installed it in my comp,but i reall dont know how to get started. So if there is anyone who knows … | |
I never worked with video at all. Just asking how is it possible to enable members in my site to upload videos. I have seen in some site example Tagged.com,there videos got Youtube player)))how is possible to play tube videos in my website. Its a Social Network web | |
i want to know,how is it possible to check automatic all the checkboxes generated in php while page loading. i mean if the are for example 20records then all to be checked. | |
I`ve finished my website,its a social netwrk web in PHP. Now before i lunch it,i would like to know what are the precautions i should take to protect it from hackers. please if any one has idea on what i should do,to protect mysql,and my site as a whole.i will … | |
When i type the text myself and click send it Goes to database but when i copy from anyweb and paste in the Text box so as To send. The text is Not Going To Database...And suprisingly its Not giving any Error.Help please,i dont know whats wrong. below is my … | |
Re: Try using serialize function.Check it here)) [url]http://ru2.php.net/serialize[/url] | |
i got this script,in one of the very old artciles in sitepoint. everything is ok!except that PNG and BMP images are not resized. giving this errors [code=php] Warning: imagecreatefromwbmp() [function.imagecreatefromwbmp]: 'thumb/tb_128448486.bmp' is not a valid WBMP file in C:\wamp\www\wallsnap.php on line 97 Warning: imagewbmp(): supplied argument is not a valid … | |
Re: it should be like this [code=php] $num=mysql_num_rows($result); [/code] also whenever open php anywere it should be [code=php]<?php ?>[/code] and not like here [code=php] <input type="hidden" name="ud_id" value="<? echo $id; ?>"> [/code] |
The End.