39,316 Topics

Member Avatar for
Member Avatar for Niloofar24

hello me again:) There is a page in my cms that users can see my posts there and i want to limit the number of posts that must be shown to users in each page and paginate. This is my code: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = …

Member Avatar for Niloofar24
0
587
Member Avatar for ravi142

Hello I getting current user friends list by php api of facebook. can you suggest me what is missing.[LINK](https://github.com/facebook/facebook-php-sdk) <?php require 'facebook.php'; $facebook = new Facebook(array( 'appId' => 'removed', 'secret' => 'removed', )); if($facebook->getUser() == 0){ $login = $facebook->getLoginUrl(); echo "<a href= '$login'>Login with Facebook</a>"; } else{ $user_profile = $facebook->api('/me'); …

Member Avatar for Itirk
0
2K
Member Avatar for Manoj_16

Using the below code i am getting the data from database(mysql) and displaying it in the textbox that is in the form of table(textbox inside the table data). Now I can edit the data(td) on browser(table) but the problem is updating it to database upon changing( onChange option ) data …

Member Avatar for lps
0
3K
Member Avatar for bolfescu

Hy, i'm having a problem with php excell, i have in my db a row that its have a full url, when i export it its not make it HYperlink, i've see the docs on the internet but unft its for only one cell not for entire column this is …

Member Avatar for broj1
0
626
Member Avatar for dennishall

Hi: I've been banging my head over this all day... I'm attempting to create my first WordPress theme and have hit a wall trying to work with the "the_post_thumbnail()" function. In my theme, I'm using panels to navigate the site (rather than a top menu) and have them setup so …

Member Avatar for lps
0
256
Member Avatar for punji

hello PHP tycoons, i beg for help in giving me a way forward to write php script which will solve the problem i'm facing now. currently i'm developing basic student information system but in php knowledge i'm not that good, thus why i'm asking for help.so what i want to …

Member Avatar for lps
0
325
Member Avatar for Niloofar24

Hello. i'm creating a simple CMS for myself. There is a register form, i can register as the admin of the cms and then with login form, i can enter into admin area to write a new post or edit or delete posts. But there is a problem. I typed …

Member Avatar for Niloofar24
0
1K
Member Avatar for 88dbsakthi

I am trying to decrypt this PHP file(See the pastpin link given below) for the past one week using many tools around web but nothing worked. After then i found out the ,even i am acessing the tools which is really not build for the particular decryption type.Automated engine fails,Human …

Member Avatar for KaSHihaXor
0
519
Member Avatar for SoMa_2

I'm trying to create a webpage to help teacher determine CLO and PLO for exam questions First user will type the keyword in text box and select the chapter CLO() function will start the AJAX the result should be a CLO Number in CLO column and PLO options in PLO …

Member Avatar for asgs
0
357
Member Avatar for phoenix254

Somebody can help me, why isnt working this code ? <form action="" method="post"> Firstname:<input type="text" id ="changefirstnamebox" name="firstname " maxlength="20"> Lastname: <input type="text" id ="changefirstnamebox" name="lastname" maxlength="20"> <center> <input type="submit" id ="changeusernamebutton" name="changeusernamebutton" value="Change"> </center> </form> <?php $con=mysqli_connect("localhost","root","","user_registration"); if(isset($_POST["changeusernamebutton"])){ echo "working"; if(!empty($_POST['firstname']) && !empty ($_POST['lastname'])) { $newfirstname=mysqli_real_escape_string($con,$_POST['firstname']); $newlastname=mysqli_real_escape_string($con,$_POST['lastname']); echo $newfirstname;echo …

Member Avatar for cereal
0
100
Member Avatar for Manish_9

I have database with columns event_date, subject and description in my mysql table. currently, I am using following code to show calendar to highlight dates on which event is scheduled and on click on that specific date, description is shown.. But with this code, on page load, it shows current …

Member Avatar for AleMonteiro
0
276
Member Avatar for stokie-rich

Hi guys, Hope you're all well. I have managed to get the quiz that I have been working on to work now thank god! I just want to show just 20 random questions from the 80 questions that I have in the question bank. Looking at the quiz files I …

Member Avatar for stokie-rich
0
401
Member Avatar for elamigosam

hello everyone, I am looking to remove some stuff from my string: $list = "7:2,3:1,5:1,33:1,23:2"; $list = "7:2,3:1,33:1,23:2"; // REMOVE THE "5:1," OR ANY OTHER DINAMICALY AT ANY POSITION $list = substr($list, 0, strpos($list, "3:")); // i was thinking about this, but i dont think it willwork. thanks

Member Avatar for AleMonteiro
0
118
Member Avatar for David_55

HI All, Im a little confused as to the best way to approach the dealings with sessions when checking out, logging in, and logging out, in some cases the session can be written into the config file which is included in every page to help follow the user, however in …

Member Avatar for DaveAmour
0
300
Member Avatar for xvadias

Friends would like to know if anyone can help me decoder this file my script below, I will be very grateful to those who help min and thanks to all. https://mega.co.nz/#!LVcAUDbQ!lef5l4I8LNLXia-NopXQYMia1lqWIN5MFpDeeqmfajc

Member Avatar for cereal
0
32
Member Avatar for shitanshu_1

<html> <head> <title> Company Login </title> <style> li { display:inline; } </style> </head> </html> <?php session_start(); echo"Welcome ". $_SESSION["cname"]; $cp= $_SESSION["cname"]; $dbhost='localhost'; $dbuser='shitanshu'; $dbpass='123'; $dbname='placment'; $conn=mysql_connect($dbhost,$dbuser,$dbpass); if(! $conn) { die('could not connect'.mysql_error()); } mysql_select_db($dbname); $sql= "SELECT companyname,jobid,profile FROM compnayjob"; $result=mysql_query($sql,$conn); $count=mysql_num_rows($result); ?><table width="400" border="0" cellspacing="1" cellpadding="0"> <tr> <td><form name="form1" method="post" …

Member Avatar for DaveAmour
0
141
Member Avatar for uchejava

I need your suggestion on something. I want to display a 'message notification' on my menu bar. I want it to be like the Facebook message notification. When I have a new message, '1' should show close to the message menu e.g. 'Message 1' (I can use CSS to style …

Member Avatar for Eagle.Avik
0
204
Member Avatar for Borzoi

I have been tasked with making some internal software (as you can probably tell from the section I'm posting in, it's PHP based). I have been asked to make it so the user is automatically logged in and doesn't need to have another password for another piece of software. The …

Member Avatar for Borzoi
0
10K
Member Avatar for janicemurby

hya i am getting the following error message Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/jktempla/public_html/WEBINTERSECT/template_status.php on line 20 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/jktempla/public_html/WEBINTERSECT/template_status.php on line 21 can anyone help and see whats causing it im lost ty <?php …

Member Avatar for cereal
0
209
Member Avatar for MarkDbro

I have a question about inserting images into a product page. I have 5 images (saved as longblobs in my products table) and would like to put them in my table like the id, name, quantity and price.... any idea of how i would do this? I have this so …

Member Avatar for MarkDbro
0
1K
Member Avatar for Niloofar24

Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter into an other page (single-post-page.php) to see the content of that post's title. The script of that page (single-post-page.php) should …

Member Avatar for Niloofar24
0
2K
Member Avatar for Niloofar24

Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, Content) VALUES ('$title', '$author', '$content')"; } I want the script to check if Title Field and Author field and Content …

Member Avatar for Niloofar24
0
485
Member Avatar for archie.herbias

I want to implement a website that has different types of users. I want that when a user posts something, the admin will be notified automatically. I have read about WebSockets and found some examples but mostly of them are about chat application. I just want a notification update. I …

Member Avatar for rubberman
0
4K
Member Avatar for phoenix254

My problem is why this codes dont work. i want to upload image with hide input type file but doesnt work. here are my codes.. <form action="" method="post" enctype="multipart/form-data"> <div id ="settingmaincontainerright"> <input type="file" id="settingprofileimgfile" name ="settingprofileimgfile" > <input type="submit" id="settingprofileimgfilebutton" name="settingprofileimgfile" value="Choose Foto"> <input type="submit" id="settingprofileimgbutton" name="settingprofileimg" value="Upload Foto"> …

Member Avatar for JorgeM
0
164
Member Avatar for PinoyDev

Good day! I dont know if this is the right thread for my problem but since I am developing the site with Php and MySQL Ive posted in here. My problem is, the **website can be pinged without www prefix** but when I browse it in the browser, I am …

Member Avatar for PinoyDev
-1
187
Member Avatar for slowlearner2010

Hi, This is my problem : foreach ($_POST['a'] as $b) echo $b; $_POST['a'] from my previous page, multiple selection list box (i get this data from my lookup table which user can add data on lookup table). The result from $b is 060100060200060300. Is there any function to split this …

Member Avatar for slowlearner2010
0
157
Member Avatar for madmax9922

Hi have this code to manage my main page. Everything works fine on my local server at home,i'm using easyphp. But on my webhosting server i got this error: Warning: scandir(D:\Hosting\12067690\html/,D:\Hosting\12067690\html/) [function.scandir]: Access is denied. (code: 5) in D:\Hosting\12067690\html\index_menu.php on line 65 Any ideas? thank you in advance. <?php $dir …

Member Avatar for broj1
0
2K
Member Avatar for jay.barnes

Hi all, I've been working with PHP, using procedural methods, for several years now, and have begun to explore the object-oriented side of it. While it didn't take me long to understand the potential advantages that come with working in this manner, I'm still having some trouble wrapping my head …

Member Avatar for jay.barnes
0
417
Member Avatar for janicemurby

hya im following a video for a conversation system for my site and when i try to post a status the post button isnt going anywhere heres code for it can someone see whats going off ty in advance <?php $status_ui = ""; $statuslist = ""; if($isOwner == "yes"){ $status_ui …

Member Avatar for janicemurby
0
308
Member Avatar for london-G

Hu Guys, Sorry, my question might sound silly but how can I embbed a class inside echo "<tr><td><img src='data:image/jpeg;base64," . base64_encode($row['product_img']) . "' alt='' /></td></tr>"; I tried echo '<div class="img"><tr><td><img src='data:image/jpeg;base64," . base64_encode($row['product_img']) . "' alt='' /></div></td></tr>'; But it's not working. Looks like I am doing something now quite right

Member Avatar for london-G
0
312

The End.