
avvllvva
Members-
Posts
140 -
Joined
-
Last visited
Never
Everything posted by avvllvva
-
try this <img src ='$imagelocation' width='100' height='100' border='0' align='left' style='padding-right:6px'>
-
Here is the use of $$, <?php $testing = "The actual content of string"; $something = "testing"; echo $$something ; ?>
-
Hi, Try this code, Note : you have to add one more column to the table like a STATUS of type enum and make it default to Y for the records whichever you wnat to display. This step is only for checking an initial serach condition. So that you can keep same value for all the records in the table. If u already have common column like this try to use that column name in the initilal serch clause just after the where condition. <?php $qrystring = "SELECT * FROM players where status='Y' "; // Just create a filed -'status' in the table with datatype enum and make it default 'Y' for all records if($usearchname) $qrystring .= " AND displayname = '$usearchname' "; if($usearchid) $qrystring .= " AND id = '$usearchid' "; if($usearchranch) $qrystring .= " AND ranchname = '$usearchranch' "; if($usearchtag) $qrystring .= " AND ranchtag = '$usearchtag' "; if($usearchspec) $qrystring .= " AND speciality1 = '$usearchspec' "; if($usearchspec) $qrystring .= " AND specialty2 = '$usearchspec' "; if($usearchspec) $qrystring .= " AND speciality3 = '$usearchspec' "; $userarray = mysql_query($qrystring); ?>
-
Hi there, I have tried GD gallery to create an image. ie; a string image (text with background image). But its not showing the image. The problem is with incorrect path to the font file (default.ttf). Can anybody tell me the correct path to the file. plz check the code. And I'm using WAMP server. Thanks. <?php $img = imagecreatefrompng('bg.png'); $col = imagecolorallocate($img, 240, 200, 240); imagettftext($img, 12, 0, 13, 22, $col,"default.ttf", "Some text here ..."); header("Content-type: image/png"); imagepng($img); ?>
-
PHP MySQL question about how you put an image into a table?
avvllvva replied to Angelica Jolly's topic in PHP Coding Help
You can use datatype either VARCHAR or TEXT -
Thanx Mchl. I got the tutorial in a pdf version, http://dev.mysql.com/tech-resources/articles/mysql-storedprocedures.pdf. I hope this will help. Let me learn it.
-
Can anybody tell , how can call a mysql stored procedure in php? 1. any tutorials for mysql-stored procedure ? (from basics to advance) ? 2. tutorials for stored procedures in PHP ? I have already searched the web.... but didn't get the proper one. If anybody knows, plz send me the links. Thanx
-
Try to replace session_start(); into the first line of your code. like below.. <?php session_start(); require("config.php");
-
<?php $str = 'http://mysqite.com/p/parrot.html.'; $str_new = str_replace('/p/','/',$str); ?>
-
If you need the form values for a single use (eg: insert into database), you can avoid the Session variables. And for the CHECK- functionality use some AJAX script. So only once the form submission happens.
-
<?php echo "..."; ?>
-
<?php echo "..."; ?>
-
$dt is string type variable. Try this <?php echo date("y"); echo date("m"); echo date("d"); ?>
-
Check the remote file is an existing one. Try to open it directly. And Post your code.
-
<?php if(!empty($_POST)) extract(mysql_real_escape_string($_POST)); ?> If this will work, it maybe the easiest way......
-
Try to create you own CMS ........ lets get its pleasure and enjoy.
-
Explode multiple strings and display arrays in a table
avvllvva replied to StefanRSA's topic in PHP Coding Help
Your string contains semicolon(the string separator) twice, so its showing one extra row. Solution is either remove the last semicolon or put an empty checking condition like below <?php $avail = "Single,2,2,0,0, YES,ZAR1480;Double,2,2,2,0, NO, ZAR1480;"; $table = "<table border='1'>"; $table .= "<tr><td>Type</td><td>Units</td><td>Adults</td><td>Children</td><td>Minors</td><td>Availability</td><td>Price</td></tr>"; $gresult = explode(";",$avail); foreach ($gresult as $x ){ if(!empty($x)){ $table .= "<tr>"; $unit_result= explode(",",$x); foreach ($unit_result as $y ){ $table .= "<td>$y</td>"; } $table .= "</tr>"; } } echo $table .= "</table>"; ?> -
Explode multiple strings and display arrays in a table
avvllvva replied to StefanRSA's topic in PHP Coding Help
<?php $avail = "Single,2,2,0,0, YES,ZAR1480;Double,2,2,2,0, NO, ZAR1480;"; $table = "<table border='1'>"; $table .= "<tr><td>Type</td><td>Units</td><td>Adults</td><td>Children</td><td>Minors</td><td>Availability</td><td>Price</td></tr>"; $gresult = explode(";",$avail); foreach ($gresult as $x ){ $table .= "<tr>"; $unit_result= explode(",",$x); foreach ($unit_result as $y ){ $table .= "<td>$y</td>"; } $table .= "</tr>"; } echo $table .= "</table>"; ?> /code] -
Post your SQL query & content of $_SESSION['referpage']
-
[SOLVED] PHP: Only output rows with todays day???
avvllvva replied to webmaster1's topic in MySQL Help
Yea this is the one.... $today = date("Y-m-d"); select * from tablename where SUBSTRING(scheduledate,1,10) <= '$today' -
[SOLVED] PHP: Only output rows with todays day???
avvllvva replied to webmaster1's topic in MySQL Help
Try this.. select * from tablename where SUBSTRING(scheduledate,1,10) <= 'today' -
Try this.. echo "<td align='center'><a href='".$seasname."_results.php?seasid=".$row['Season_id']."'>".$row['Name']."</a></td>";
-
easy - cant figure out how to put a url in the database without error
avvllvva replied to jwk811's topic in PHP Coding Help
What is the table field type ???? if it is VARCHAR , change it to TEXT.... then try. -
no, its in root directory (both .htaccess & product.php are in same directory). And I have no access to the server logs, do u know any other method to get server logs?
-
hi soak, sorry, no luck with your .htaccess code. And the page is loading with other contents but its giving array(0) { } with the var_dumb, same as before..