39,393 Topics

Member Avatar for
Member Avatar for rpv_sen

[CODE]Hi Friends, I have written a code with some example script for generating report in PDF with PHP and MYSQL. But i am unable to fetch the data from my table. So Please help me to solve this issue. Thanks <?php $today=date('Y-m-d'); $hostname = "localhost"; $database = "bdname"; $username = …

Member Avatar for monalia
0
4K
Member Avatar for neha05

I am inserting the csv file into the database but it not inserting in proper way,the coloums are merged into each other,im not getting where im doing mistake .please help me in that my code`Inline <?php //database connection details $connect = mysql_connect('localhost','root','123456'); if (!$connect) { die('Could not connect to MySQL: …

Member Avatar for neha05
0
358
Member Avatar for rpv_sen

Hi I am trying to convert julian date in to date format. can any one please help me. **For Example:** Julian date - 114021 Output Should be as below 2014/01/21 - (YYYY/MM/DD)

Member Avatar for pritaeas
0
381
Member Avatar for karthik.r

Hi how can i comvert the string type for ex : 10/12/2012(d/m/Y) to date .. it changes date to month and month to date.. my expected format is d/m/Y format only...

Member Avatar for pritaeas
0
82
Member Avatar for rpv_sen

Hi Friend I am trying to connect my MSSql server 2008 R2 server using php. I am getting an error as below `Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\test\connect.php on line 4` and the code is below <?php $serverName = "servername\sqlexpress"; //serverName\instanceName $connectionInfo = array( "Database"=>"dbname", "UID"=>"us", "PWD"=>"ps"); …

Member Avatar for rpv_sen
0
289
Member Avatar for praveencrony

Dear all, In my website admin page.post a new property.the details are posted in my facebook fan page wall. I am using PHP SDK. Some times its working fine. Sometimes redirect to my return url it contains code parameter and stopped i am using this code Anyone help me <?php …

0
231
Member Avatar for marin cristina

hello as I could have and I Categories subcategory. PHP For example: Categories - Action / Horror / Comedy series - to be Category Tv Series - Arron / Fringe / and so appear in episodic - Arron / Fringe Help me please thank you Here's what's Codu Category: <?php …

Member Avatar for marin cristina
0
339
Member Avatar for eddstyson

i have managed to code this CSV file and it is working well..the only problem i am getting is the variable error on the form..i get this error ...Notice: Undefined variable: data in C:\xampp\htdocs\helper.php(527) : runtime-created function on line 22 how do i resolve the error? this this my sample …

Member Avatar for eddstyson
0
246
Member Avatar for duttydea

Hi all, I have an array: [CODE]<?php $product_id = $_GET[id]; //the product id from the URL $action = $_GET[action]; //the action from the URL //if there is an product_id and that product_id doesn't exist display an error message if($product_id && !productExists($product_id)) { die("Error. Product Doesn't Exist"); } switch($action) { //decide …

Member Avatar for diafol
0
2K
Member Avatar for jstfsklh211

**Clearing up php retrieval of form variables** the basics on how to best submit and retrieve form values in php focusing on checkboxes because they seem to be the most diffucult to understand. When posting form data to another page your naming convention makes all the difference in the world …

Member Avatar for carllagerfeld
6
568
Member Avatar for sallaudin

{"Data":{"Date":"08:09 20-01-2014","SchoolID":"923214157777","Type":"1","Nic":{"3520135201001","3520135201002","3520135201003"}}}

Member Avatar for pritaeas
0
127
Member Avatar for Amr87

I have the following code that craete homepage builder setting page under the appearance tab I am saving and retrieving the option successfuly but when I am echoing them to the hidden input type values I got NULL value why is that although the saving and retrieval is ok ? …

0
87
Member Avatar for everton.retweets

Hi Everyone, I am new to PDO PHP - I am getting to grips with the insert statements with bind_param. What I am a bit confused about is how to update a table where id = $var I have an image upload script that works fine, as it uploads the …

Member Avatar for pritaeas
0
230
Member Avatar for BenWard

Hi, I've got a class in PHP with an array of objects in it. I need to loop through these objects and call 2 methods on them but I'm not sure of the best approach. When dealing with arrays, if you use foreach, you can't seem to update the actual …

Member Avatar for BenWard
0
234
Member Avatar for stokie-rich

Hi guys I'm rich and I'm new to this forum and I hope I can help you guys as well as helping me! I have been to staffs uni and got a 2:2 in applied it so I know almost all the in's and out's about IT and PHP, I …

Member Avatar for stokie-rich
0
343
Member Avatar for praveencrony

In my website admin page. I post a new property.the details are posted in my facebook fan page wall. I am using PHP SDK. Some times its working fine. Sometimes it ask swith account. and redirect to my return url contains code parameter and stopped Anybody Help me

0
118
Member Avatar for joshl_1995

Hello Community, I have recently been having a big of a look into connecting to a database using PDO but I'm not too sure what I should stick with, the normal way to connect to a MySql database or should I start using PDO. What would be better to use? …

Member Avatar for joshl_1995
0
259
Member Avatar for ignnniter

I have a website and i need to make a feature that when a user post a link(s) it will become short, by means of a url shortening service API. Here's the API using Php JSON $api_url="http://s.ourbyte.org/api?api=cSuPDdLzHmPq&url=$message"; $res= @json_decode(file_get_contents($api_url),TRUE); if($res["error"]){ echo $res["msg"]; }else{ echo $res["short"]; } } And here's the …

Member Avatar for JorgeM
0
340
Member Avatar for kristo_1

sorry for my code but this is only a practice code, i m trying to remove user access links, i displayed all the links that corresponds to the selected user access here's the code and database Select user levels <p class="left"><b>User Level Information</b></p><br> <table class="left"> <tr> <td id="TD3"><B>User Level ID</B></td> …

Member Avatar for diafol
0
149
Member Avatar for ignnniter

ello There, i want to ask, how can i customize this function to allow only certain email domain. like for instance A & B wants to register, A email = test@ymail.com B email = test@onlyalloweddomain.com how can i validate that? here's my function function validate_values() { // Create the array …

Member Avatar for Tpojka
0
5K
Member Avatar for RikTelner

`The Red Fox jumped over the Lazy Dog` Could be translated to: `The%20Red%20Fox%20jumped%20over%20the%20Lazy%Dog` How to translate it to: `The_Red_Fox_jumped_over_the_Lazy_Dog`? To make it more eye friendly.

Member Avatar for CreatorZeus
0
209
Member Avatar for spowel4

In Laravel 4, which I am just beginning to learn, I have this bit of logic in my controller: `$guid = Input::get('guid');`. I know that part works because I can echo out the value successfully. I am trying to pass the $guid value to a view through a redirect like …

Member Avatar for spowel4
0
5K
Member Avatar for vizz

How to follow and unfollow users? With following code, list of users appears. containing link to action.php If not following anyone goto action.php to follow that user from list or if following then show link for unfollow How to check from table **following** **condition check:** if ($following) { <a href='action.php?id=$uid&do=unfollow'>unfollow</a>"; …

Member Avatar for pritaeas
0
222
Member Avatar for ms061210

Hello, I need some help here. I cannot make the right query. In my code, I want to insert a data into my database. But the id_number will have different values. Id_number have different values because its from a group. So with that group of id_number I want to insert …

Member Avatar for urtrivedi
0
289
Member Avatar for ceeandcee

I have a form where the user can simpy enter the field they want to query and it takes them to an update page. In that page I define the variable as follows: <?php $tcode="$_POST[teamID]"; ?> Then in various places I can use $tcode to insert the result from the …

Member Avatar for veedeoo
0
170
Member Avatar for dinhunzvi

i have a function which is supposed to check if a number is a floating-point number. this is the structure of the function function isValidFloat( $string ){ if( !preg_match( "/^[0-9]+(.[0-9]+)?$/", $string ) ){ return false; } } for numbers such as 1 or 8 it's correctly validating but not for …

Member Avatar for pritaeas
0
230
Member Avatar for mattyd

Hi, I finally figured out how to take a row from a table and display it on a page. Big deal, huh? That was not exactly my main goal, though. When a User submits a form I need *that data* to display. I've struggled with this. I now figure that …

Member Avatar for iamthwee
0
252
Member Avatar for AARTI SHRIVAS
Member Avatar for matrixdevuk
0
377
Member Avatar for shakti_1

I want to search all record from database on multiple(comma separate) keyword like php,mysql or php with like . mydatabase record id skill 1 php,java 2 php 3 mysql 4 java,mysql,php if i search mysqlthen total record should be 2 and search php,java it should be total record should be …

Member Avatar for pritaeas
0
105
Member Avatar for Transcendent

If I had this: <html> <body> <form action="welcome.php" method="post"> Name: <input type="text" name="name"><br> E-mail: <input type="text" name="email"><br> <input type="submit"> </form> </body> </html> HOW DO I TAKE WHAT SOME TYPE INTO MYSQL. Do I create a table first ect. Examples pleases

Member Avatar for pritaeas
0
125

The End.