39,316 Topics

Member Avatar for
Member Avatar for aoi.serizawa.9

hey guys im trying to compare 2 num_rows the append the result on the $data array then access it via ajax. $get_section = "SELECT * FROM section a LEFT JOIN advisory_sections b ON(a.section_id = b.section_id) LEFT JOIN school_faculty c ON (b.faculty_id = c.faculty_id) WHERE a.school_id = '$school_id' ORDER BY section_level …

Member Avatar for LastMitch
0
151
Member Avatar for dahunsiweb

I need to integrate sms to my php project, i want the user to get an sms on his mobile immediately he got to the welcome page. I had created a registeration form and a form for phone number, my sms gateway is something like this http://index.com/smsapi.php?username=joe&password=something&sender=sendername&recipient=12345678&message=Youarewelcomeblablabla Please help, i …

Member Avatar for LastMitch
0
370
Member Avatar for alanlee9898

Hi, I'm having some problem about the qr code generator for file upload. This is the file that I'm using : https://github.com/aau-ell/qr-php-uploader When I upload a file, it's give me a string input rather than a QR image. Please help! Thanks.

Member Avatar for LastMitch
0
195
Member Avatar for drewpark88

First off, hey everyone just want to let you know I am still very novice when it comes to PHP. Ok so first I will tell you what I am using: I have created a donation form in php that is integrated with authorize.net. I have a processpayment.php that will …

Member Avatar for fourseason
0
257
Member Avatar for GlenRogers

Hi, I have this query to add data to mysql $query = "INSERT INTO products VALUES('', '$acode', '$aname', '$acontent', '$aprice', '$remote_file', '$cat')"; My table is id int(20) primary ai code varchar(200) product_name varch(200) description varchar(600) price decimal(10, 2) imagepath varchar(200) product_id int(10) I have an html textarea to enter data …

Member Avatar for GlenRogers
0
95
Member Avatar for AARTI SHRIVAS

<?php //session_start(); include("connection.php") ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Hedgeis-market</title> <link href="market css.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="jquery-ui.css"> <script src="jquery-1.8.3.js"></script> <script src="jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css" /> <!-- <link href="marnet_internal_css.css" rel="stylesheet" type="text/css" /> --> <script> $(function() { $( …

Member Avatar for diafol
0
547
Member Avatar for otengkwaku

<?php header('Content-Type: application/xml'); $tmpFile = 'tmpFile.txt'; $val = $_GET["http://rss.news.yahoo.com/rss/us.rss"]; echo ($val); $curlHandle = curl_init($val); $filePointer = fopen($tmpFile, "w"); curl_setopt($curlHandle, CURLOPT_FILE, $filePointer); curl_exec($curlHandle); curl_close($curlHandle); fclose($filePointer); $linesArr = file($tmpFile); foreach($linesArr as $eachLine){ echo($eachLine); } ?> I don't know why this code is not working. Can someone help me

Member Avatar for diafol
0
326
Member Avatar for tibormarias

Dear Everyone, I am considering of starting a Smarty website. Does it worth it? Is it good? Does it have any disadvantages? Or any other personal notices? Tibor

Member Avatar for veedeoo
0
361
Member Avatar for syed.nouman.10

Hi all respected member i have a site is [fashplanet ](http://fashplanet.com)my simple question how i add a flash header in mys ites

Member Avatar for tomwatson2
0
43
Member Avatar for DamzWildfire

I was trying to loop through my database for some results and recieved this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hermes/waloraweb032/b867/moo.classiadsinfo/ajax/searchApp.php on line 8 and heres my code: <?php require_once '../connect.php'; if(isset($_POST['search_term'])==true && empty($_POST['search_term'])==false) { $search_term=mysql_real_escape_string($_POST['search_term']); $query=mysql_query("SELECT `Category`, `Type` FROM `autosuggest` WHERE `Category=.'$_POST[category]'` …

Member Avatar for broj1
0
423
Member Avatar for epicrevolt

I don't know where this thread fits, but since I need a new host for my PHP sites, I thought it would fit best here. So my current host seems to have like a 95% (at best) uptime, which is very bad. I want a host with at least a …

Member Avatar for giffy
0
414
Member Avatar for athulram

Hi, new to the forum. Im building a site where articles can be created by staff. So is it better to save articles as html files on the server with PHP's file access methods or simply store the whole source code with all the tags in a database (MySQL). It …

Member Avatar for runde.bustamante
0
190
Member Avatar for hudhasama

Hello there. This is what I'm trying to do. When user click at the firs drop down button which contain the location of the school, that button will retrieve data from database and it will appear at the same page of the button. The problem that I'm having right now …

Member Avatar for Biiim
0
107
Member Avatar for silent lover

i have form to get checklist from table checkbox. inside the table, there are list of emails. i want to get that email and bomb it. somekind of marketing email. please help me to solve this php form? php to send to all emails from the checklisted table. <form name="bomber" …

Member Avatar for silent lover
0
183
Member Avatar for nathanpacker

I don't understand what happened, I hadn't made any changes to this script, and all of the sudden, it's giving this error: [QUOTE]Notice: Use of undefined constant ID_my_site - assumed 'ID_my_site' in /path/to/my/script/changed/forsafety.com/login.php on line 90[/QUOTE] As you can tell from this error, I am trying to run a login …

Member Avatar for deceptikon
0
2K
Member Avatar for rosse88

Okay, so I am not entirely sure how to fix this. Im attempting to make a tag feature for my site but I am getting: Fatal error: Call to a member function prepare() on a non-object in /Users/Home/Sites/functions/users.php on line 10 Here is the code that relates to this. First …

Member Avatar for rosse88
0
246
Member Avatar for cristian.stilpeanu.1

Hi, i need help, who knows and wants to help me with a problem I would greatly appreciate. I downloaded a page to my site I instalato and work well only have one problem, anyone can access any without having to login, and must do so to be able to …

Member Avatar for diafol
0
540
Member Avatar for GraficRegret

I am working on an inventory system and here is what the page looks like, minus the pertinent confidential information that I am not allowed to show ![buttonProblems](/attachments/large/4/buttonProblems.jpg "buttonProblems") yes the information displayed is all mock data. however the problem lies in the buttons. On the far right of each …

Member Avatar for GraficRegret
0
86
Member Avatar for nunuaziz_

Im doing a reservation site for a project. And Im trying to disable radio button(s) if the sql statement returns true. Example: User selects a date and a time, and radio button(s) would be disable depending on database. So far, I have this: $result=mysqli_query($mysqli,"SELECT tableselect FROM reserve WHERE reserveDate = …

Member Avatar for broj1
0
1K
Member Avatar for callumbagshaw

Hi guys, I've searched these forums and everywhere else... and I can't understand why this won't work when it works for other people... Here are my two error messages: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Assignment\inc\ManageStock.php on line 24 Notice: Undefined index: fileField in C:\xampp\htdocs\Assignment\inc\ManageStock.php …

Member Avatar for callumbagshaw
0
146
Member Avatar for Tinnin

My code so far: $message = '<html> <head> <title><?php echo $subject; ?></title> </head> <body> <?php echo '<table align="center" cellspacing="3" cellpadding="3" width="100"> <tr> <th align="left"><b>Player Name<b></td> <th align="left"><b>Number of Goals<b></td> </tr>'; while($row_GetCurMonthPlayerGoals = mysql_fetch_assoc($GetCurMonthPlayerGoals)) { echo '<tr> <td align="left">' .$row_GetCurMonthPlayerGoals['FRName']. '</td> <td align="left">' .$row_GetCurMonthPlayerrGoals['Sales']. '</td> </tr>'; } // Close the table: …

Member Avatar for Tinnin
0
346
Member Avatar for sainigks

Hello every one, i want to make a programme that read data from .xls file. a sql table will create on the basis of top row of the xls file, and rest rows will treated as data and inserted into the table. actually i am working for a office, their …

Member Avatar for pritaeas
0
221
Member Avatar for dbalas

Hi! Need help with conditional formatting of table rows... What i need to acheave is to change table row background in red if date_needed is <= than 48 hours than now(). This is what i have now `if (date('d',strtotime($data['date_needed'])) <= 2) $row["rowstyle"]='style="background:red"';` it works in a way... It changes background …

Member Avatar for dbalas
0
356
Member Avatar for dartiss

Hi, I have an urgent issue. I have a screen that allows the user to select something from a drop-down and then submit it. The form directs to the same page where, if data has been supplied, processing occurs based upon their drop-down selection. What I want to do is, …

Member Avatar for Biiim
0
146
Member Avatar for f4fjks

I just want to use the id for getting description I might have many rows fetched so I am going to make onclick event but till now, why it doesnot work? where am I wrong? Thank you for your interest <?php while( $row = mysql_fetch_array($res)) { ?> <strong><?php echo $row["heading"]?></strong> …

Member Avatar for Biiim
0
278
Member Avatar for merisha.iwanthi

I am asked to submit my assignment at the end of the day. I have done all the designing part except for the XML-List part. I have no idea how to do it as I'm really new to XML. Here is my assignment. Any help or direction to the right …

Member Avatar for pritaeas
0
157
Member Avatar for kshahnazari

I'm new to php and I'm trying to download a webpage text(no need to seperate the data with elements or things like that). Could someone Give a simplized php program (using curl) so I can Get to know it more like the syntax things . for example could someone download …

Member Avatar for pritaeas
0
374
Member Avatar for shakayu

Hello guys, Am new to php with Ci... am trying to display a gridview in a form so as to extract data frm db & display the value.. .Any help?

Member Avatar for shakayu
0
1K
Member Avatar for dinhunzvi

i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT …

Member Avatar for dinhunzvi
0
229
Member Avatar for AndyPants

This php code: <?php $video_id = 'k3VevYjjwQk'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://gdata.youtube.com/feeds/api/videos/'.$video_id); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); if ($response) { $xml = new SimpleXMLElement($response); $title = (string) $xml->statistics->attributes()->viewCount; echo $title; } else { // Error handling. } ?> returns: Warning: main(): Node no longer …

Member Avatar for LastMitch
0
83

The End.