39,326 Topics

Member Avatar for
Member Avatar for Aardwolf

How would I do this in 1 line [code] $name = $firstName + " " + $lastName; //output: 0 [/code] the problem is what I think it is, is that its trying to add like mathematics. whilst I want the '+ " " +' to become a space in between …

Member Avatar for karthik_ppts
0
129
Member Avatar for srdva59

hi, i looking for a class that can handle with winrar and zip files i have found a lot of resource for zip but none for winrar... any one know something that work in both of the type files? thanks :)

Member Avatar for srdva59
0
1K
Member Avatar for Espenij

Hi, I have a question. I want my page to register the previus page the visitor comes from. If my visitor comes from google, i want the url to add this in the Url. Is this possible in php5? I had this in php4, men it didnt work when it …

Member Avatar for Espenij
0
86
Member Avatar for atfOnly

As far as i know this is no way to use array_count_values for multidimensional array. So, any of you guys know how to deal with this? I have 2D array like this.. $arr=array([0]=>array([arr1]=>A[arr2]=>1) [1]=>array([arr1]=>B[arr2]=>5) [2]=>array([arr1]=>A[arr2]=>5) etc... ) i want to obtain combination of arr1-arr2 and its count(just like in 1D …

Member Avatar for divyakrishnan
0
88
Member Avatar for chaychie

Hi, I would like to display my database data in text fields form. I would like to have all the text fields to be locked (read only), so I added readonly attribute into the text fields. Moreover, I would like to add a button "EDIT" at each row, so that …

Member Avatar for divyakrishnan
0
1K
Member Avatar for srdva59

hi how can i creat a ocx file and call to install in a browser? thanks for your help :)

Member Avatar for Wraithmanilian
0
129
Member Avatar for klemme

I have this code, which creates the pages, taken from the DB: [CODE] function subject_navigation($connection){ $sqlCommand = "SELECT id, linknavn, pos FROM subjects ORDER BY pos ASC"; $query = mysqli_query($connection, $sqlCommand) or die (mysqli_error()); while ($row = mysqli_fetch_array($query)) { $sid = $row['id']; $linklabel = $row['linknavn']; echo '<li><a href="index.php?sid=' . $sid …

Member Avatar for klemme
0
101
Member Avatar for varoluscu_prens

Hi there; I've received a irritant problem in my php code. Here is "index.html": There are some javascript functions defined in the "head" tag. [CODE] <form autocomplete="off" action="result.php" method="post"> <p> <label>Name:</label> <input type="text" id="name" /> </p> <p> <label>Nachname: </label> <input type="text" id="surname" /> </p> <p> <label>Abteilung</label> <input type="text" id="department" /> …

Member Avatar for varoluscu_prens
0
185
Member Avatar for dyla123

I am working on an advert website where people can come and post their ads on it. I am wondering can people help me code it. I am not great at PHP once I have the code I can put it in the DB its just making the code. Once …

Member Avatar for IIM
0
101
Member Avatar for Jiaxin

Hi, I need help to go about doing this. If I have a table, in the database containing fruits, price, quantity. I want to arrange the price of the fruits into 3 groups of around the same average. How do I do this? Thank you

Member Avatar for almostbob
0
104
Member Avatar for jhbalaji

I have installed WP on my root domain([url]www.domain.com[/url]) I create a sub directory in the wp domain itself ([url]www.domain.com/ABP[/url]) whenever i try to access that it gave me the 404 Error page of WP Htaccess contents were [CODE]# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] …

0
72
Member Avatar for 080346

Hello everybody m trying to pass a parameter to my controller.php from javascript but it doesn't passing and give me error of undefined URL kindly help me i shall be thankful to you...Here is my code function JSfunction(assetid) { window.location="controller.php?command=delete&assetid=".assetid; }

Member Avatar for Airshow
0
109
Member Avatar for atfOnly

Hello people :) i'm trying to insert query result into 2 dimensional array i have tried the following way.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ for($i=0;$i<=$index;$i++){ if(isset($myarray[$i]['array1'])|| isset($myarray[$i]['array2'])){ array_unshift($myarray[$i]['array1'],$row['study_period']); array_unshift($myarray[$i]['array2'],$row['test']); }//endif }//endfor }//endwhile [/CODE] But, it failed i also tried.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ $myarray=array( array("array1"=>$row['study_period'],"array2"=>$row['test']) ); }//endwhile [/CODE] it failed too since it …

Member Avatar for atfOnly
0
270
Member Avatar for whiteyoh

Hi All, I have a number of arrays stored as a text string in a database (ive included it at the very bottom). As this is a text string i need to know how to convert it back into an array. Also, how can i access a single element, i.e …

Member Avatar for NettSite
0
117
Member Avatar for srinidelite

hello dudes, i want to write a program in php which enable user input??? from the user>>> here is the code but doesn't asking any user input....even i enabled pop up block off>> help me out

Member Avatar for MooGeek
0
71
Member Avatar for srdva59

hi, i have this code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); // curl_setopt($ch, CURLOPT_HTTPHEADER, $this_header); curl_setopt($ch, CURLOPT_POSTFIELDS,$post); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_REFERER, $referer); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); $result = curl_exec ($ch); // echo $result; curl_close ($ch); that works fine with a simple post …

Member Avatar for MooGeek
0
144
Member Avatar for apanimesh061

I have Windows Vista (no service pack), due to which FastCGI is not there ! Where else can I run PHP ?? Please help !

Member Avatar for pritaeas
0
38
Member Avatar for geekme
Member Avatar for amanu092

I am working in a joomla project.Suddenly i see a unwanted link as [url removed] is added to some text of some pages. i can not understand and cannot fix the problem. please help me removing the unwanted link.

Member Avatar for jsolutions
0
148
Member Avatar for RazorRamon

Hello all, I'm trying to build a forum site. The code below works fine but I dont know how to catch it from the address bar. I'm having trouble finding tutorials to help me with this. viewtopics.php [CODE] echo "<tr bgcolor='#6698FF' ><td><a href='viewcomments.php?id=".$rows['topic']."'> ".$rows['topic']."</a></td><td>".$rows['username']."</td><td>".$rows['timestamp']."</td></tr>"; [/CODE] Address Bar [CODE] http://localhost/testsite/viewcomments.php?id=Cowboys%20Dancehall [/CODE] …

Member Avatar for RazorRamon
0
288
Member Avatar for abhi10kumar

I create rewritecond for pages without extension, but it is not working.. Here is the complete code of .htaccess: [CODE] Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/ RewriteRule ^(.*)index\.php$ /$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]*)$ /products.php?pname=$1 [L] RewriteRule ^([^./]+)/?$ $1.php [L] [/CODE]

Member Avatar for diafol
0
76
Member Avatar for geekme

I have all the syntactical knowledge of php and I'm currently learning Ajax.I need to work on some project so as to enhance my knowledge and apply what I've learned so far.Knidly suggest as to how can I do that ?Will i need to buy a domain for this? Regards

Member Avatar for diafol
0
167
Member Avatar for krabz01
Member Avatar for Pro2000

Hello everybody. Do you know how to translate URLs in a text automatically?? I mean I want it just like the option below the page of creating a new thread in this website.. That option makes the written URLs in the thread appear as clickable links. Thanks in advance.

Member Avatar for diafol
0
61
Member Avatar for atfOnly

Hello all! :) Do you have any link on some complete reference on multidimensional array in php?? Please tell me.. thanks a lot.

Member Avatar for atfOnly
0
169
Member Avatar for whiteyoh

hi all, Im after a little help here. I have a md array stored as text in mysql. what i need to do is get it out (which ive done), then store it as a real array so i can loop through it to output as a csv file (which …

Member Avatar for whiteyoh
0
100
Member Avatar for aloul84

hi When I try to load a new video this message appears Sometimes this message appears and sometimes does not show [CODE]Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 403 <?xml version='1.0' encoding='UTF-8'?><errors><error><domain>yt:quota</domain><code>too_many_recent_calls</code></error></errors>' in /home/******/public_html/Zend/Gdata/App.php:709 Stack trace: #0 /home/******/public_html/Zend/Gdata.php(221): Zend_Gdata_App->performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) #1 …

Member Avatar for aloul84
0
277
Member Avatar for Pro2000

Hello everybody. I've created a PHP page that adds a new record to a table. I want to know what's the ID of that created record in that table. For example: [CODE]mysql_query("insert into tableName(field_A,field_B) values('valueA','valueB')");[/CODE]

Member Avatar for Pro2000
0
88
Member Avatar for Xufyan

Hello, I am damned confused about the versions of PHPs , which version include Object oriented PHP ? and which PHP is better to learn ?? please explain

Member Avatar for MooGeek
0
135
Member Avatar for kurtopia

can someone help me how to transfer files from one server to another server using curl?? please help me, i really need your help

Member Avatar for reygcalantaol
0
196

The End.