39,326 Topics

Member Avatar for
Member Avatar for sthakre624

wich functionality i use when a user buy a product on my website who is not registered and buy a product on my website and pay the payment with paypal.how can i redirect him on thank you page.and how can i identify the user who done the payment on his …

0
72
Member Avatar for fumnimda

hi there i need some help for integrating php-openid to login process of my site. has somebody work around it??

Member Avatar for loginradius1
0
112
Member Avatar for extjac

hi there.....I have been working with PHP for a few years now, but i am not a professional developer. I would like to know if you have some tips about the PHP best practice. For instance, i have been working on mysql but i know we have Mysqli..which one is …

Member Avatar for TySkby
0
164
Member Avatar for ebanbury

Hi I'm having problems with putting an image - outofstock.gif into a table cell but only if prod_status == 'Sold' An empty image place holder shows - but without the actual image in it. Ideally I also wanted this whole table column to be a background to another table cell …

Member Avatar for simplypixie
0
649
Member Avatar for bflack

Hello guys, [CODE] <?php include 'dbconnect.php'; echo 'under profile.php'; $username=$_SESSION['username']; //I think i have to put a query here like "SELECT username FROM accntinfos WHERE username='$username'". But confused since if I do there would be two queries $query="SELECT userprofile.profpic FROM userprofile INNER JOIN accntinfos ON accntinfos.accntnum=userprofile.accntnum"; $result=mysql_query($query, $DBconnect); $numrows=mysql_num_rows($result); ?> …

Member Avatar for bflack
0
147
Member Avatar for chuck_dezmond

Hi everyone, im just new in php and mysql. I have a form where i add list of member details then submit it to my db and redirect it back to the same page and echo the the list of data at the bottom. but the problem is after redirect …

Member Avatar for chuck_dezmond
0
111
Member Avatar for richaell

Keep getting these errors: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\all.php on line 71 Notice: Use of undefined constant total2 - assumed 'total2' in C:\xampp\htdocs\Projeto\all.php on line 72 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\all.php on line 124 Notice: Undefined …

Member Avatar for mikulucky
0
625
Member Avatar for Aksel

Hi :) I'm haveing a little trouble working with a string which I need to insert a substring on certain positions. Basically I'm trying to create a pagination for a wordpress site by inserting <!--nextpage--> on certain point in a content string. The content string is of various size from …

Member Avatar for mikulucky
0
800
Member Avatar for intelgy

Hello everyone, I'm working on adding checkboxes to the edit_profile section where members should be able choose with checkboxes the multiple options of massage techniques offered... When I checked only one, either, option 1, or option 2 or option 3 I'm able to see it in the column in the …

Member Avatar for HasNor
-1
174
Member Avatar for sajithfx

[B]Pagination[/B] It shows following messages Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 55 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 154 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 167 …

Member Avatar for diafol
0
108
Member Avatar for richaell

keep getting this error: Undefined index: id in C:\xampp\htdocs\Projeto\edit.php on line 5 But i checked phpmyadmin and i have a index for id, it's in the table. Why do I get this? Never happened before. [CODE] <?php require 'conf/connection.php'; $id = $_GET['id']; $choose_user = mysql_query("SELECT * FROM users WHERE id …

Member Avatar for richaell
0
652
Member Avatar for richaell

I keeep getting this error: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\search.php on line 7 How do I fix? [CODE] if (isset($_POST['action']) == 'Search') { $search = $_POST['search']; require 'conf/connection.php'; $selection = mysql_query("SELECT * FROM users WHERE name '%$search%'"); $number = mysql_num_rows(mysql_query("SELECT * FROM users WHERE …

Member Avatar for richaell
0
111
Member Avatar for Xufyan

OK, i wanted my page to post a random post in every 24 hours , so i found that code over the internet, I was trying to understand the code and added the comments to those lines which i understood, however i am not able to understand the complete program, …

Member Avatar for Xufyan
0
954
Member Avatar for jimdj

Hi. I am createing a site that uses categories to display certain things to visiters depending on what they click and the choices of what they can click on comes from a database. so how do you do the php to allow the site to create the links to a …

Member Avatar for pritaeas
0
153
Member Avatar for johndohmen1963

Hoi hope someone can help. my question is preg_replace dosn't work 100% the code i have $description = preg_replace('/[^a-zA-Z0-9 .,]/', '', ($_POST['albumbeschrijv'])); it works with all strange sings but only not when i use sign - between a string like in test-test. like the code it must remove everyting exept …

Member Avatar for johndohmen1963
0
178
Member Avatar for klemme

Hi all, I have a question regarding when I should use a 302 Found or a 307 Temporary Redirect. As far as I can read, they both send out the message: Moved temporarily, or not? Or have I come across old articles..'Cause I thought a 302 was a Moved temporarily, …

Member Avatar for diafol
0
409
Member Avatar for felix001

Ive been developing a new website for the last few months. Initalling I configured all my databases to use the root account. Now I need to change all the passwords along with changing the web UI login. Ive tried changing the password for root within the gui but it doesnt …

0
73
Member Avatar for JaredN

Hi everyone, New to PHP and making slight changes to the text on the index.php page today I had this error come up when updating the file. I have looked at previous posts about missing ";" but I can't see where one needs to go. It came up with the …

Member Avatar for pritaeas
0
336
Member Avatar for sidra 100

hey m making a projec in one of its page i want to get the data from the table and display it on screen in the form of table. allthough the data appears but how can i display the headings. [CODE] $num=mysql_num_rows($result); print "<table width=600 border=1>\n"; while ($get_info = mysql_fetch_row($result)) …

Member Avatar for pritaeas
0
88
Member Avatar for mrhankey

hi guys, i need a mail script that will launch after the insert record on my page. problem is at the moment it works fine if ony one address is entered. however i have 3 queries on my page that is needs to get the email addresses from. so i …

0
81
Member Avatar for borgyborg

Hi All, I want to auto-calculate all the array textboxes I created. My code is: [CODE] <?php echo "<table>"; $sql="SELECT default_salary FROM records WHERE is_active = 'Yes'"; while ($row=mysql_fetch_array($result)) { $default_salary = $row["default_salary"]; $num_rows = mysql_num_rows($result); echo "<tr>"; echo "<td>"; echo $count."</td>"; echo "<td width=\"\" align=\"left\" border=\"0\">"; echo "<input type=\"text\" …

Member Avatar for diafol
0
860
Member Avatar for mucokirca

i want my ajax and php codes, with 2 option value, show up two different texts or form packs. i have given html and php codes. i hope sombedy help me. im quiet new with this. thanks :) renkler.html : <head> <script type="text/javascript"> var istek = false; if (window.XMLHttpRequest) { …

Member Avatar for McLaren
0
320
Member Avatar for Buppy

Hi, I ran a speed test for my site with Google Page Speed (and some other tools as well). The Google tool shows that i need to leverage browser caching and the expiration date for cacheable files in my site is currently set to 24h. I did a little bit …

0
74
Member Avatar for bflack

Hey guys, Can you all help and teach me how to retrieve image file which is stored on database?.. I had an image stored on database in the column i called 'profpic'. By the way, I am needing this information for profile picture on a users page. I've started testing …

Member Avatar for bflack
0
207
Member Avatar for qwertpink

Hi all, im sorry, im just a beginner, I had never come across to such circumstances. Submit a form, with while loop, how am i going to retreive every single value submitted from the form? [ICODE] <form name="pay" action="pay.php" method="post"> <?php while ($row = mysqli_fetch_assoc($result)) { echo ' <th width=70% …

Member Avatar for qwertpink
0
4K
Member Avatar for prasanna123

<html> <head script type="javascript/text"> <script> function validate() { var html=document.getElementById(<?php '$count1'?>); <?php session_start(); $_SESSION['fuserid']=?>="html" } </script> </head> </html> <?php session_start(); $database="myfriend"; $userid=$_SESSION['user']; mysql_connect("127.0.0.1","root",""); $db_found=mysql_select_db($database); $sql="select fuserid from friends where userid='$userid';"; $result=mysql_query($sql); $count1=0; while($db_field=mysql_fetch_assoc($result)) { ?> <body> <a href="displayprofile.php" id=<?php =$count1; ?> onclick="validate(this)"> <?php print $db_field['fuserid']."<br>"; ?> </a> </body> <?php $count1=$count1+1; …

Member Avatar for prasanna123
0
455
Member Avatar for khr2003

hello I have a section in my website, where people can upload photos. the gallery is divied into different categories. I modified the original script so people can add a photo from anywhere in the website (before they had to go a certain category and then upload a photo to …

Member Avatar for swatipatil05
0
225
Member Avatar for phpuser

Hello , Friends I am doing googlemap integration . Though i completed it as per my project requirements but i have very small area for displaying map. And as we all know html window on marker have some fixed size. but i found in my reference site that they edited …

Member Avatar for web-designindia
0
235
Member Avatar for aki2all

When I am sending via Gmail using phpmailer, the email is taking a long time to send and also sometimes it is not going. I am using XAMPP as localhost. Here is my Code: if($_POST['submit']{ /*MAIL PART BEGINS*/ //error_reporting(E_ALL); error_reporting(E_STRICT); date_default_timezone_set('America/Toronto'); require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php …

Member Avatar for pritaeas
0
2K
Member Avatar for ronny22

Hi guys im making a cms site and very close to finishing it but i get this one warning which is [B]Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in C:\wamp\www\cms\_class\cms_class.php on line 117[/B] i dont know how to solve it! It happens when I try to update …

Member Avatar for pritaeas
0
171

The End.