39,323 Topics

Member Avatar for
Member Avatar for showman13

I've got an odd question ( I think ) I have to do a header redirect to a remote server The page on the remote server is just ugly. no background no formatting, etc... The vendor that hosts it says that I can use CSS to dress it up a …

Member Avatar for diafol
0
211
Member Avatar for dawbin

What is the most efficient way to get the number of rows from a table? I'm able to do it with the following code, but looping through a recordset of one row seems inefficient. Is there a better way to do this? <?php $con=mysqli_connect("0000000000","0000000000","0000000000","0000000000"); $sql = 'SELECT count(*) AS t …

Member Avatar for iamthwee
0
232
Member Avatar for jovstudios

Hi Guys, Can you Tell Me What is the wrong of my Code. This is my Code. I am Using DOM Extension! <?php require_once("dompdf/dompdf_config.inc.php"); $conexion = mysql_connect("localhost","root",""); mysql_select_db("evaluation",$conexion); $codeHTML=' <!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>Download</title> <link href="css/style.css" rel="stylesheet"> </head> …

Member Avatar for chrishea
0
209
Member Avatar for stokie-rich

Hi Guys I've now sorted the sql query and the database is now sorted, but now I want to connect the PHP and sql database Config.php file //Mysql Connect | mysql_connect("host","username","password"); //Below example to connect in localhost $a=mysql_connect("localhost","root",""); //select your database $b=mysql_select_db("database_name",$a); I take it I need to specify the …

Member Avatar for stokie-rich
0
184
Member Avatar for punith_1

I have a form at http://www.sledor.talk4fun.net/results/results.html which shows results if a proper roll number is entered... the results are fetched from http://results.vtu.ac.in site and only the table is shown... now i want to add the data of the table to my database using php. Is there a way to do …

0
111
Member Avatar for shehnaz20

<?php // Database Connection require_once("condition.php"); $host="localhost"; $uname="root"; $pass=""; $database = "data"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); //or die("Database Connection Failed"); $selectdb=mysql_select_db($database) or die("Database could not be selected"); $result=mysql_select_db($database) or die("database cannot be selected <br>"); $projno=$_POST['parameters']; function IsChecked($chkname,$value) { if(!empty($_POST[$chkname])) { foreach($_POST[$chkname] as $chkval) { if($chkval == $value) { return true; } } …

Member Avatar for shehnaz20
0
175
Member Avatar for Nollyvenon

Please can i get a help on joining these 3 queries SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastpaydate,'%d-%m-%Y') AS debtage,customer.depot, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate FROM customer,mastorders,acctofficer WHERE customer.custid=mastorders.custid and acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, customer.depot FROM customer,acctofficer WHERE acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC …

Member Avatar for Nollyvenon
0
444
Member Avatar for Mohammed_9
Member Avatar for Mohammed_9
0
175
Member Avatar for stokie-rich

hi guys i'm creating my own website and i want to let users register and for them to be able to let them take a quiz. I have created this sql code CREATE DATABASE `dyscaculia` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `dyscaculia`; CREATE TABLE IF NOT EXISTS `users` ( …

Member Avatar for stokie-rich
0
194
Member Avatar for jj.dcruz

i have to backup my database via php codes but i always ended up with an empty file? <?php include "connection.php"; $command = 'mysqldump -u root -p ***** –all-databases > dump.sql'; exec($command) or die(mysql_error()); ?> any help would be great

Member Avatar for jj.dcruz
0
265
Member Avatar for sushilsth

i am actually working for showing online for loged in user. This is my code: $qt="select userid from plus_login where tm > '$tm' and status='ON'"; $result = mysql_query($qt); while($row=mysql_fetch_array($result)) { $uid = $row['userid']; $qt1="select first_name, last_name from signup where user_id='$uid'"; $result1 = mysql_query($qt1); while($rows=mysql_fetch_array($result1)) { $_SESSION['name']=$rows[0]." ".$rows[1]; echo $_SESSION['name']."<br>"; } …

Member Avatar for diafol
0
206
Member Avatar for raul8711

Hi Guys, I'm looking to build an extremely simple script that would allow someone that I know to share files in a simple manner. This script should do the following: - Make a list of all the files in a specific folder. - Make downloadable links to these files (<a …

Member Avatar for diafol
0
231
Member Avatar for thilipdilip

Hi, I 'm new to prestashop module deelopement, I created one module which customer can add their product and sell their product, in that I have mentioned image upload functionality, which is possible to add one image, now the problem with image uploader, It can able to upload single image …

0
137
Member Avatar for iamthwee

I've asked this before and I'm really racking my brains here. To create an admin controller or simply have an if statement in the view. **view** if session == admin show admin delete post This would minimize my code so much. I really can't see the wrongness in this. Although …

Member Avatar for pritaeas
0
148
Member Avatar for kimems

How can you create a database driven menu in php. The vertical menu content should depend on the horizontal. Assuming you have three tables: • Module which have the data to be displayed on the horizontal menu • Sub Module which have the sub modules of the module above • …

Member Avatar for diafol
0
155
Member Avatar for Lonestar Jack

**I want to embed links and fields into php generated emails. This is the email_message field.** Welcome to the Neighborhood 13 Wine Tasters Group. In order to make sure we have your correct email address we need to have you return this email by pressing the Return button on your …

Member Avatar for OsaMasw
0
142
Member Avatar for iamthwee

hi guys... what is the simplest php forum to add to my cms. I'm struggling finding something simple which separates the db code and view(html)

Member Avatar for diafol
0
789
Member Avatar for k99rs

I have PHP scripts inside my HTMl file. I am using Apache. I created a .htaccess file and place it in my root directory of the application with the following as its contents AddType application/x-httpd-php .php .html .htm I want to allow the server to execute the PHP scripts inside …

Member Avatar for nturup
0
306
Member Avatar for ImaComputerLuvr

I have an html form to get a number from the user for a calculation. The first number is given. The second is entered by the user. The result is posted to the same page. BUT the resulting answer is now the first number and again the second number is …

Member Avatar for ImaComputerLuvr
0
136
Member Avatar for dawbin

I'm an experienced ASP/MSSQL programmer trying to make the move to PHP/MYSQL and I've been able to wrangle my way up to now. I have a simple SQL query that works great in mymcadmin but gets lost in PHP. I've simplified it a bit here but this is the actual …

Member Avatar for iamthwee
0
245
Member Avatar for burt.munn

I'm very new to PHP or any type of web programming for that matter. I need the to put the following script into two columns or possibly a table with two columns. I need Fahrenheit as the heading for one column and celsius as heading for the other? It took …

Member Avatar for burt.munn
0
236
Member Avatar for mark103

Hi all, I need your help, I'm working on my PHP as I want to get the list of links for each array in get-listing.php. I want to get the list of links for each array like this: http://testbox.elementfx.com/get-listing.php?channels=ABC FAMILY&id=101 http://testbox.elementfx.com/get-listing.php?channels=CBS&id=102 http://testbox.elementfx.com/get-listing.php?channels=CNN USA&id=103 http://testbox.elementfx.com/get-listing.php?channels=ESPN USA&id=105 ..and so on I want …

Member Avatar for iamthwee
0
266
Member Avatar for adhirgukt

Hi to all! I'm using windows 8 in my sysytem. And want to create a website, but it needs php,asp or asp.net programming. I have installed IIS . For php i'd downloaded the .zip file from microsoft.com but it's not working correctly. Shall i setup these three things IIS directly …

Member Avatar for ilesanmi
0
236
Member Avatar for nstrazimiri

Hello. I need to export the text typed into the text area and import it into an arraw. but when i type in new lines it cant't read it. example:when user types: aaa bbb ccc bbb the out put at the end should be: aaa bbb ccc this is the …

Member Avatar for diafol
0
539
Member Avatar for davy_yg

Hello, I am trying to update phone number in the maps: http://www.indonusa.net.id/IndonusaCMS/contactus.php Yet, I still do not find a way to do so. I have updated all the phone number in the maps just like in the text next to your message. Yet, even after I refresh it the phone …

Member Avatar for davy_yg
0
94
Member Avatar for Maideen

Hi I am new in php. Below code works fine. But If I change Select Command Like this: $sql = "SELECT login_id,password FROM user_right WHERE login_id = '$username' and password = '$password'"; It shows error recorde not found. Also I need to show the role of select user. Pls Help …

Member Avatar for Maideen
0
368
Member Avatar for kingkong142

Hi, I checked error log and found following php errors/warning, 1) File CODE: <a href="http://<?php echo $esrow_off['fld_company_url']."".stripslashes()?>" target="_blank"><img src="<?=$domain_url?>/admin/partnerimages/<?=$esrow_off['fld_partners_image']?>" border="0" height="42" /></a> PHP error / Warning: [17-Jun-2013 23:31:59 Europe/Minsk] PHP Warning: stripslashes() expects exactly 1 parameter, 0 given 2) File CODE: $esq_row2=mysql_fetch_array(mysql_query("select * from esb2b_products where es_id=$id")); [16-Jun-2013 00:29:51 Europe/Minsk] …

Member Avatar for stekmil
0
295
Member Avatar for mc3330418

I have a secret word. People need to guess the secret word by entering single letters. When they start it will have **** for the word. When they guess a letter, an asterick shoud be replaced with the correctly guessed letter. I cant get the charachter to replace in the …

Member Avatar for iamthwee
0
2K
Member Avatar for haps.chouhan

how to fix below error Notice: Error: Table 'oc_product_profile' already exists Error No: Table 'oc_product_profile' already exists CREATE TABLE `oc_product_profile` ( `product_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `customer_group_id` int(11) NOT NULL, PRIMARY KEY (`product_id`,`profile_id`,`customer_group_id`) ) ENGINE=MyISAM COLLATE=utf8_general_ci; in /home3/ffashion/public_html/ffashionfox.com/system/database/mysql.php on line 51 and my sql database is: <?php …

Member Avatar for manoj hanse
0
401
Member Avatar for Mohamed_26

I am having trouble in styling the table in php code. I was wondering if u can help me with it? echo "<table border='1' padding = '20'>"; echo '<tr>'; echo '<th>DVD Name</th>'; echo '<th>Price</th>'; echo '<th>Quantity</th>'; echo '<th> Total </th>'; echo '</tr>'; I just want to like change the colour …

Member Avatar for Mohamed_26
0
80

The End.