39,395 Topics

Member Avatar for
Member Avatar for James singizi

i am trying to draw an image on to a php page using the imagecreate function but the image is not showing, i cant see the problem with this code, please help me out, the code is as follows: <?php header('content-type: image/jpeg'); $fontSize = 30; $imageHeight = 40; $imageWidth = …

Member Avatar for diafol
0
180
Member Avatar for davy_yg

I am looking for table row alternating color. I already write the codes and the table does not appears yet. I wonder why? schedule.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>Transdmin Light</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" …

Member Avatar for mattster
0
227
Member Avatar for scaiferw

I'm converting some old work to mysqli, and having a bit of trouble with Prepared Statements. In the stripped down code sample below, I'm able to confirm that the code below pulls the records; line 8 echoes the string as expected and if I replace the id parameter with something …

Member Avatar for diafol
0
215
Member Avatar for Mr Programmer

What I want to do is to show an email sign-up pop up when a link is clicked. This is how I am referencing to the external sumome.php file, which contains the js function: <script type="text/javascript" src="http://www.barcabyfans.com/wp-content/themes/hueman/sumome.js"></script> This is what I am writing for the link: <p>Get more awesomeness <a …

Member Avatar for oriclon
0
325
Member Avatar for zzmrzz

I have a dedicated server and i need a short php script, that says if my dedicated server is "ONLINE" or "OFFLINE", and how many ram left, that will show it on a bar... =) Thanks

Member Avatar for oriclon
0
180
Member Avatar for ankit1122

hello i have databses and tables in mysql db... i want to auto suggest databases name in a input box after depending on database string i want to auto suggest the tables inside that database....how could i do this?

Member Avatar for Borzoi
0
132
Member Avatar for ankit1122
Member Avatar for davy_yg

messages.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>Transdmin Light</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]--> <!-- JavaScripts--> <script type="text/javascript" src="style/js/jquery.js"></script> <script …

Member Avatar for Borzoi
0
320
Member Avatar for Pravesh_1

Is there any tutorial or free opensource for online one to one user chat for a website ?

Member Avatar for edbr
0
96
Member Avatar for surferbloggy

Hi, i'm doing a wordpress plugin that add some data from angularjs/json on each post in the json angularjs request i have to pass the session id i've found this code to set it session_start(); $id = session_id(); but i don't know where to put it becouse if i add …

Member Avatar for surferbloggy
0
286
Member Avatar for Divyeshthakar

Hello, I have one opencart site there is main menu with category->subproduct links i want subproduct active when it is full product page. Thank you

Member Avatar for gabrielcastillo
0
48
Member Avatar for Yamuna_1

Hi, I want to disable other textboxes, which is related to single (i.e.connection type) texbox and the textbox are assigned in array[] row wise manner. This is working for sinle row but when I add multiple it's not working. Please help to resolve this issue. <button type="button" class="btn btn-info" id="delete">- …

Member Avatar for diafol
0
242
Member Avatar for saravananosiz

I am new to svg , I need to draw a inner or outer path for the svg editor generated svg path , i am unable to draw . I tried a lot but i cant . help me.

Member Avatar for saravananosiz
0
341
Member Avatar for ankit1122

hello, i want to show mysql query results into a table on a web page...but can i pass variable values from html tp php script i wanna show as it is important for my project

Member Avatar for mattster
0
229
Member Avatar for Jake.20

Greetings guys can you point to me what is the problem here? This is the code that produces the error. That is in my views: <h7 id="header-label">Welcome, {{ $fname }} |</h7> This is the controller: class ProfileController extends BaseController { public function showProfile() { $items = DB::table('item_tbl')->get(); // Auth::check(); // …

Member Avatar for Jake.20
0
3K
Member Avatar for ajeya

I have a 3-tables 1-> categories = id,category_name 2-> statuses = id,status_name 3-> evnets = id,event_name,category_id,staus_id events is the main table which has the id`s of categories and statuses table I want to display events display where the names of categories and statuses is displayed instead of id it is …

0
35
Member Avatar for chaitu11
Member Avatar for mattster
0
131
Member Avatar for infoitmanoj
Member Avatar for rubberman
0
239
Member Avatar for amith_ami

hi all... how to rewrite this url http://mydomain.com/cms.php?cms_id=about to http://mydomain.com/about without any error using .htaccess rewriterule. pls help me to solve this.. tnx in advnc...

Member Avatar for amith_ami
0
217
Member Avatar for Angle90

Can you guys help ? I have ssl perfectly working on my site until I updated my whmcs to the latest version and since then accessing the my website with https:// keep setting it back to http:// Please note this is only happening in Google Chrome and Opera. Can anyone …

Member Avatar for AndrisP
0
69
Member Avatar for durgesh1

Show body field in block programmatically in drupal I make content type testimonial and there is three field title,body and position. i would like to display this in block separately like <ul> <li>title: title here</li><li> body:body</li><li> position:position</li> </ul>

0
78
Member Avatar for erabxes

I have a form like the one below which is posted to processForm.php, and the user can dynamically add more with jquery. <input type="text" name="subject[]" /> <input type="text" name="grade[]" /> <input type="text" name="year[]" /> <input type="text" name="subject[]" /> <input type="text" name="grade[]" /> <input type="text" name="year[]" /> <input type="text" name="subject[]" /> …

Member Avatar for erabxes
0
361
Member Avatar for jakizak

Hi everyone, For a social system I am working on, I am in desperate need of being pointed in the right direction for how to create a live ajax feed which calls data from a database. Urgently needed, any help much appreciated! Cheers! Jack(Scaasiboi)

Member Avatar for dean8710
0
2K
Member Avatar for santhoshweb

HOW CREATE 5 BRANCH TREE AND HOW CALCULATE THE LEVELS IN EACH ROOT ANY ONE CAN HELP ME THANK YOU....

Member Avatar for Dani
0
74
Member Avatar for Jake.20

Greetings guys can you point to me what is the problem here? This is the code that produces the error. That is in my views: <h7 id="header-label">Welcome, {{ $fname }} |</h7> This is the controller: class ProfileController extends BaseController { public function showProfile() { $items = DB::table('item_tbl')->get(); // Auth::check(); // …

Member Avatar for pritaeas
-1
1K
Member Avatar for toxicandy

By default the page after login.php is authorize.php which just checks the information then sends it off to index.php. From index.php I cannot get to my page 'volunForm.php', it just redirects me back to the login page. This is my first ever login system and my first time using sessions. …

Member Avatar for toxicandy
0
197
Member Avatar for davy_yg

Hello, Can anyone help me troubleshoot this problem: This code suppose to work in someone else server, but when I place in my own server this code doesn't work I wonder why? I am using smtp.gmail.com and port 587. contact.php <!DOCTYPE html> <html lang="en"> <head> <!-- Basic --> <meta charset="utf-8"> …

Member Avatar for mattster
0
256
Member Avatar for scaiferw

I'm converting old MySQL code to MySQLi, and running into some questions. When selecting data from the database, is it necessary or strongly advised to use prepared statements, or can I safely escape my user-derived parameters like the sample below? In a perfect world I'd have all the time I …

Member Avatar for scaiferw
0
239
Member Avatar for ankit1122

hello, i wanna know whats the best way to show query results from mysql onto a webpage.. some says this can only be done in form of table.. but nowadays table less design is preferred..tell me teh most demanding way if somebody knows..

Member Avatar for ankit1122
0
236
Member Avatar for bradly.spicer

Hey guys, I have a Table which utilises Twitches API where the offset needs to be in increments of 25. I want to make it so everytime you click next in a table of data it reloads the query but adds +25 to the offset. Here is what I have: …

Member Avatar for bradly.spicer
0
213
Member Avatar for mokshi

Hi i need to use the below query in PHP to generate PDF but its not displaying what are all the supporting files i need to put for running the below (XML path) query in php,Its running successful in sql but when i put in php its not working can …

Member Avatar for mokshi
0
280
Member Avatar for RikTelner

http://pastebin.com/6xbfquFz It answers with: ID is: . Resulting is: 1 Redirection failed. Please redirect yourself to main website. Redirection isn't a problem. I disabled auto-redirect so that I can see error at work.

Member Avatar for veedeoo
0
184
Member Avatar for berserk

i have an issue with this new form im using based roughly on a design template that i found online, it looks great for the purposes that i need it for, but the problem is i cant seem to get the input data from the form to pass to the …

Member Avatar for berserk
0
432
Member Avatar for Nollyvenon

I'm creating a query which checks if a client made payments for a given month and if not set charges of 20% of the agreed monthly payment. this is what i currently have: SELECT DAY(paydate) AS PayDay, clientid FROM transactions,clients where transactions.clientid=client.clientid and transactions.product=invoices.product and DAY(paydate)> 10 order by client.clientid …

Member Avatar for Nollyvenon
0
112
Member Avatar for R0bb0b

I am building a selenium test suite which pulls a list of tests to run and then forks those tests to multiple parallel processes. Each process needs its own connection to the database because of two reasons: one, when the child process ends the connection is closed and two, when …

Member Avatar for veedeoo
0
285
Member Avatar for fornandakishore

Hello to all, I am working on PHP, HTML, CSS and Joomla since 6 years, but now a days in INDIA many companies are looking for the Drupal Developers, I am lacking skills in Drupal, so can any one guide me to learn Drupal and start building websites using Drupal. …

Member Avatar for jeffmarkel
0
318
Member Avatar for RonKevinT.Manuela

It seems it only executes the first line in which for example in uploading a .PNG photo it changes the format to Jpeg....I guess it has something to do with my if elseif else statement.....help :p <?php if (isset($_POST['submit'])) { $name= $_POST['name']; $album_id=$_POST['album']; $file=$_FILES['file']['name']; $file_type=$_FILES['file']['type']; $file_size=$_FILES['file']['size']; $file_tmp=$_FILES['file']['tmp_name']; $random_name=rand(); if(!empty($name) or …

Member Avatar for RonKevinT.Manuela
0
175
Member Avatar for druzzy

hello :) I am new to PHP. I was going through the example on w3schools. i managed to retrive my data and display nicely. my problem is i don't know any code that i can use to paginate the data i am displaying. Please help me . the code from …

Member Avatar for diafol
0
139
Member Avatar for 9tontruck

okay.. what I wanna do is, 1. upload an image into temp folder -- done 2. create a folder -- done 3. create an index.html in the new folder -- done 4. create thumbnail image in the new folder -- page dead without errors 5. copy(rename) the original image into …

Member Avatar for 9tontruck
0
134
Member Avatar for kakalahori

Hi i am having an issue with my website. My friend wrote the codes using codeignitor. I am a beginer just to add up . now the index page is only visible and i cannot access any other page than that. Not the admin pages as well. The live codes …

Member Avatar for kakalahori
0
232
Member Avatar for RonKevinT.Manuela

Okay so a few days ago I finished a tutorial of photo gallery...I'm having problems of putting images other than jpg format...the one who made the tutorial said that you can add formats to be uploaded but he didnt show it..here was his code in his upload.php...I tried experimenting on …

Member Avatar for mattster
0
189
Member Avatar for gampzz

image is uploading in directory and in db also but when i refresh image disappear database.php // i know i should not to use mysql but i have the it into mysqli so no big issue in this <?php //Connection $con=mysql_connect("localhost","root",""); if(!$con) echo "Failed to connect with MySQL.".mysql_error()."<br />"; //Create …

Member Avatar for mattster
0
944
Member Avatar for davy_yg

Hello, I am trying to create a table with a checkbox for each row to delete the row that checked. Then after the user press the delete button the row that is checked must be deleted. This is the code that I have so far, but I do not think …

Member Avatar for mattster
0
300
Member Avatar for rani_4

In a query say i have a image path that have multiple images stored as path=http://localhost/images/xyz.When i run the code: <?php //Retrieves data from MySQL mysql_connect("localhost", "root", "") or die ("Could not save image name Error: " . mysql_error()); mysql_select_db("dawat") or die("Could not select database"); $data = mysql_query("SELECT 'images_path' FROM …

Member Avatar for rani_4
0
568
Member Avatar for RikTelner

`while ($row = mysql_fetch_array($result))` Is nice command which iterates through every line, if `$result` is a MySQL query. It iterates every single line, one by one. See, I've got situation like: <tr> <td>Source 1</td> </tr> <tr> <td>Source 2</td> </tr> And it is kind of part of design, I can't really …

Member Avatar for RikTelner
0
168
Member Avatar for VShaw12

Hi i take a project of my client said that you have to develope this project by using Code Igniter and Yii.. I don't Know what are these .. please tell me some thing about these but in simple ..

Member Avatar for mattster
-5
236
Member Avatar for mcdczzz

how can i count or merge same data from the database? here is my code but this wont work..help please.. <?php $result = mysql_query("SELECT category FROM inventory"); while($row = mysql_fetch_array($result)){ $cat_array = array($row['category']); foreach ($cat_array as $value){ if ($value<=1){ echo $value . "</br>"; }else{} } } ?> and my output …

Member Avatar for mcdczzz
0
153
Member Avatar for radostin.angelov.370

So I looked into other threads but didnt find a solution that worked for me. Here is my problem: the first page is supposed to get information from a form, look for it in a database, store it in a variable $_SESSION['$dataArray'] and send it to the second page. http://codepad.org/VhblM76K …

Member Avatar for mattster
0
323
Member Avatar for bolfescu

Hy how can insert in this echo function, return confirm ? echo "<input type='submit' name='submit' id='submit' class='btn btn-primary' value=Cancella onclick=window.location='delete_article.php?id=".$row['id']."'; /></p>"; i've already have onclick....

Member Avatar for mattster
0
803
Member Avatar for mastermind2

Hi, I have a table `id - Product_Name - Price - image` Some value like : `1 - My Product A - 50 - mpa.jpg` `2 - My Product B - 10 - mpb.jpg` `3 - My Product A - 40 - mpc.jpg` `4 - My Product C - 20 …

Member Avatar for mastermind2
0
202

The End.