39,320 Topics
| |
Hi guys hoping someone can help me out please..... Got the code where a side menu appears with sub-pages link which are related to the main body article. To do this I used the the command - where project_id = $show. That works fine but the problem lies in when … | |
hi, i'm using menu for displaying birth month of user... i hav added 12 entries denoting 12 months of a year. items and thier values are... Item Value Jan 1 Feb 2 ... . ... . Nov 11 Dec 12 the values are stored in Database. Problem is viewing the … | |
Hi all, Iam trying to tigger some file which will be working in backend once the window is closed in php. Iam using onunload function in javascript but it triggers the file once we leave that particular page only. If we closed the window it didnt do anything. Anybody have … | |
Hello, I need a bit of help- I get the following error on my site when I add a banner: Warning: mktime() expects parameter 3 to be long, string given in /home/goldenpl/public_html/ptc/admin2/banners.php on line 69 Here is the file code: [code=syntax] <? $includes[title]="Banner Manager"; if($action == "add") { $sql=$Db1->query("INSERT INTO … | |
I try to update a mysql db using php. I need to update the data in table "A" with the data from table "B" if the two table have 1 data in common. Everithing works fine when the data in common (prod='$col[0]') are only 1 word but not work when … | |
Hey I am using multi curl to execute cron jobs based off sql records. will the script i call run if i dont wait for the result and just close the connection? or do i need to get the result? | |
I wanted to know which PHP IDE is the best available in market. There are lots of products available. I would prefer one with a good help guide because i am new to this. | |
Hi, I have a major problem that I can not figure out. I have a directory that is updated once a night by fetching data from a site provider. For the last 3 days it will go fetch the data and fills the log file with the following errors over … | |
Hi all I have some functionality that allows the upload of files such as MS word docs, zips etc. It works fine on my pc and another test machine but doesn't seem to work on two other machines I've tested. All machines have Windows XP installed. The first machine that … | |
hi all, i want to update one field from one database to another database my query is [CODE]mysql_connect('localhost', 'root', '') ; mysql_select_db('db1'); mysql_connect('localhost', 'root', '') ; mysql_select_db('db2'); $query1=mysql_query("select * from db1.tbl_products"); while($fetch=mysql_fetch_assoc($query1)){ echo "update db2.tbl_products set p_price='".$fetch['p_price']."' where p_id='".$fetch['p_id']."'"; echo "<br>"; echo "<br>"; } [/CODE] in local it is executing … | |
Hello, I'm making a browser based game in php and so far it's going really good. However I have a doubt about a script i've written. This script does alot of calculations using the data from the mysql database i'm using. So it reads and writes quite alot. And the … | |
Hi Folks, I have a login page and stored username and password in mysql as 'admin' and 'admin' respectivley. My problem is like if I am entering a username and paasword like ADMIN and ADMIN its get logged in I want restrict that.So please anybody have look at this.. | |
I am getting the following error when I tried to connect to the database. Can any one help to resolve this problem. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'abc'@'rxsxllxr12.zzzzz.net' (using password: YES) in /home/abcd/public_html/Invoicesystem/includes/class.DBcore.php on line 62 Error in Query Execution.Error : Unable to Connect the Server216.120.228.13 MySQL Error: … | |
please help meWarning: mkdir() [function.mkdir]: File exists in..xxxxx/register.php. yeah yeah what is wrong here is my code: btw im at xxxxx/register.php [CODE]$documentroot = $_SERVER['DOCUMENT_ROOT']; if(mkdir($documentroot ."/". $username , 0777)) { $profile = $documentroot ."/". $username ."/index.php" ; $filegettingcopy = $documentroot ."/xxxxx/index.php" ; if (copy($filegettingcopy, $profile)) {echo "<br> You can access … | |
I want to encrypt php code so that others should not modify. If i run that encrypted php file in the browser its functionality should work. I have used few softwares, with those i could encrypt php code but failed to run in the browser as php encrypted code is … | |
Hello, Is there a way to create functions dynamically in PHP as such: [code=php] <?php $my_arr_conf = array( 'my_var' => 'This is my variable', 'your_var' => 'This is your variable' ); // Some code here where I can create the function // Maybe somehow with create_function(); ? // I was … | |
Hi folks !! I got a project for developing the clone of the website [url]www.worldnews.com[/url] please help me in to getting start this as i have to develope it from scratch there is no help document available from the client side.from where should i need fetch the data or i … | |
Hi All, I've been struggling with a number of different snippets of code to get the following script to force download. Everything I try won't connect. Unfortunately, because I'm such a novice, I can't find where the problem lies. Could anyone help me 'plug in" the right code to make … | |
I'm trying to make a list of friends that are NOT in address book. This returns all friends : [code] // Check for friends $frnd="SELECT * FROM friends WHERE my_id='$_SESSION[user_id]'"; $fres = mysql_query($frnd); $fnum = mysql_num_rows($fres); while($fr=mysql_fetch_array($fres)){ $friend = $fr['friend_name']; $friend_id = $fr['friend_id']; } [/code] This returns all friends that … | |
This is my first project using JavaScript. I have a PHP page that loads text fields "if" called for. I thought JavaScript would be a great way to get the total of all Text Fields without Submit. The code below is an example of my problem. [CODE]<SCRIPT language = JavaScript> … | |
Hi, I'm new here, looking for some assistance... I am starting a new xbox clan, and I'm buillding the website for it. Normally I build my own websites and code them, but I wanted to go a bit more advanced than I usually do, and learn a little bit more. … | |
I had a code, which was working OK. [CODE="PHP"]echo "<form name='pm_form' method='post' action='?inbox'>\n"; echo "<input type='submit' name='save_msg' value='Save' class='button' />\n"; echo "</form>\n"; [/CODE] Poor quality button, I changes to a well looking image: [CODE="PHP"]echo "<form name='pm_form' method='post' action='?inbox'>\n"; echo "<input type='image' src='button_save.png' value='Save' name='save_msg'/>"; echo "</form>\n";[/CODE] But the problem is, … | |
Good Evening everyone. I work for a marquee firm and i am creating a php mysql components list for the assistance for loading equipment. SO far, the user can input a marquee size (eg: 6mx3m) in a form and we search the database and output the items required for said … | |
hello to all, I wrote a foreach() loop and inside I added a variable which also increase but not as with the array that run in the foreach(), but somehow the for each also increases my variable: [CODE] $n = 0; while($row = mysql_fetch_row($GetItems)){ echo "$n<tr>"; foreach($row as $cell){ if(strstr($cell,"Images")){ … | |
hi i am following this etutorial and the code is not working and dont get why. There are two bits of code: [CODE] > <body> <? $sonnet76 = <<<HERE Sonnet # 76, William Shakespeare Why is my verse so barren of new bride, And keep invention in a noted weed, … | |
hi guys. I got problem here. I built the system of weighted average method calculation based on php. Now, I'm the last part which sum of the value in html table. Basically, this is my coding:- [CODE] <?php session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . … | |
Hi all, When you add integer ID primary key auto increment, it automatically makes ID for you. But I was pondering on what happens after deleting a record. Does the server automatically adjust all IDs for you or it remains un assigned? For example, I have inserted as follows +------------+-------------+ … | |
hi, I've coded like this for login Database. Its well working in my local host in offline.But not working Online in Plesk PHPMYADMIN MYSQL Database with same database name, username, password as below. and host name as mentioned in PHP server.. (provided db name, username & password are correct) [CODE]<?php … | |
This seemed like a good idea to me but it's not working out the way that I want ... I'm probably over-complicating it 8-) I'm trying to allow users to search for other users in their area and part of the search criteria gives you 8 different options to choose … | |
hi, i'm using php 5.3. version for my site development. If i use this function "session_is_registred()", i' getting message something like warning(not actual warning message) as following "Function session_is_registered() is deprecated in c:/.../.php" how can i erodicate this message? help to accomplish it... Thnx... |
The End.