39,323 Topics

Member Avatar for
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
623
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
796
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
107
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
953
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
407
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
335
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
859
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
319
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
206
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
234
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
170
Member Avatar for kgizo

Hi I need to represent data from my mysql table into a graphical format. I summed all the columns I needed then I need to represent the addition of each individual column onto a graph, but I want to print the correct data onto my screen first then represent the …

Member Avatar for kgizo
0
156
Member Avatar for gaurang24

hi i use below code for video convert in flv. code work perfectly but when the out put comes file become 0kb. $srcFile = "upload_v/veer.avi"; $destFile = "upload_v/veer.flv"; $ffmpegPath = "/usr/bin/ffmpeg"; $flvtool2Path = "/usr/bin/flvtool2"; $ffmpegObj = new ffmpeg_movie($srcFile); $srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth()); $srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight()); $srcFPS = $ffmpegObj->getFrameRate(); $srcAB = intval($ffmpegObj->getAudioBitRate()/1000); …

Member Avatar for veedeoo
0
119
Member Avatar for tgr0ss83

I have a problem w/ the Below code, that when I view the table, it repeats the Headers for each row. : For instance: [CODE] comed_zone chicagogen_hub chicago_hub nillinois_hub 10 30.8 30.4 30.8 30.6 comed_zone chicagogen_hub chicago_hub nillinois_hub 11 29.0 28.2 29.2 28.8 comed_zone chicagogen_hub chicago_hub nillinois_hub 12 28.2 27.5 …

Member Avatar for veedeoo
0
194
Member Avatar for borgyborg

I am having a looped form in my site, but i have a problem on saving it. I don't know where is my mistake. Please someone help me. i have 5 records. in my code it saves only one record. and its not giving the correct value. it shows "Array" …

Member Avatar for borgyborg
0
127
Member Avatar for crestaldin

Hello all, I'm a PHP newbie and have my apache Server and PHP in place. I have been able to run simple programs that work well. However, since then when I do "http ://localhost/filename.php" I either get 2 messages. 1. An error message if there's an error in my code …

Member Avatar for smash95608
0
197

The End.