473,538 Members | 11,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
0
871
thread by: gintare | last post Nov 9 '15 by: gintare
How to pass array as parameter to controller action using Symfony 2? Could you please write an example how to define route, which contains unknown length array as a parameter. For instance url: "]http://localhost:8000/blog/post/?tags= where number of tags varies from 0 to 100. Also example controller for this route, where action returns values...
2
987
thread by: ExeByte | last post Nov 9 '15 by: ExeByte
I have the following code to get the list of images from a directory. Then I will display them I manage to get them, but when I try to display I only see the first one: array($timg); $JCOUNT=0; $JTOT = 0; $tts = $dirname."/{*.jpg}"; foreach(glob($tts,GLOB_BRACE) as $tt){ $JCOUNT=$JCOUNT+1; print_r2("JCOUNT = $JCOUNT"); $timg...
0
1,017
thread by: gurjit | last post Nov 10 '15 by: gurjit
Hello, Pls help me with this. I want to output data from database(mySql).Output them in pdf form using FPDF (like a report). My problem is that, Not all the data from the db are being outputted. Just a first(5 cells) is showing. I dont know how to fix this anymore. pls help me..am just a newbie. Here is my code.... <?php ...
5
6,847
thread by: drunreal | last post Nov 12 '15 by: monasinha
Hello , I would like to ask if its possible to write an php script that allows me to dont show the actual url of file that is being downloaded . For example i have a file at www.example.com/downloads/file.zip and when an user shows to a link i would like it look sometthink like www.example.com/download.php?t=11 or somethink like that . ...
1
958
thread by: christian20 | last post Nov 12 '15 by: Dormilich
<tr> <td><br><font size=3 >Bill:</td> <td><br> <fieldset class="bill" > <input type="checkbox1" name="bill" id="paid" required /> Paid &nbsp; <input type="checkbox2" name="bill" id="unpaid" required /> Unpaid </fieldset>
1
1,082
thread by: raviansalman | last post Nov 12 '15 by: Dormilich
i am writing a code but not having proper output {<body> <?php include("connection.php"); ?> <table border="1px"> <tr> <td>Gender</td> <td>Count</td> </tr> <?php $query=mysql_query("SELECT gendar, count(teachercode) from teacher group by gendar") or die (mysql_error()); ?> <?php while($row=mysql_fetch_array($query)) {?> <tr> <td> <a...
1
1,051
thread by: Mohd Hasan | last post Nov 16 '15 by: Dormilich
i want to make a daiymotion video downloader , how can i do it using curl fucntions. which functions are used for this task
2
1,221
thread by: gintare | last post Nov 16 '15 by: gintare
I am following course bout Symfony2, Extending Symfony2 Web Application Framework, Chapter 1 https://www.packtpub.com/packtlib/book/General/9781783287192/1/ch01lvl1sec08/Services I can not understand how is implemented line: $boundaries = $this->get('user_locator')->getUserGeoBoundaries(); Where is defined 'user_locator', where is defined...
1
1,050
thread by: deizi23 | last post Nov 16 '15 by: Rabbit
array = array( array(48,72,13,14,15), array(21,22,53,24,75), array(31,57,33,34,35), array(41,95,43,44,45), array(59,52,53,54,55), array(61,69,63,64,65) );
9
1,825
thread by: deizi23 | last post Nov 17 '15 by: Rabbit
Please help me to find the biggest sum of row and the biggest sum of column Example: array: 1,2,3,4 5,6,7,8 9,10,11,12 13,14,15,16 max sum by row: 58;
1
1,480
thread by: deizi23 | last post Nov 18 '15 by: Niheel
i want to print 1,3,5 rows from 2d array. Can i use some kind of implode or loop? $array = array( array(11,12,13,14,15,16), array(21,22,23,24,25,26), array(31,32,33,34,35,36), array(41,42,43,44,45,46), array(51,52,53,54,55,56), array(61,62,63,64,65,66) );
6
1,404
thread by: inspectelement | last post Nov 18 '15 by: inspectelement
I am trying to change leaders on Google Docs as a prank, but to no luck. On the frame source I saw this. },"changeOwnerAllowed":false, "multiOwnerAllowed":false, "allowedVisibilityStates" :, "changeWritersCanEditAclAllowed":true, "writersCanEditAclAllowed":true, "allowDownloadOptionAvailable":false, "groupAsOwnerAllowed":false,"
1
925
thread by: Toxicous8 | last post Nov 20 '15 by: Dormilich
Hey everybody.I was hoping to get some help.I'm making a website.An awesome site concerned in Lucid dreaming.I am using Css, Javascript and html(5.1).I And I think i'm advanced at css and html.The website is reaching the roof,by design and development.I've even validated it at AAA2 level and it was clear of mistakes.But the thing is I REALLY want...
3
2,454
thread by: georget | last post Nov 21 '15 by: RonB
Hie programmers.I am still new to web development. I am trying to match a textbox value to the one in the database. Here is my script below : //Payments verification $sql = "SELECT Econet_num FROM ecocash"; $result = $conn->query($sql); if ($result->num_rows > 0) {
2
1,144
thread by: deizi23 | last post Nov 22 '15 by: Dormilich
I have to print all values with one loop (IT DOESN'T NEED print_r) this is what i made til now but it isn't working properly $array = array( array(11,12,13,14,15,16), array(21,22,23,24,25,26), array(31,32,33,34,35,36), array(41,42,43,44,45,46), array(51,52,53,54,55,56), array(61,62,63,64,65,66)
1
1,256
thread by: deizi23 | last post Nov 23 '15 by: Dormilich
$str = 'asd-12sdf45-56asdf100'; function get_numerics ($str) { preg_match_all('/\d+/', $str, $matches); print_r( $matches); } get_numerics($str); But I don't know how to get negative numbers "-12", "-56"
0
837
thread by: samvb | last post Nov 25 '15 by: samvb
Hiya all, I really need your help with understanding. But first, please avoid offering wordpress or so as a solution. I have a couple of templates (more to come) done from scratch to meet a specific business type (very specific). My problem if a customer selects one template, how do I really attach it to his/her sub domain? Do I copy the code...
4
1,910
thread by: manjava | last post Nov 27 '15 by: Dormilich
I have macro VBA for example: Project(MODELE_H_FR) contains Modules AvecPP on that i have this function Sub TraitementText() script ... End Sub i need to call this Macro VBA on my Script PHP
1
1,141
thread by: Toxicous8 | last post Nov 29 '15 by: zmbd
I mean when I try to create a database, it says access denied for '@'localhost' and such thing like that.I didn't read it carefully because I thought it was because of the localhost.And I tried to configure my.ini(I am using xampp by the way).Is there any way I could fix this?
1
945
thread by: Toxicous8 | last post Nov 29 '15 by: Luuk
Hi,Toxicous8 again.And I have a question.I just made a registration form and a database for it.The password,the username, the email is stored in the database which I called it reg.But how do I make the database searchable for the login page?I mean how do I make it allow a user to enter to another page if and only if the user typed the correct...
2
1,154
thread by: viana2020 | last post Nov 30 '15 by: viana2020
$optWeek = array(0=>'Please Select'); for($i=1;$i<=52;$i++) { $optWeek = 'Wk - ' . $i; } for($i=-1;$i<=0;$i++) { $optYear = date("Y")+$i; }
2
1,717
thread by: deizi23 | last post Nov 30 '15 by: maNdy3
I have to sort 2d array $items = array( array(15, 16, 8, 1), array(2, 3, 4, 7), array(9, 11, 19, 6,) ); with bubble sort ant to get something like this 1,2,3,4 6,7,8,9
1
1,469
thread by: ExeByte | last post Dec 1 '15 by: KenWong
Hi All, May I write the following code in PHP? echo '<ol><FORM NAME="HOUR" ACTION="TForm.php" METHOD="GET">'. '<input type="submit" name="subDisplay" value="DISPLAY">'. '<input type="submit" name="subThumbs" value="SLIDESHOW">'. '<input type="text" name="JCC" size="12" readonly value="'.$JCC.' images in ">'. '<input...
3
3,120
Ajay Bhalala
thread by: Ajay Bhalala | last post Dec 1 '15 by: Dormilich
Hello all, I want to make a script for multiplication of 2 matrix using 2D array in php. Can anyone provide the code or program for it. or can anyone give the hint about this? Please help me.
1
1,159
thread by: manjava | last post Dec 3 '15 by: Dormilich
Hi, I have issue with this script : chr(13) and chr(10).chr(9): there code ASCII for that CR LF -------> str_replace(chr(13).chr(10).chr(9),"",$object); it's not replace this by NULL how can i do that please

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.