Anyone has an advance knowledge about Smart template engine?
Q1: how do i change the index.tpl into the template i created using html with css?
Q2: is it advisable to just change my index.html into index.tpl?
I'm new to this... please help
Tnx in advance
ERROR MESSAGE: Object Expected
URL: http://localhost/phppractice/practice/login.php
Line Number: 11
of which line number 11 is:
<PHP>alert('Error message: '+msg+'\nURL: '+url+'\nLine Number: '+linenumber);</PHP>
<script language="JavaScript" type="text/javascript">
//function to check empty fields
function isEmpty(strfield1, strfield2, strfield3) {
//change "field1, field2 and field3" to your field names
strfield1 = document.forms[0].field1.value
strfield2 = document.forms[0].field2.value...
yes it helps by using is_array. but i can't figure out how to make sure foreach cannot execute if count($album_array) is 0
by the way do u have a YM account?
This time it's my code that is not working. i don't know why:
It gives the error:
Warning: Invalid argument supplied for foreach() in D:\********\blablabla.php on line 134
function browsing($album_array, $user)
{
$output;
if( is_valid($user) )
{
$output =...
tnx. i we tried this one :
or die('Query failed: ' . mysql_error() . "<br />\n$query");
The problem was the, columns were interchange... that's why the query did not work.
a classmate of mine ask me why is her syntax giving her an error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in line 103
here's her code: (i tried to help but it seems that we we're just in the same level :biggrin:)
function check_user($user,$pass)...