39,316 Topics

Member Avatar for
Member Avatar for garyjohnson

Hello, I have a php script which detects if an image is vericle or horizontal. Then it resizes it to my certian specifications. An issue is I want the script to resize the image and then create a thumbnail image as well. The script works when resizing an image but …

Member Avatar for garyjohnson
0
135
Member Avatar for RigaConnectCom

This is working code $sql = "REPLACE INTO 2_1_journal (Number,RecordDay, RecordMonth) VALUES "; $insertQuery = array(); $insertData = array(); foreach ($_POST['row_id'] as $i => $row_id) { $insertQuery[] = '(?, ?, ?)'; $insertData[] = $row_id; $insertData[] = $_POST['date_day'][$i]; $insertData[] = $_POST['date_month'][$i]; } if (!empty($insertQuery)) { $sql .= implode(', ', $insertQuery); $stmt …

Member Avatar for RigaConnectCom
0
1K
Member Avatar for dhani09

I have some html code in my php script which i'm executing through echo. Suppose i want to access an image on the server which is saved in my uploads folder from within that echo, how do i do it? I tried this $image = $row[8] //fetching the image name …

Member Avatar for dhani09
0
8K
Member Avatar for simplypixie

As usual I am having a love hate relationship with jQuery and Ajax :) I have a PHP file that uploads and resizes and image and stores the data in the database, which on its own works fine. I am now trying to do this through a jquery modal/dialog box …

Member Avatar for simplypixie
0
330
Member Avatar for bfitzgerald

Hi Guys I'm working on a little log in syetms for my website, hwoever have hit a little snag. I'm using cookies to track which users are logged in. I'm trying to make some pages restricted to vistors that have logged in only, so I decided to use `if($_COOKIE["loggedIn"] == …

Member Avatar for bops
0
250
Member Avatar for mrvijayakumar

Hi all, Currently am developing a wordpress blog to download free resouces. I need a pure PHP script that allow useres to download files after liking my facebook page/follow my twitter page. Thanks in advance...

Member Avatar for mrvijayakumar
0
99
Member Avatar for OsaMasw

hey guys how are you, I want to create a function ( or more than function ) to show most uploaded users in the site, so I've created simpple code to test this and its worked <?php $sql = "SELECT username FROM users"; $run = mysql_query($sql); if (mysql_num_rows($run) > 0 …

Member Avatar for OsaMasw
-1
172
Member Avatar for McLaren

Hello, For me it is weird this thing: Let say there is a part of xml: <result comments="LAST :T3 DIST : 3/4" favouritenews="WINNER & T3" id="3131846" message="OFF" nonrunners="0" ran="6" settlingstatus="D" statuscode="O"> <position fav="jf" id="8669343" name="Elizas Impact" num="1" photo="N" position="1" runnernumber="4" selectionref="26973474" sp="11/4" winnersTime="00:00:28.920"/> <position id="8669348" name="Amazing Madam" num="2" photo="N" position="2" …

Member Avatar for pritaeas
0
117
Member Avatar for veranopage

The issue... janrain is a application that allows for other websites to login using facebook/myspace/yahoo and various other providers. When I put it on my phpox website, it goes thru the process but when it comes back to my website, it sometimes says authenticaion canceled. It has never let a …

Member Avatar for cereal
0
1K
Member Avatar for baruchM

I have tested out my procedure on my home machine. It woks pretty well I know there is output from the sql. Now I want to try it out on the host. It gives no output. Here is my php code $bob="call seeker($profound)"; if (mysqli_multi_query($conn,$bob)) { echo "<hr>"; echo "<table><th>Section</th><th>Author</th><th>Title</th>"; …

Member Avatar for pritaeas
0
272
Member Avatar for davidjennings

Hi Good evening all I am trying to capture the below multi dimensional array using either POST or GET. the data is passed from a form and is displayed in the array format using print_r(GET); The packagecount = 2 indicates the mumber of packages and also corresponds to 1 and …

Member Avatar for paulkd
0
220
Member Avatar for ehpratah

Hi Guys wanna ask some assistance/ help I'm making something like notification with jquery and php and its working fine now the only problem that i encounter is on the notification its only show one data repeatedly its not showing the other data that supposed to be showed Here's my …

Member Avatar for ndeniche
0
632
Member Avatar for AARTI SHRIVAS

<?php //global $wpdb; /* Plugin Name:new plugin Description: A simple hello world wordpress plugin Version: 1.0 Author: arti shrivas Author URI: http://yourdomain.com License: GPL */ /* This calls hello_world() function when wordpress initializes.*/ //Note that the hello_world doesnt have brackets. add_action('init','new_plugin'); function new_plugin() { //echo "Hello World"; global $wpdb; $table_name …

Member Avatar for AARTI SHRIVAS
0
285
Member Avatar for bfitzgerald

Hi Guys I'm trying to create a page which uses session data to find a user in a database and then sends the events that this user has signed up to. I'm a bit of a newbie and have got very confused with where I am at. I am using …

Member Avatar for bfitzgerald
0
260
Member Avatar for Nirmeen Ased

<td width="186" align="right"><label for="collegetxt"></label> <select name="collegecategory" dir="rtl" id="collegecategory" class="title"> <option value="-1">Choose college</option> <?php $rs=$db->GetAllCollegCategory(); while(list($name)=mysql_fetch_array($rs)){ echo "<option ".($collegSearch==$name?" selected=selected ":"")." value='$name'>$name</option>"; } ?> </select> </td> </tr> <tr> <td> <strong>Teacher Number:</strong></td> <td width="217" align="right"><label for="Teachesearch"></label> <label for="TeacherNo"></label> <input type="text" name="TeacherNo" id="TeacherNo" class="title" checked="checked"/></td> <input type="submit" name="evlBtn1" id="evlBtn1" value="Evaluate" style="width:119px;height:39px;font-size:16px;" /> Hi, …

Member Avatar for Zagga
0
326
Member Avatar for nikola.pavlicevic

Hi guys. Can you tell me what do you think of No Glue project? The aim is to create a set of loose components in PHP that can be used individually or combined to make web applications. Whoever likes the idea can join the project too. [Click Here](https://bitbucket.org/npavlicevic/no-glue) No Glue …

Member Avatar for cereal
0
171
Member Avatar for shakayu

Hello Friends, Am actually trying to get a Foreign key which is a Primary key in Diagnosis table Controller: <?php class AppTreatment extends CI_Controller { function AppTreatment() { parent::__construct(); $this->view_data['base_url'] = base_url(); $this->load->model('Apptreatment_model'); $this->load->model('Patient_model'); if(!$this->session->userdata('is_logged_in') ){ $this->session->set_flashdata('login_error', TRUE); redirect(base_url() . 'index.php/homepage'); } } function index() { $data['patient']=$this->Patient_model->getAllpatients(); $data['AppTreatment']=$this->Apptreatment_model->findAll(); foreach($data['AppTreatment'] as …

Member Avatar for diafol
0
377
Member Avatar for vizz

I have some IP list and 10 links stored in mysql. How to visit all links automatically in browser with assigning IP from database? After 10 links visited, how to change IP again i.e. (1 IP for 10 links) I want to use javascript to redirect to new page after …

Member Avatar for harry247
0
782
Member Avatar for SQLpower

Hello guys, Long story short, when I register a user on my website, it enters for every single column value 0. It should be due to the fact that's not picking up the data from my registration page? Although, it should be ok as I am only picking up the …

Member Avatar for SQLpower
0
192
Member Avatar for mogaka

$res=mysql_query("SELECT code_type,code,date,provider_id FROM billing WHERE encounter='$encounter' AND pid='$pid'"); while($row=mysql_fetch_array($res)){ $code_type=$row['code_type']; $code=$row['code']; $date=$row['date']; $provider=$row['provider_id']; $standard_code=$code_type.":".$code; $res1=mysql_query("SELECT procedure_type_id FROM procedure_type WHERE standard_code='$standard_code'"); while($row1=mysql_fetch_array($res1)){ $procedure_type_id=$row1['procedure_type_id']; mysql_query("INSERT INTO procedure_order(procedure_type_id,date_ordered,provider_id,date_collected,order_priority,order_status ,patient_instructions,patient_id,encounter_id) VALUES('$procedure_type_id','$date','$provider','$date','high','pending','$complaints','$pid','$encounter_id')") or die(mysql_error()); } } The above query saves(inserts) more than once in the database. what can be the cause especially in the while …

Member Avatar for Webville312
0
110
Member Avatar for MattD00

I am using a While loop to dispay data stored in a mysql database I would like all the data to be displayed on a single line instead of being displying below the prevoius. while($row = mysql_fetch_assoc($popular)){ echo"<figure> <div align=\"center\"> <a href=\"\"><img src=\"images/" . $row['product_img'] . ".png\" alt=\"" . $row['alt_desc'] …

Member Avatar for |-|x
0
920
Member Avatar for kimmi_baby

Hi, I'm using Joomla at the moment trying to create a component that will display an accordion with 10 catalogue items from a database. The problem I'm having is I'm not quite sure how to create the accordion and connect it with the database so that each row will be …

Member Avatar for LastMitch
0
148
Member Avatar for Troy

class_session.php is a session management and password protection class. It can be used to perform 2 major functions: 1. Create and maintain session state between page hits. The class does this using simple session cache files into which the session is stored as a serialized array. This is similar to …

Member Avatar for LastMitch
1
626
Member Avatar for Mian Waqar

Hi, I need help. Me wrote query in my wordpress theme to fetch latest products. Everything is working perfect. But don't know why pagination not working. I did select 9 post in backend. it's appear 9 on my home page. But i want to show all products on homepage with …

Member Avatar for LastMitch
0
2K
Member Avatar for SureEM25

So i have created this code that is grabing info from a server, the string that it is giving me has these specail charecters that i need to get rid of, then I need to exploade it by another. Here is my code: function fetch_server_info($ip, $port){ $socket = @fsockopen($ip, $port, …

Member Avatar for SureEM25
0
159
Member Avatar for showman13

I have been searching for the past several hours to find a way to rotate through 4-5 different graphics in the header of a web page that I am creating, but have had very little useful help. There seems to be countless jquery slider scripts out there, but even after …

Member Avatar for showman13
0
564
Member Avatar for rohanbajaj222

hii, i have some dynamic urls which are indexed by google , but all my urls are static as generated by htaccess, dont know how those urls got indexed, so whenever some one visits through google , he cant get page 2 on same url,as that generates 404 error eg …

Member Avatar for diafol
0
175
Member Avatar for rayidi

I'm dealing with a SOAP client response for a flight booking application, I successfully got the response, See the response below: <arzoo__response> <Response__Depart> <OriginDestinationOptions> <OriginDestinationOption> <FareDetails> <ChargeableFares> <ActualBaseFare>4850</ActualBaseFare> <Tax>4267</Tax> <STax>31</STax> <SCharge>0</SCharge> <TDiscount>0</TDiscount> <TPartnerCommission>0</TPartnerCommission> </ChargeableFares> <NonchargeableFares> <TCharge>0</TCharge> <TMarkup>0</TMarkup> <TSdiscount>0</TSdiscount> </NonchargeableFares> </FareDetails> <FlightSegments> <FlightSegment> <AirEquipType>321</AirEquipType> <ArrivalAirportCode>DEL</ArrivalAirportCode> <ArrivalDateTime>2013-05-20T08:00:00</ArrivalDateTime> <DepartureAirportCode>BOM</DepartureAirportCode> <DepartureDateTime>2013-05-20T06:00:00</DepartureDateTime> <FlightNumber>601</FlightNumber> <OperatingAirlineCode>AI</OperatingAirlineCode> <OperatingAirlineFlightNumber>601</OperatingAirlineFlightNumber> …

Member Avatar for diafol
0
8K
Member Avatar for noahwilson

Hi friends can anyone suggest me best loging code with php which is high secure. please share your feedback. Thanks.

Member Avatar for diafol
0
309
Member Avatar for sismaster2010

wpml plugin not working for some labels on front end please help http://174.120.60.2/~prime/?property=apartment&lang=ar see this link on this bedroom bathroom and property type not translated please helpo me guys i am using wpml plugin

Member Avatar for diafol
0
120

The End.