39,323 Topics

Member Avatar for
Member Avatar for daniel36

I am developing calendar in php.in this i created next and previous button ,but it is not working greate.I used get variable for Next and previous.but only previous button is only working.this is my code- <? if (isset($_GET['nm'])) { if($_GET['nm']==0) { $previous="pm=1"; $next="nm=1"; $month=0; } else { $nm=$_get['nm']+1; $pm=$_GET['nm']-1; $previous="nm=".$pm; …

Member Avatar for daniel36
0
150
Member Avatar for chunkbar

$ratequeri="SELECT type FROM roomreservation ORDER BY room_no DESC LIMIT 1 "; mysql_select_db($database_ast_conn, $ast_conn); $Result111 = mysql_query($ratequeri, $ast_conn) or die(mysql_error()); $omgg=mysql_fetch_array($Result111); $rrate; if($omgg=="Deluxe Floor Room"){$rrate=350;} elseif($omgg=="Executive Club Floor Room"){$rrate=350;} elseif($omgg=="Junior Suite"){$rrate=350;} elseif($omgg=="Executive Suite"){$rrate=350;} elseif($omgg=="Presidential Suite"){$rrate=350;} $insertqueri="INSERT INTO roomreservation (rate) VALUES ('$rrate') "; mysql_select_db($database_ast_conn, $ast_conn); $Result1111 = mysql_query($insertqueri, $ast_conn) or die(mysql_error()); ///////////////////////// …

Member Avatar for simplypixie
0
129
Member Avatar for Wailintun

Hi!everyone.Now I need your help and it's important.I am doing assignment about country/state/city dropdown list.I found the code in javascript for dropdown to change auto, depend on country state and city.I want it only in php code and connect with database.Submit button to search and link to another web page. …

Member Avatar for LastMitch
0
148
Member Avatar for neoanomally

I have inherited a web site that was designed in php and perl. the code was poorly designed but it has evolved into a very complex system. I am thinking about refactoring the code to make it more readable and more efficient because there is a lot of redundancy and …

Member Avatar for neoanomally
0
178
Member Avatar for SMode55

Hello, I am running a script with JQuery's $.POST the code is PHP though.It's just a basic login script that that loads from the main login page.The script itself runs fine till the end when I try to direct the user into the control panel with the header() function and …

Member Avatar for diafol
0
138
Member Avatar for AARTI SHRIVAS

i am googling for mvc in php but not get proper result is there any good website from where i can learn mvc for php and, is any other framework needed for this mvc i am currently using bitnamiwamp apche server for php what framework is used for mvc can …

Member Avatar for LastMitch
0
150
Member Avatar for dan_code_guru

How do i mod rewrite so that i have a page with a get variable is passed to parameter. I want page.php?id=67/images to go to images.php?pageId=67 Thanks

Member Avatar for LastMitch
0
212
Member Avatar for Lonestarjack

I am trying to print out PHP system arrays by looping through an array of the names of the arrays that I want to print. I am sure there is a simple way of escapeing the array names, but I can't seem too get it. I have a long hard …

Member Avatar for cereal
0
153
Member Avatar for joshl_1995

Hello Community, I was wondering why won't cURL work on my webstie when i says cURL is supported.

Member Avatar for joshl_1995
0
251
Member Avatar for NagyAndor1995

Hi, I've been searching for a solution for this problem, but couldn't find anything that would help me. I get this error: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\lab2.andornagy.info\lib\core\login.php on line 15 My codes: Login.php: <?php include_once("../autoload.php"); $login = new Login(); ?> <!DOCTYPE html PUBLIC …

Member Avatar for NagyAndor1995
0
321
Member Avatar for sabarinadh.ch

I want to develope a website in php for secure file sharing. The idea of the site is same as the mediafire.com and other file sharing networks. When the user upload the files it provides the public url for that file. Can anyone help me in this topic. Thank you

Member Avatar for AARTI SHRIVAS
0
120
Member Avatar for AARTI SHRIVAS

few days before my phpmailer function works fine but now it gives me this error The following From address failed: mona18shri@gmail.com Mailer Error: The following From address failed: mona18shri@gmail.com SMTP server error: 5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 d17sm9100541obu.0 - gsmtp what can i do for this …

Member Avatar for AARTI SHRIVAS
0
459
Member Avatar for cgull

Hello, I am developing a web site with codeigniter. I have a form where I have a few group radio buttons. When validation fails, one group radio keeps its value but the other doesn't. I can't find why. My code for the radio that does not work: <label for="accommodationYes" class="accomm" …

Member Avatar for veedeoo
0
4K
Member Avatar for Vijaysurya

Hai everybody, i have problem in following query. this query working fine in seperated, i add two array value. totalcount display first value. what is the problem in my query. anybody plx help me $sql="SELECT count( DISTINCT friendoffriends_id ) AS count from mycommunity WHERE personal_id =:personal_id and blocked=0 "; $query …

Member Avatar for diafol
0
102
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to pass a file from my computer (eg. using the <input type="file"/> script) to my api on my website?

Member Avatar for veedeoo
0
159
Member Avatar for Motifaithed

Good Day, Can anyone help me how to delete duplicate record in a dropdown list? I have a database with the column "material type" and "material model". For every material type there are a lot of model, so everytime I add record to the database, the column material type will …

Member Avatar for Motifaithed
0
1K
Member Avatar for davy_yg

<td>Jumlah :</td> <td><input type="text" size="12" maxlength="22" name="Jumlah" value="2 box 1 pack"></td><br> <tr> <?php // use date picker to automate date ?> <td>Tanggal :</td> <td><input type="date" id="datepicker" size="12" maxlength="22" name="Tanggal" value=""></td><br> </tr> <?php if (isset($_POST['submit'])){ mysql_query("INSERT INTO Stock (Produk,Jumlah,Tanggal) VALUES ('$_POST[batch]','$_POST[Jumlah]','$_POST[Tanggal]')"); echo "<script type=\"text/javascript\"> window.location = \"print.php\"; </script>"; } ?> </table> …

Member Avatar for TonyG_cyprus
0
124
Member Avatar for vishalonne

Hi Every Body How I can add leading zeros in a number for example if No. is 4 it should display 0004 if No. is 41 it should display 0041 if No. is 441 it should display 0441 Please give some hint.

Member Avatar for diafol
0
180
Member Avatar for GlenRogers

I,m going through a tutorial for pagination using php mysql and ajax. I'm getting this error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\phpAjaxPagination\pageData.php on line 16 This is the file. <?php include_once('inc/dbConnect.inc.php'); include_once('inc/pagination.inc.php'); if(isset($_POST['pageId']) && !empty($_POST['pageId'])){ $id=$_POST['pageId']; }else{ $id='0'; } $pageLimit=PAGE_PER_NO*$id; $query="SELECT post,link from pagination …

Member Avatar for diafol
0
160
Member Avatar for ebc3142

I'm trying to use this code to populate my drop down menu from a mysql table: <select name="fileselect"> <?php $pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', ''); $stmt = $pdo->prepare("SELECT dateid FROM date_header"); $stmt = $pdo->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo "<option value='" . $row['dateid'] . "'>" . $row['dateid'] . "</option>"; …

Member Avatar for diafol
0
7K
Member Avatar for bradly.spicer

Hey all, Just some questions regarding queries and the logic behind what I'm trying to achieve. So basically, I have these rows of information inside a MSQL table called Customers. The columns are as follow: id customer_name customer_name_letterhead customer_notes systype status signaltype verification address postcode telephone mobile mobiletwo email mainarea …

Member Avatar for Squidge
0
127
Member Avatar for dashawk

Hi guys, I have a php code that displays a list of dishes where a user can check on those dishes and then save the selection to the database. My code works find when selecting and saving the data. But the problem is that when I try to uncheck one …

Member Avatar for dashawk
0
272
Member Avatar for joshmac

I am using a framework, and I am having an issue with getting the results of this particular associative array. All others work except for this one and I am not sure why. This one only returns one result. Here is what I have in my model: public function listStats($id) …

Member Avatar for joshmac
0
227
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to delete a folder and everything in the folder in ftp.

Member Avatar for cereal
0
385
Member Avatar for developer707

Hello to everyone, I want to direct foreign visitors of my site in one directory, this based on their IP. My site structure is: index.php(file) |->foreign(directory) I think that this can be done with .htaccess, but I don't know how Can someone gives me an example how to do this?

Member Avatar for cereal
0
402
Member Avatar for brenton_77

Hi All, I've hit a brick wall trying to get the jquery autocomplete to work correctly. The problem is with the .php file and the way the While loop works, as what it does is create a array for every name rather than one single array. I've tried to move …

Member Avatar for brenton_77
0
331
Member Avatar for FakeTales

basically i am using xpath for a search query, the results display like this Array ( [0] => SimpleXMLElement Object ( [TITLE] => Empire Burlesque [ARTIST] => Bob Dylan [COUNTRY] => USA [COMPANY] => Columbia [PRICE] => 10.90 [YEAR] => 1985 ) [1] => SimpleXMLElement Object ( [TITLE] => Greatest …

Member Avatar for FakeTales
0
201
Member Avatar for GraficRegret

is it posible to pass information held inside a MySQL database into a javascript array using PHP code? something like: $sql = mysql_query("SELECT * FROM uploads WHERE ref_id = '$refID'"); //javascript below var array = new Array() while(<?php echo $row = mysql_fetch_array($sql)?>) { array.push(<?php echo $row['name']; ?>) } or am …

Member Avatar for diafol
0
312
Member Avatar for GraficRegret

is there any way to pass a variable from php into a variable in javascript? or do I need to revert to AJAX to get this done?

Member Avatar for diafol
0
3K
Member Avatar for nunuaziz_

Been getting PHP Fatal error: Cannot redeclare class Facebook error since... Can anyone please enlighten what does this means?

Member Avatar for veedeoo
0
203

The End.