39,316 Topics

Member Avatar for
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
952
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
405
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
857
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
224
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
Member Avatar for ilmkidunya

Hello friends is there any keylogger scripts thats I putt into my home page when user visit it it make a log file of users key storks and send it in the mail or upload in the script form

Member Avatar for jimdj
0
793
Member Avatar for dottomm

Hello everybody and thank you in advance for any suggestions and help I hope to receive. I have Mysql experience but now I am working on my first M$sql database project, and I am getting frustrated. I am using php and would like to export a query. It is quite …

Member Avatar for sakarora
0
2K
Member Avatar for akien_ghie09

Hi, I have a problem with the way my program run. The situation is that I have a form where it ask for the date then when the button submit is clicked the records which has the same date will display. After that there is a button extract where if …

0
73
Member Avatar for Marty1963

I'm still very new to this but is there a way to control content (text and/or image) using PHP and a specific date? For example I need to add "New Store Hours" to a listing of locations for a client website, however I don't want to have to go back …

Member Avatar for Marty1963
0
188
Member Avatar for issaru07

i have a page which list all the products and there are checkbox to do muiltiple deletion. but there is an error on line 62 for the $delete [CODE]<html> <head> <title>delete</title> </head> <body> <? $objConnect = mysql_connect("localhost","root","booo33384") or die(mysql_error()); $objDB = mysql_select_db("db-test"); //$strSQL = "SELECT * FROM products3"; $strSQL = …

Member Avatar for issaru07
0
348
Member Avatar for RazorRamon

I have a variable [ICODE]$topic = $POST_['topic'][/ICODE] that is entered by the user, it can possibly have spaces. I want to create a table based on this variable. Right now the code creates the table but only uses the first word. [CODE] $create="Create TABLE $topic (I know this part works)"; …

Member Avatar for pritaeas
0
93
Member Avatar for sparkles_links

<?php $res = mysql_query("SELECT * FROM users WHERE username = '$user' LIMIT 1"); if(mysql_num_rows($res)>0){ $d = mysql_fetch_array($res)){ if($pass == $d['password']){ session_regenerate_id(); //security for changing permissions $_SESSION['user_id'] = $d['user_id']; $_SESSION['usertype_id'] = $d['usertype_id']; switch($d['usertype_id']){ case 1: $loc = "nurse.php"; break; case 2: $loc = "paramedic.php"; break; case 3: $loc = "doctor.php"; break; …

Member Avatar for pritaeas
0
118

The End.