39,402 Topics
![]() | |
If you are one of the odd balls out there who puts all of your PHP code into the index.php file (I hate having to navigation thru dozens of separate files), will you run into performance problems if your file has over 10,000 lines of code? (The web server's cache … ![]() | |
I have the following code witch is used to display HTML from an XML file. The XML file itself comes from a form POST where a "\" is added in after various HTML tags. Is there anyway I can modify the script below to hide/remove the "\" when the XML … | |
I currently have a caching problem on my flash site. I have set the htaccess file to: [CODE]Header set Cache-Control "no-cache"[/CODE] But when I refresh the page, the images on the flash site still shows the old one from the cache. I also tried setting max age to 1, and … | |
for ($rows = 0; $rows < $totrow; $rows++) { echo "<tr>"; { echo "<td width=7% align=center bgcolor=#D4BFFF >" .$sr; echo "</td>"; ?> <td width=40%> <select name="book<?php echo $sr;?>" style="width:80%"> <option value="-1">-----Select Book-----</option> <?php $qr_title=mysql_query("select * from book where Dels='N' order by Bk_nm asc"); while($row_title=mysql_fetch_array($qr_title)) { ?><option value="<?php echo $row_title['Bk_id'];?>"<?php if($row_title['Bk_id']==$ad) … | |
Hi Friends I am trying to get the value of select dropdown item in a text box, but i am unable to get it. I am using ajax for dropdowm method. please any one can help one.php [CODE]<?php session_start(); include("config.php"); // Check, if username session is NOT set then this … | |
hi every one, I m tring to make on webapplication with PHP and MSSQL2005.This simple website has some report and chart those r dynamically update from my MSSQL db.I m using fusion chart free for charting. I have used this codes for report.[CODE]<?php include('DBConn.php'); include("FusionCharts_Gen.php"); $link = connectToDB(); $stmt=mssql_init("AreaWiseMonthlyRpt", $link); … | |
[CODE]//===============Castle Siege Time==================== $castlesiege="16 AM"; //=============END Castle Siege Time=================== //=============SERVER EVENTS AND TIPS============ //Events $event1='Drop Event Today'; $event2='Find GM in Lorenica'; $event3='Race with unila in Lorencia'; //Tips $tips1='Server experience changed'; $tips2='New spots have been add'; $tips3='New items at lorencia bar'; //===========END SERVER EVENTS AND TIPS========== //=======POLL PASSWORD==== //Require when you … | |
The OwnerName field in the Catalog table exactly matches the Name field in the Owner table, which is that table's primary key. My select statement select Catalog.*,Owner.* from Catalog, Owner where Authors like "%jam%" and Catalog.OwnerName=Owner.Name order by Title limit 0,100 I use {$num_rows = mysqli_num_rows($result); to get my results. … ![]() | |
Dear team, How to get the process id for the particular file in php? for example ============ To get the process id in linux we use ps -ef | grep "message.php" Thank you, With Regards, Prem | |
hi guys i have a small question about < form action='' > what is difference between [CODE]<form action='$SERVER['PHP_SELF'] >[/CODE] and [CODE]<form action='<? echo htmlspecialchars($_SERVER['PHP_SELF'); ?> ' >[/CODE] if this way [CODE]action='<? echo htmlspecialchars($_SERVER['PHP_SELF'); ?> ' [/CODE] have benefit in security ! i wait any idea Thanks a lot | |
Hi I have a code that should:- if the number entered more than 60 the following should be printed "Congrats!!!<p>" "Grade1" if the number entered between 60 and 40 the following should be printed "Grade2" else the script should print "fail" but the code print fail all times can someone … | |
Hi, Can someone lead me in the right direction on how to write a preg_match. I have username and password in the DB. And the username should be case sensitive, accordingly to whatever is in the db. And it should only be able to contain numbers and letters. I have … | |
Hello im creating a small social network from scratch and struggling with the newsfeed i have the newsfeed loaded through ajax then page loaded remotly i have a timeago jquery script and the timeago script is not working, but when i get rid of the ajax auto refresh and use … | |
Hello! I've been stuck with this for a while now. First I want to say that this is a school project and not something illegal bet site. The first MySQL table have results from games and the other table contains users bets on different games.. My problem is that I … ![]() | |
Hello, I want to ask.. I have a website which is fine to be opened using any other browsers except IE7. In IE7, some of the functions do not work well. I tried using IE8 and it worked fine. Anybody knows the solution? Thank you | |
ok here's the thing, I have a table in my DB (courses), and I want to fill it with data about all the courses that my school has. there's another site which has a form that let's people enter the code of the course and when they click "search" it … | |
Hello i have a problem with protect from sql injection : the problem is: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in My Old Code (working): [CODE] <?php $currentid= $_GET['id']; $q="select * from tbl_car where id=$currentid"; $result= mysql_query($q); while ($row = mysql_fetch_assoc($result)) {} ?> [/CODE] my … ![]() | |
Hello, First of all, don't kill if I posted this in the wrong section. I'm trying to find a decent tutorial for the HTML 5 drag and drop upload. I have allready searched hours before but could'nt find a decent tutorial. Basicly what I want is a drag and drop … | |
Hi everyone. I'm planning on making a video chat page in which people would have to buy something like credits or pay per chat/call and it would be great if you could tell me more about PHP based video chat scripts or other kind of solutions (no need for group … | |
Hey, I am having trouble sending a javascript variable to php at the moment. I have div's which have id's on them then when I click on them I have it as onclick="getId(id)" Then this is the code which is not working of course in sending the id to the … ![]() | |
Hi, below codes give me underline of every link. How can i remove the underlines? <table align="center" width="27%" border=0 bordercolor="#FF0000" > <tr><td> <A HREF="#TaxFile">NY Multi Service -Taxfile, Accounting, Auditing,..</A></td> </tr> <tr><td> <A HREF="#VA">VA Multi Service -Taxfile, Accounting, Auditing,..</A></td> </tr> <tr><td> <A HREF="#Insurance">Insurance in USA</A></td> </tr> <tr><td> <A HREF="#TaxFile">NY Multi Service … | |
![]() | Hi, I'm having a little problem with a password Reset Script I've made The script sends you a reset hash to your email to confirm that you requested the password reset. This resethash is just a random string with letters and numbers that is 15 chars long Problem is, when … |
Hi! Is there any way to remove a file from a directory when a session ends? (Like when a user closes the webbrowser) | |
I am wondering if anybody have developed activeCollab module. I am getting a problem with a module that I am developing it. The problem is that this module needs to change on instalation some default creativeCollab view files. For instance, our company has developed a module which adds new date … | |
Hi all, I am a PHP noob, so please bear with me if you find my posts here slightly on the moronic side... :) Anyway, I have a problem with the page quoted below. Dreamweaver says there's something wrong with line 188, but I just can't figure it out. Thanks … | |
I'm reading Headfirst PHP & MYSQL. I did what the book asked me to do, and this is the output in the browser: [CODE] Aliens Abducted Me - Report an Abduction '; echo 'You were abducted ' . $when_it_happened; echo ' and were gone for ' . $how_long . ' … | |
I have found some websites, they show the pictures like marquee, but not exaclty marquee. Not continuously moving from bottom to top. Instead, moving from bottom show one picture and then stop a few seconds and then moving again! What is that function and the code? Thanks! | |
Ok, I have a variable ($incubation) set as 04:00:00. Then I have another variable ($starttime) set to the current time. Both are printing out fine. But I'm trying to get an $endtime from adding the incubation time to the start time. [CODE]$incubation = $row['incubation']; //IM GRABBING THIS TIME FROM THE … ![]() | |
Hi friends. I install the REgional PHP Link Directory, and I was able to make the listings show the websites thumbnails but there is a link below them, "Read More" that when I click on them, they take me to the 404 server page. Something is wrong. 1)The url rewriter … ![]() | |
hi all , if i want to fetch all image from specific part of webpage not whole webpage how to do it. for exam-http://www.cocoearly.com/homes/MA/Methuen/01844/899_Riverside_Drive/10171238256/index.html any help appre thankx | |
Dear Friendzz, Problem to getting dynamic values in Javascript.. Please Helpme [CODE]// Java Script <script language="javascript"> function toggle(int) { var ele = document.getElementById(int); if(ele.style.display == "block") { ele.style.display = "block"; } else { ele.style.display = "block"; text.innerHTML = "hide"; } } </script> // HTML <div class="reply"> <a id="{$msg['id']}" href="javascript:toggle(this);">Reply</a> </div>[/CODE] … | |
Hello , please help me making attracting forms for my website ( login and Register ) .. I Have Already made those for my website but they look quite boring . I Actually Want To Set A Form Background .. [B][U]I Googled It But The Results Were Below My Exceptation … ![]() | |
Basically i have a script that outputs a list of information about a file, Here is a sample [CODE] File Size:15423 bytes File Name:Test.txt File Location:C:\home\Test.txt File MD5 Hash:1caf4a063526d84cd5b1ae6383a426d6 File SHA1 Hash:e79bfba095a8531adcb855d7c286f5c3ca93a535 [/CODE] My problem is that i want to split the data into two columns, For example "File Size:" … ![]() | |
Hi there, I am thinking about the best way, how to update my records in database (MySQL) from XML feed. I have database and this database contains the daily offers from several sales portals. So now - about midnight I am deleting all records from my table and with using … | |
I'm designing a new intranet system but the requirements have changed and I've now been asked to make it more scalable and to allow any content to be integrated into the site seamlessly. Currently, the site is very simple using the IIS URL Rewrite module (basically the IIS answer to … | |
Hi! I'm getting these warnings: Warning: session_start() [function.session-start]: Node no longer exists in (file) on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at file:2) in file on line 2 Warning: Unknown: Node no longer exists in Unknown on line 0 I … | |
Hi, My codes at the moment are [CODE]mysql_query("SELECT * FROM table WHERE date = CURDATE()");[/CODE] It outputs the correct stuff that i want to show that has been uploaded that day (newest) but I want it to show it for 3 days or maybe even a week... Is there a … | |
Hi, I want to learn php and how to develope my own code and stuff, how can i learn php fast amd easy? Does anyone reccomend a sertain book or website? Thanks | |
I don´t understand the error: Parse error: syntax error, unexpected T_VARIABLE in /home/eduardli/public_html/web_designer/insert.php on line 21 php file: [CODE]<html> <body> <?php $con = mysql_connect("localhost","eduardli_user","-z.x,c"); if (!$con) { die('Could not connect: ' . mysql_error()); } $description = $_POST["description"]; $price = $_POST["price"]; $quantity = $_POST["quantity"]; mysql_select_db("eduardli_company", $con); mysql_query ("INSERT INTO Products (Description, … | |
PHP and MySQL problems with ' and " have been discussed ad nausea on the web. I still don't get it. For example my db has an Author's name field with someone called O'Brien. If I create the DB with phpMyAdmin by reading in a CSV file, that field will … | |
Hi, I am trying to organize the way my episode titles output. At the moment it prints like this. (I want to be able to upload the newest episodes and also go back and upload the older shows but i want the newer shows to stay at the bottom in … | |
Hi all, I am trying two days now to insert a cart link on my page. It is a e-shop bookstore. I save my books in a database : +-------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+--------------+------+-----+---------+----------------+ | bookid | int(11) | NO … | |
Hi, please help me with my code. Javascript function if (document.myform.Available.checked == false) { document.myform.Save.disabled = true; <?php $query = mysql_query("UPDATE rewarditems SET Available = 'Yes' WHERE RewardItemID = '{$_GET['item']}'",$link1) or die(mysql_error()); ?> } else if (document.myform.Available.checked == true) { document.myform.Save.disabled = false; <?php $query = mysql_query("UPDATE rewarditems SET Available … | |
I have a PHP object that I'd like to convert to XML so that I can use SimpleXML to run an xpath on the data. Can someone suggest some way to do this? Basically, I have the following PHP object and I need to be able to search for certin … | |
I am no submitting form (i.e. no button usage), then How I can preserve the value of a control. I am using pagination. | |
Hi all, I am working on a project that requires themes much like the popular Content Management System, Drupal. I notice in their "info" files they use with their system to display information about the theme like its title, description, a snapshot of it, etc, my question is, would it … | |
Hello guys, So I wrote this code that fetch data from mysql table: [code]while($row = mysql_fetch_array($result)) { $src = ''; switch( $row['speed'] ) { case 'fast': $src = 'fast.png'; break; case 'slow': $src = 'slow.png'; break; default: $src = 'default.jpg';} } } echo "<tr>"; echo "<td><a href='http://" . $_SERVER['HTTP_HOST'] . … | |
Hi I have a problem With the $_POST Here is the code i have i called this albums.php [CODE] <?php Echo" <table cellpadding='5' width='100%' border='1' bgcolor='white'> <tr> <td width='50%' align='left'> Usere Alben die schon bestehen. </td> <td align='right'> <form action='createalbum.php' method='POST'> <table> <tr> <td align='left'> <font face='arial' size='2'> Albumauswahlliste.</font> </td> … | |
Hello Anyone can recommend me the best php IDEs available which also provide support for frameworks like zend or codeigniter? | |
Hi i have the code i am not able to insert the datas into database while executing i got some error. i have tried many codes but no help .[[COLOR="red"]After entering the data[/COLOR]]when i click the submit button i got [COLOR="Red"]The Username is already taken![/COLOR]. [[COLOR="red"]Without entering the data[/COLOR]]when i … |
The End.