39,320 Topics

Member Avatar for
Member Avatar for reygcalantaol

Hello guyz, I'm glad I finally back here. I need help using the preg_match function. I am scraping url and I need to get the specific value from the html tags. Here is the string [I]<p><b>1,664</b> Referring IP addresses</p>[/I], I need to get [I][B]1,664[/B][/I] How can I achieve it using …

Member Avatar for reygcalantaol
0
120
Member Avatar for kamotekid08
Member Avatar for nitinslash
-1
187
Member Avatar for decade

Im sure most of the php developers here knows how to use mysql or mysqli now my question is Which is better? Mysql or Mysqli? And why? please answer me guys.

Member Avatar for decade
0
96
Member Avatar for rakwel10

How? Im developing a site. It has an email app that sends email. Im trying to know how to do it the other way. This time, gmail or ymail will send and my site will receive. How? I'll wait for your replies.. Thanks for the help..

Member Avatar for chrishea
0
119
Member Avatar for glycerine

I hope the title made sense. ok ive got a table in a PostgreSQL database that has a few coloumns in it. What im tryting to do is the following: [CODE]<?php $totaltimetodayresult = pg_query($link, "SELECT SUM(acctsessiontime) AS totaltime FROM radacct WHERE acctstarttime LIKE '%".$today."%'"); while($totaltimetodayarray = pgfetch_array($totaltimemonthresult)){ $totaltimetoday = $totaltimetodayarray['acctsessiontime']; …

Member Avatar for glycerine
0
679
Member Avatar for rakwel10

pls help me fix the error. What and where is the problem? Thanks for the help! Here is the error message >> [B] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )' …

Member Avatar for ddymacek
0
101
Member Avatar for weeon

Im view total form total = harga * unit; View Sample Images : [URL="http://www.daniweb.com/forums/attachment.php?attachmentid=22008&stc=1&d=1313603319"]http://www.daniweb.com/forums/attachment.php?attachmentid=22008&stc=1&d=1313603319[/URL] [CODE]<table border="1"> <tr> <td bgcolor="#6699FF">jenis</td> <td bgcolor="#6699FF">harga</td> <td bgcolor="#6699FF">unit</td> <td bgcolor="#6699FF">total</td> </tr> <tr> <td><?php include"koneksi.php"; $result = mysql_query("select * from tpintu"); $jsArray = "var prdName = new Array();\n"; echo '<select name="prdId" onchange="document.getElementById('hargaBarang').value = prdName[this.value]">'; while ($row …

Member Avatar for ddymacek
0
102
Member Avatar for programmer12

Hi, I am trying to let my users upload videos on my website by using a Form, but when I try to upload a video it times out. How can I write a php script to make this work? -OR- Do I need to change the PHP.ini file to make …

Member Avatar for programmer12
0
87
Member Avatar for Farhad.idrees

kindly tell me is this statement is right? i want to use isset statemnt with or condition... if( isset($_GET['P_Price']) || isset($_GET['P_Category'])) ........... Regards.. Farhad

Member Avatar for ddymacek
0
108
Member Avatar for bobbywe

hello I am looking for a code where i can put a photo in mysql data basic so when the dj name comes up on the home page there photo comes on to if this can be done?

Member Avatar for dealerit
0
112
Member Avatar for mittul

hello .. m trying to get/fetch the database value into dropdown box as a selected value in the dropdown box using PHP script and mysql - phpmyadmin database .. but m having problems in it .. here is my script which i m using .. try.php <body> <?php $conn = …

Member Avatar for ddymacek
0
909
Member Avatar for theazs

please some one help me,i have created this code for searching from database but the problem is i am getting an output without even searching,i am no php expert,so please guys help me. [ICODE]<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" onSubmit="return validateThis(this)"> <!-- Sending Search Keyword to "search_handler.php" --> <p> <label …

Member Avatar for ddymacek
0
123
Member Avatar for jorjah

i have receive a link last 4 days ago,and i want to see it again then when i go to the list of messge, the links disappear,,i just want to know it why

Member Avatar for Ezzaral
0
109
Member Avatar for mwenyenia07

in java or vb.net, we have controls like datagrid or listview which makes loading and displaying of large data easy.in this case, there are events like cellDoubleclick which you can use to select data from a particular column and use it as key to select particular data from database for …

Member Avatar for blocblue
0
71
Member Avatar for MasterGberry

Having some problems figuring out how to do this... Basically I have the following right now: [code] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^Age-Of-Empires-Online/([^/]*)$ /index.php?portal=AOEO&$1 [/code] I need to make the old URLs re-direct to the new URL format...but I still want the new URL to ACT like the …

Member Avatar for sDJh
0
104
Member Avatar for mary_forum
Member Avatar for jorjah

gudpm! i just want to if how to put a template in php,,i already have my template and when i used it, I inserted it outside..i named it index,when i play it,,local host "restricted access"

Member Avatar for chrishea
0
108
Member Avatar for klemme

Hi, After uploading a pdf from a form, i am trying to read the file. It is saved in DB, and i try to get the chosen PDF via a link that holds a unique value from the DB, so the chosen PDF can be identified, and displayed. BUT, I …

0
97
Member Avatar for BenzZz

Hi, I am receiving the following error when i run my code on localhost: [CODE] Error creating database: Can't create database 'library_db'; database exists Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in C:\Program Files\EasyPHP-5.3.6.0\www\databaseEx.php on line 45 Warning: mysql_query() [function.mysql-query]: A link to the server could …

Member Avatar for BenzZz
0
110
Member Avatar for ravi951

hi all, i have written a code in php for inserting and deleting multiple records using check boxes."test" is the database name. "emp" is the table name which contains the following records in my database. empno empname desig 1111 raju pilot 1112 ram chef 1113 ramu doctor 1114 paul engineer …

Member Avatar for rpv_sen
0
142
Member Avatar for divyakrishnan

Hi.. I want to run an exe file without saving from the server by clicking a hyper link. My code works fine with internet explorer .But with fire fox it showing save button . I used the following code [CODE] <!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"> …

0
74
Member Avatar for samsons17

Hi, i am working on this project that using wordpress cms platform.. I am really frustrated right now to find way to remove the default avatar of wordpress site that being set up to user during registration process. As u know, when we are registering to a site which working …

Member Avatar for samsons17
0
70
Member Avatar for ravi951

hi all i have been inserting records in to database using php using the below program which is saved as "insert.php". but it is displaying the following error [B]Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\insert1.php on line 18 [/B] dont no what went wrong. can u tell me how …

Member Avatar for decade
0
109
Member Avatar for bondito

Hi, i am a computer science final year student, i was thinking of creating an online voting/polling system,the system could include surveys as well. I really need some ideas in designing the system and any idea you send to me will be highly appreciated.

Member Avatar for yeungn
-1
419
Member Avatar for xXRamboNoobXx

Need help with this. Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\pixels\index.php on line 35 [code] <?php include_once ("config.php"); ?> <?xml version="1.0" encoding="utf-8"?> <!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" xml:lang="en-US" lang="en-US"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel=StyleSheet type="text/css" href="main.css" > </head> <body class="main"> <div class="outer"> …

Member Avatar for happytogether
0
161
Member Avatar for php@webfanatics

I need some help setting up the following full php script a well as DB available on request, 46 pages in text format. Basic requirements: These 2 files needs the export to pdf function [url]http://www.lifestyle-solutions.biz/jeanadmin/print-[/url] program.php?idprgramdet=40 [url]http://www.lifestyle-solutions.biz/trainers/print-[/url] program.php?idprgramdet=40 Basic requirements: 1) 2 exercises per page (exercise plus progress report block) …

Member Avatar for programming1000
0
164
Member Avatar for dreadrocksean

Hi all. I have a dynamically generated HTML page using PHP. I create my PHP variables and then have them in line with my HTML like so: [CODE] <tr> <td align="right">Restaurant Subtotal</td> <td align="right"><strong><? $subTotal = getSubTotal(); echo money($subTotal);?></strong></td> </tr> [/CODE] I have a need to send the generated HTML …

Member Avatar for ddymacek
0
257
Member Avatar for klemme

I have a uload script that saves PDFs to the DB, and i have another page, where I want to read the PDF file, but the latter is not really happening.. AM I DEFINING MY PDF_DIR CORRECT: [CODE] define('PDFS_DIR', $_SERVER['DOCUMENT_ROOT'] .'includes/pdfs'); [/CODE] This is the read_pdf.php file: [CODE] <?php require_once("includes/config.php"); …

Member Avatar for ddymacek
0
185
Member Avatar for 4789787

This is code for an internal forum, it works on my local server, but not the godaddy one i just purchased! phpinfo()s posted below: [CODE]<?php // forum.php :: Foro interno del juego.Version 1.0 define('INSIDE' , true); define('INSTALL' , false); require_once dirname(__FILE__) .'/common.php'; /* Este foro esta basado en el PHPBBs …

Member Avatar for chrishea
0
4K
Member Avatar for benkyma

Hi, I want a script that will upload an image to a user's Facebook account. So far I have this code, but it's not working correctly. I seem to get an ID returned, but no image is uploaded to the profile: [ICODE] function do_post_request($url, $data) { $file= $data; $args = …

0
50

The End.